Changeset ab3a851 in mainline for uspace/drv


Ignore:
Timestamp:
2010-11-30T00:50:25Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b2981aa
Parents:
178673c (diff), 41a7f62 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Local changes: fixed printf related warnings

Location:
uspace/drv
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/isa/isa.c

    r178673c rab3a851  
    282282
    283283                printf(NAME ": added io range (addr=0x%x, size=0x%x) to "
    284                     "device %s\n", addr, len, dev->name);
     284                    "device %s\n", (unsigned int) addr, (unsigned int) len,
     285                    dev->name);
    285286        }
    286287}
     
    489490static int isa_add_device(device_t *dev)
    490491{
    491         printf(NAME ": isa_add_device, device handle = %d\n", dev->handle);
     492        printf(NAME ": isa_add_device, device handle = %d\n",
     493            (int) dev->handle);
    492494
    493495        /* Add child devices. */
    494496        add_legacy_children(dev);
    495         printf(NAME ": finished the enumeration of legacy devices\n",
    496             dev->handle);
     497        printf(NAME ": finished the enumeration of legacy devices\n");
    497498
    498499        return EOK;
  • uspace/drv/ns8250/ns8250.c

    r178673c rab3a851  
    276276        if (pio_enable((void *)(uintptr_t) data->io_addr, REG_COUNT,
    277277            (void **) &data->port)) {
    278                 printf(NAME ": error - cannot gain the port %lx for device "
     278                printf(NAME ": error - cannot gain the port %#" PRIx32 " for device "
    279279                    "%s.\n", data->io_addr, dev->name);
    280280                return false;
     
    727727{
    728728        printf(NAME ": ns8250_add_device %s (handle = %d)\n",
    729             dev->name, dev->handle);
     729            dev->name, (int) dev->handle);
    730730       
    731731        int res = ns8250_dev_initialize(dev);
  • uspace/drv/pciintel/pci.c

    r178673c rab3a851  
    323323        if (range_addr != 0) {
    324324                printf(NAME ": device %s : ", dev->name);
    325                 printf("address = %x", range_addr);
    326                 printf(", size = %x\n", range_size);
     325                printf("address = %" PRIx64, range_addr);
     326                printf(", size = %x\n", (unsigned int) range_size);
    327327        }
    328328       
     
    479479        }       
    480480       
    481         printf(NAME ": conf_addr = %x.\n",
     481        printf(NAME ": conf_addr = %" PRIx64 ".\n",
    482482            hw_resources.resources[0].res.io_range.address);
    483483       
  • uspace/drv/root/root.c

    r178673c rab3a851  
    4646#include <ctype.h>
    4747#include <macros.h>
     48#include <inttypes.h>
    4849
    4950#include <driver.h>
     
    115116static int root_add_device(device_t *dev)
    116117{
    117         printf(NAME ": root_add_device, device handle = %d\n", dev->handle);
     118        printf(NAME ": root_add_device, device handle=%" PRIun "\n",
     119            dev->handle);
    118120       
    119121        /*
  • uspace/drv/rootpc/rootpc.c

    r178673c rab3a851  
    177177static int rootpc_add_device(device_t *dev)
    178178{
    179         printf(NAME ": rootpc_add_device, device handle = %d\n", dev->handle);
     179        printf(NAME ": rootpc_add_device, device handle = %d\n",
     180            (int)dev->handle);
    180181       
    181182        /* Register child devices. */
  • uspace/drv/rootvirt/rootvirt.c

    r178673c rab3a851  
    110110
    111111        printf(NAME ": add_device(name=\"%s\", handle=%d)\n",
    112             dev->name, dev->handle);
     112            dev->name, (int)dev->handle);
    113113       
    114114        /*
Note: See TracChangeset for help on using the changeset viewer.