Changeset bf61d3a in mainline for uspace/lib/drv/generic/driver.c


Ignore:
Timestamp:
2010-11-26T01:34:21Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
273b958
Parents:
4b9a410 (diff), 7e752b2 (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 compile-time printf() argument checking, fixes of actual printf() arguments and related modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r4b9a410 rbf61d3a  
    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.