Changeset 7e752b2 in mainline for uspace/lib


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/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.c

    r202f57b r7e752b2  
    816816            UPPER32(ba), cnt);
    817817        if (rc != EOK) {
    818                 printf("Error %d reading %d blocks starting at block %" PRIuOFF64
    819                     " from device handle %d\n", rc, cnt, ba,
     818                printf("Error %d reading %zu blocks starting at block %" PRIuOFF64
     819                    " from device handle %" PRIun "\n", rc, cnt, ba,
    820820                    devcon->devmap_handle);
    821821#ifndef NDEBUG
     
    843843            UPPER32(ba), cnt);
    844844        if (rc != EOK) {
    845                 printf("Error %d writing %d blocks starting at block %" PRIuOFF64
    846                     " to device handle %d\n", rc, cnt, ba, devcon->devmap_handle);
     845                printf("Error %d writing %zu blocks starting at block %" PRIuOFF64
     846                    " to device handle %" PRIun "\n", rc, cnt, ba, devcon->devmap_handle);
    847847#ifndef NDEBUG
    848848                stacktrace_print();
  • uspace/lib/c/generic/stacktrace.c

    r202f57b r7e752b2  
    5050
    5151        while (stacktrace_fp_valid(&st, fp)) {
    52                 printf("%p: %p()\n", fp, pc);
     52                printf("%p: %p()\n", (void *) fp, (void *) pc);
    5353                (void) stacktrace_ra_get(&st, fp, &pc);
    5454                (void) stacktrace_fp_prev(&st, fp, &nfp);
  • uspace/lib/drv/generic/driver.c

    r202f57b r7e752b2  
    4848#include <ctype.h>
    4949#include <errno.h>
     50#include <inttypes.h>
    5051
    5152#include <ipc/driver.h>
     
    173174        res = driver->driver_ops->add_device(dev);
    174175        if (0 == res) {
    175                 printf("%s: new device with handle = %x was added.\n",
     176                printf("%s: new device with handle=%" PRIun " was added.\n",
    176177                    driver->name, dev_handle);
    177178        } else {
    178                 printf("%s: failed to add a new device with handle = %d.\n",
     179                printf("%s: failed to add a new device with handle = %" PRIun ".\n",
    179180                    driver->name, dev_handle);
    180181                remove_from_devices_list(dev);
     
    225226        if (dev == NULL) {
    226227                printf("%s: driver_connection_gen error - no device with handle"
    227                     " %x was found.\n", driver->name, handle);
     228                    " %" PRIun " was found.\n", driver->name, handle);
    228229                ipc_answer_0(iid, ENOENT);
    229230                return;
     
    289290                                printf("%s: driver_connection_gen error - ",
    290291                                    driver->name);
    291                                 printf("device with handle %d has no interface "
     292                                printf("device with handle %" PRIun " has no interface "
    292293                                    "with id %d.\n", handle, iface_idx);
    293294                                ipc_answer_0(callid, ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.