Changes in uspace/srv/devman/devman.c [7e752b2:0d6915f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r7e752b2 r0d6915f 643 643 644 644 /* Send the device to the driver. */ 645 aid_t req = async_send_1(phone, DRIVER_ADD_DEVICE, node->handle, 646 &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); 647 653 648 654 /* Send the device's name to the driver. */ … … 1014 1020 1015 1021 size_t idx = get_new_class_dev_idx(cl); 1016 asprintf(&dev_name, "%s% zu", base_name, idx);1022 asprintf(&dev_name, "%s%d", base_name, idx); 1017 1023 1018 1024 return dev_name;
Note:
See TracChangeset
for help on using the changeset viewer.