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