Changeset bbc28be in mainline for uspace/srv/devman/devman.c
- Timestamp:
- 2010-12-03T12:59:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70c85211
- Parents:
- 2e15ac40 (diff), da55d5b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r2e15ac40 rbbc28be 651 651 652 652 /* Send the device to the driver. */ 653 aid_t req = async_send_1(phone, DRIVER_ADD_DEVICE, node->handle, 654 &answer); 653 devman_handle_t parent_handle; 654 if (node->parent) { 655 parent_handle = node->parent->handle; 656 } else { 657 parent_handle = 0; 658 } 659 aid_t req = async_send_2(phone, DRIVER_ADD_DEVICE, node->handle, 660 parent_handle, &answer); 655 661 656 662 /* Send the device's name to the driver. */ … … 1022 1028 1023 1029 size_t idx = get_new_class_dev_idx(cl); 1024 asprintf(&dev_name, "%s% d", base_name, idx);1030 asprintf(&dev_name, "%s%zu", base_name, idx); 1025 1031 1026 1032 return dev_name;
Note:
See TracChangeset
for help on using the changeset viewer.