Changeset 5a6cc679 in mainline for uspace/app/usbinfo
- Timestamp:
- 2018-01-31T02:21:24Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- Location:
- uspace/app/usbinfo
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/hid.c
r132ab5d1 r5a6cc679 136 136 137 137 size_t actual_report_size; 138 int rc = usb_request_get_descriptor(ctrl_pipe,138 errno_t rc = usb_request_get_descriptor(ctrl_pipe, 139 139 USB_REQUEST_TYPE_STANDARD, USB_REQUEST_RECIPIENT_INTERFACE, 140 140 USB_DESCTYPE_HID_REPORT, 0, iface_no, -
uspace/app/usbinfo/info.c
r132ab5d1 r5a6cc679 322 322 l18_win_locales_t *langs; 323 323 size_t langs_count; 324 int rc = usb_request_get_supported_languages(324 errno_t rc = usb_request_get_supported_languages( 325 325 usb_device_get_default_pipe(usb_dev), &langs, &langs_count); 326 326 if (rc != EOK) { … … 371 371 void dump_status(usb_device_t *usb_dev) 372 372 { 373 int rc;373 errno_t rc; 374 374 uint16_t status = 0; 375 375 -
uspace/app/usbinfo/list.c
r132ab5d1 r5a6cc679 53 53 { 54 54 char path[MAX_PATH_LENGTH]; 55 int rc = devman_fun_get_path(handle, path, MAX_PATH_LENGTH);55 errno_t rc = devman_fun_get_path(handle, path, MAX_PATH_LENGTH); 56 56 if (rc != EOK) { 57 57 printf(NAME "Failed to get path for device %"PRIun"\n", handle); … … 64 64 { 65 65 devman_handle_t hc_handle = 0; 66 int rc = devman_fun_sid_to_handle(svc, &hc_handle);66 errno_t rc = devman_fun_sid_to_handle(svc, &hc_handle); 67 67 if (rc != EOK) { 68 68 printf(NAME ": Error resolving handle of HC with SID %" … … 133 133 service_id_t *svcs; 134 134 size_t count; 135 int rc;135 errno_t rc; 136 136 137 137 rc = loc_category_get_id(USB_HC_CATEGORY, &usbhc_cat, 0); -
uspace/app/usbinfo/main.c
r132ab5d1 r5a6cc679 198 198 /* The initialization is here only to make compiler happy. */ 199 199 devman_handle_t handle = 0; 200 int rc = usb_resolve_device_handle(devpath, &handle);200 errno_t rc = usb_resolve_device_handle(devpath, &handle); 201 201 if (rc != EOK) { 202 202 fprintf(stderr, NAME ": device `%s' not found " -
uspace/app/usbinfo/usbinfo.h
r132ab5d1 r5a6cc679 56 56 extern void dump_descriptor_tree(uint8_t *, size_t); 57 57 58 static inline void internal_error( int err)58 static inline void internal_error(errno_t err) 59 59 { 60 60 fprintf(stderr, NAME ": internal error (%s).\n", str_error(err));
Note:
See TracChangeset
for help on using the changeset viewer.