Changes in uspace/app/usbinfo/info.c [b25199bc:e51a514] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/info.c
rb25199bc re51a514 51 51 } 52 52 53 static void dump_match_ids_from_interface( 54 const uint8_t *descriptor, size_t depth,void *arg)53 static void dump_match_ids_from_interface(uint8_t *descriptor, size_t depth, 54 void *arg) 55 55 { 56 56 if (depth != 1) { … … 165 165 166 166 167 static void dump_descriptor_tree_callback( 168 const uint8_t *descriptor,size_t depth, void *arg)167 static void dump_descriptor_tree_callback(uint8_t *descriptor, 168 size_t depth, void *arg) 169 169 { 170 170 const char *indent = get_indent(depth + 1); … … 246 246 } 247 247 248 static void find_string_indexes_callback( 249 const uint8_t *descriptor,size_t depth, void *arg)248 static void find_string_indexes_callback(uint8_t *descriptor, 249 size_t depth, void *arg) 250 250 { 251 251 size_t descriptor_length = descriptor[0]; … … 287 287 void dump_strings(usbinfo_device_t *dev) 288 288 { 289 /* Find used indexes. Devices with more than 64 strings are very rare.*/290 uint64_t str_mask = 0;291 find_string_indexes_callback((uint8_t *)&dev->device_descriptor, 0,292 &str_mask);293 usb_dp_walk_simple(dev->full_configuration_descriptor,294 dev->full_configuration_descriptor_size,295 usb_dp_standard_descriptor_nesting,296 find_string_indexes_callback,297 &str_mask);298 299 if (str_mask == 0) {300 printf("Device does not support string descriptors.\n");301 return;302 }303 304 289 /* Get supported languages. */ 305 290 l18_win_locales_t *langs; … … 320 305 } 321 306 printf(".\n"); 307 308 /* Find used indexes. Device with more than 64 strings are very rare. 309 */ 310 uint64_t str_mask = 0; 311 find_string_indexes_callback((uint8_t *)&dev->device_descriptor, 0, 312 &str_mask); 313 usb_dp_walk_simple(dev->full_configuration_descriptor, 314 dev->full_configuration_descriptor_size, 315 usb_dp_standard_descriptor_nesting, 316 find_string_indexes_callback, 317 &str_mask); 322 318 323 319 /* Get all strings and dump them. */
Note:
See TracChangeset
for help on using the changeset viewer.