Changeset f3922c2 in mainline for uspace/app/usbinfo/list.c
- Timestamp:
- 2013-07-26T12:16:18Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0fc92c
- Parents:
- e242fba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/list.c
re242fba rf3922c2 55 55 int rc = devman_fun_get_path(handle, path, MAX_PATH_LENGTH); 56 56 if (rc != EOK) { 57 printf(NAME "Failed to get path for device %" PRIun 58 "\n", handle); 57 printf(NAME "Failed to get path for device %"PRIun"\n", handle); 59 58 return; 60 59 } 61 // TODO remove this. Device name contains USB address 62 // and addresses as external id are going away 63 usb_dev_session_t *sess = usb_dev_connect(handle); 64 async_exch_t *exch = async_exchange_begin(sess); 65 66 usb_address_t address; 67 rc = usb_get_my_address(exch, &address); 68 69 async_exchange_end(exch); 70 usb_dev_disconnect(sess); 71 if (rc != EOK) { 72 printf("Failed to get address for device %" PRIun "\n", handle); 73 return; 74 } 75 printf("\tDevice %02d: %s\n", address, path); 60 printf("\tDevice %" PRIun ": %s\n", handle, path); 76 61 } 77 62
Note:
See TracChangeset
for help on using the changeset viewer.