Changes in uspace/app/usbinfo/info.c [b8e2f93:8373f53] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/info.c
rb8e2f93 r8373f53 109 109 usb_standard_device_descriptor_t *descriptor) 110 110 { 111 printf("%sDevice (0x%04x by 0x%04x, %s )\n", prefix,111 printf("%sDevice (0x%04x by 0x%04x, %s, %zu configurations)\n", prefix, 112 112 (int) descriptor->product_id, 113 113 (int) descriptor->vendor_id, 114 usb_str_class(descriptor->device_class)); 114 usb_str_class(descriptor->device_class), 115 (size_t) descriptor->configuration_count); 115 116 } 116 117 … … 118 119 usb_standard_configuration_descriptor_t *descriptor) 119 120 { 120 printf("%sConfiguration #%d\n", prefix, 121 (int) descriptor->configuration_number); 121 printf("%sConfiguration #%d (%zu interfaces)\n", prefix, 122 (int) descriptor->configuration_number, 123 (size_t) descriptor->interface_count); 122 124 } 123 125 … … 125 127 usb_standard_interface_descriptor_t *descriptor) 126 128 { 127 printf("%sInterface #%d (%s, 0x%02x, 0x%02x) \n", prefix,129 printf("%sInterface #%d (%s, 0x%02x, 0x%02x), alternate %d\n", prefix, 128 130 (int) descriptor->interface_number, 129 131 usb_str_class(descriptor->interface_class), 130 132 (int) descriptor->interface_subclass, 131 (int) descriptor->interface_protocol); 133 (int) descriptor->interface_protocol, 134 (int) descriptor->alternate_setting); 132 135 } 133 136
Note:
See TracChangeset
for help on using the changeset viewer.