Changes in uspace/srv/devman/devman.c [4087a33:0d6915f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r4087a33 r0d6915f 117 117 printf(NAME": the '%s' driver was added to the list of available " 118 118 "drivers.\n", drv->name); 119 120 printf(NAME ": match ids:");121 link_t *cur;122 for (cur = drv->match_ids.ids.next; cur != &drv->match_ids.ids; cur = cur->next) {123 match_id_t *match_id = list_get_instance(cur, match_id_t, link);124 printf(" %d:%s", match_id->score, match_id->id);125 }126 printf("\n");127 119 } 128 120 … … 651 643 652 644 /* Send the device to the driver. */ 653 aid_t req = async_send_1(phone, DRIVER_ADD_DEVICE, node->handle, 654 &answer); 645 devman_handle_t parent_handle; 646 if (node->parent) { 647 parent_handle = node->parent->handle; 648 } else { 649 parent_handle = 0; 650 } 651 aid_t req = async_send_2(phone, DRIVER_ADD_DEVICE, node->handle, 652 parent_handle, &answer); 655 653 656 654 /* Send the device's name to the driver. */
Note:
See TracChangeset
for help on using the changeset viewer.