Ignore:
File:
1 edited

Legend:

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

    r7e752b2 r0b5a4131  
    4848#include <ctype.h>
    4949#include <errno.h>
    50 #include <inttypes.h>
    5150
    5251#include <ipc/driver.h>
     
    174173        res = driver->driver_ops->add_device(dev);
    175174        if (0 == res) {
    176                 printf("%s: new device with handle=%" PRIun " was added.\n",
     175                printf("%s: new device with handle = %x was added.\n",
    177176                    driver->name, dev_handle);
    178177        } else {
    179                 printf("%s: failed to add a new device with handle = %" PRIun ".\n",
     178                printf("%s: failed to add a new device with handle = %d.\n",
    180179                    driver->name, dev_handle);
    181180                remove_from_devices_list(dev);
     
    204203                        break;
    205204                default:
    206                         ipc_answer_0(callid, ENOENT);
     205                        if (!(callid & IPC_CALLID_NOTIFICATION))
     206                                ipc_answer_0(callid, ENOENT);
    207207                }
    208208        }
     
    226226        if (dev == NULL) {
    227227                printf("%s: driver_connection_gen error - no device with handle"
    228                     " %" PRIun " was found.\n", driver->name, handle);
     228                    " %x was found.\n", driver->name, handle);
    229229                ipc_answer_0(iid, ENOENT);
    230230                return;
     
    290290                                printf("%s: driver_connection_gen error - ",
    291291                                    driver->name);
    292                                 printf("device with handle %" PRIun " has no interface "
     292                                printf("device with handle %d has no interface "
    293293                                    "with id %d.\n", handle, iface_idx);
    294294                                ipc_answer_0(callid, ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.