Changes in uspace/lib/drv/generic/driver.c [9f6c5ef0:0ca16307] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r9f6c5ef0 r0ca16307 48 48 #include <ctype.h> 49 49 #include <errno.h> 50 #include <inttypes.h>51 50 52 51 #include <ipc/driver.h> … … 178 177 res = driver->driver_ops->add_device(dev); 179 178 if (0 == res) { 180 printf("%s: new device with handle =%" PRIun "was added.\n",179 printf("%s: new device with handle = %x was added.\n", 181 180 driver->name, dev_handle); 182 181 } else { 183 printf("%s: failed to add a new device with handle = % " PRIun ".\n",182 printf("%s: failed to add a new device with handle = %d.\n", 184 183 driver->name, dev_handle); 185 184 remove_from_devices_list(dev); … … 208 207 break; 209 208 default: 210 ipc_answer_0(callid, ENOENT); 209 if (!(callid & IPC_CALLID_NOTIFICATION)) 210 ipc_answer_0(callid, ENOENT); 211 211 } 212 212 } … … 230 230 if (dev == NULL) { 231 231 printf("%s: driver_connection_gen error - no device with handle" 232 " % " PRIun "was found.\n", driver->name, handle);232 " %x was found.\n", driver->name, handle); 233 233 ipc_answer_0(iid, ENOENT); 234 234 return; … … 294 294 printf("%s: driver_connection_gen error - ", 295 295 driver->name); 296 printf("device with handle % " PRIun "has no interface "296 printf("device with handle %d has no interface " 297 297 "with id %d.\n", handle, iface_idx); 298 298 ipc_answer_0(callid, ENOTSUP); … … 390 390 */ 391 391 int child_device_register_wrapper(device_t *parent, const char *child_name, 392 const char *child_match_id, int child_match_score, 393 devman_handle_t *child_handle) 392 const char *child_match_id, int child_match_score) 394 393 { 395 394 device_t *child = NULL; … … 419 418 goto failure; 420 419 421 if (child_handle != NULL) { 422 *child_handle = child->handle; 423 } 424 return EOK; 420 goto leave; 425 421 426 422 failure: … … 435 431 } 436 432 433 leave: 437 434 return rc; 438 435 }
Note:
See TracChangeset
for help on using the changeset viewer.