Changeset 7e752b2 in mainline for uspace/drv


Ignore:
Timestamp:
2010-11-26T01:33:20Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf61d3a
Parents:
202f57b
Message:
  • correct printf() formatting strings and corresponding arguments
  • minor cstyle changes and other small fixes
Location:
uspace/drv
Files:
4 edited

Legend:

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

    r202f57b r7e752b2  
    493493        /* Add child devices. */
    494494        add_legacy_children(dev);
    495         printf(NAME ": finished the enumeration of legacy devices\n",
    496             dev->handle);
     495        printf(NAME ": finished the enumeration of legacy devices\n");
    497496
    498497        return EOK;
  • uspace/drv/ns8250/ns8250.c

    r202f57b r7e752b2  
    276276        if (pio_enable((void *) 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;
  • uspace/drv/pciintel/pci.c

    r202f57b r7e752b2  
    323323        if (range_addr != 0) {
    324324                printf(NAME ": device %s : ", dev->name);
    325                 printf("address = %x", range_addr);
     325                printf("address = %" PRIx64, range_addr);
    326326                printf(", size = %x\n", range_size);
    327327        }
     
    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

    r202f57b r7e752b2  
    4545#include <ctype.h>
    4646#include <macros.h>
     47#include <inttypes.h>
    4748
    4849#include <driver.h>
     
    126127static int root_add_device(device_t *dev)
    127128{
    128         printf(NAME ": root_add_device, device handle = %d\n", dev->handle);
     129        printf(NAME ": root_add_device, device handle=%" PRIun "\n",
     130            dev->handle);
    129131       
    130132        /* Register root device's children. */
Note: See TracChangeset for help on using the changeset viewer.