Changes in uspace/drv/bus/usb/usbmid/dump.c [7c95d6f5:5203e256] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/dump.c
r7c95d6f5 r5203e256 47 47 * @param depth Nesting depth. 48 48 */ 49 static void dump_tree_descriptor( constuint8_t *data, size_t depth)49 static void dump_tree_descriptor(uint8_t *data, size_t depth) 50 50 { 51 51 if (data == NULL) { 52 52 return; 53 53 } 54 const int type = data[1];54 int type = (int) *(data + 1); 55 55 if (type == USB_DESCTYPE_INTERFACE) { 56 56 usb_standard_interface_descriptor_t *descriptor … … 71 71 * @param depth Nesting depth. 72 72 */ 73 static void dump_tree_internal( 74 usb_dp_parser_t *parser, usb_dp_parser_data_t *data, 75 const uint8_t *root, size_t depth) 73 static void dump_tree_internal(usb_dp_parser_t *parser, usb_dp_parser_data_t *data, 74 uint8_t *root, size_t depth) 76 75 { 77 76 if (root == NULL) { … … 79 78 } 80 79 dump_tree_descriptor(root, depth); 81 constuint8_t *child = usb_dp_get_nested_descriptor(parser, data, root);80 uint8_t *child = usb_dp_get_nested_descriptor(parser, data, root); 82 81 do { 83 82 dump_tree_internal(parser, data, child, depth + 1); … … 93 92 static void dump_tree(usb_dp_parser_t *parser, usb_dp_parser_data_t *data) 94 93 { 95 constuint8_t *ptr = data->data;94 uint8_t *ptr = data->data; 96 95 dump_tree_internal(parser, data, ptr, 0); 97 96 }
Note:
See TracChangeset
for help on using the changeset viewer.