Lines Matching refs:printf
46 printf(" Device Descriptor\n"); in lsusb_parse_device_descriptor()
47 printf("\tbcdUSB: %04x\n", letoh16(desc->bcdUSB)); in lsusb_parse_device_descriptor()
48 printf("\tbDeviceClass: %02x\n", desc->bDeviceClass); in lsusb_parse_device_descriptor()
49 printf("\tbDeviceSubClass: %02x\n", desc->bDeviceSubClass); in lsusb_parse_device_descriptor()
50 printf("\tbDeviceProtocol: %02x\n", desc->bDeviceProtocol); in lsusb_parse_device_descriptor()
51 printf("\tbMaxPacketSize0: %02x\n", desc->bMaxPacketSize0); in lsusb_parse_device_descriptor()
52 printf("\tidVendor: %04x\n", letoh16(desc->idVendor)); in lsusb_parse_device_descriptor()
53 printf("\tidProduct: %04x\n", letoh16(desc->idProduct)); in lsusb_parse_device_descriptor()
54 printf("\tbcdDevice: %04x\n", letoh16(desc->bcdDevice)); in lsusb_parse_device_descriptor()
55 printf("\tiManufacturer: %s\n", get_str(dev, desc->iManufacturer)); in lsusb_parse_device_descriptor()
56 printf("\tiProduct: %s\n", get_str(dev, desc->iProduct)); in lsusb_parse_device_descriptor()
57 printf("\tiSerialNumber: %s\n", get_str(dev,desc->iSerialNumber)); in lsusb_parse_device_descriptor()
58 printf("\tbNumConfiguration: %02x\n", desc->bNumConfigurations); in lsusb_parse_device_descriptor()
59 printf("\n"); in lsusb_parse_device_descriptor()
65 printf(" Config Descriptor\n"); in lsusb_parse_config_descriptor()
66 printf("\twTotalLength: %04x\n", letoh16(desc->wTotalLength)); in lsusb_parse_config_descriptor()
67 printf("\tbNumInterfaces: %02x\n", desc->bNumInterfaces); in lsusb_parse_config_descriptor()
68 printf("\tbConfigurationValue: %02x\n", desc->bConfigurationValue); in lsusb_parse_config_descriptor()
69 printf("\tiConfiguration: %s\n", get_str(dev, desc->iConfiguration)); in lsusb_parse_config_descriptor()
70 printf("\tbmAttributes: %02x\n", desc->bmAttributes); in lsusb_parse_config_descriptor()
71 printf("\tbMaxPower: %d mA\n", desc->bMaxPower * 2); in lsusb_parse_config_descriptor()
72 printf("\n"); in lsusb_parse_config_descriptor()
78 printf(" Interface Descriptor\n"); in lsusb_parse_interface_descriptor()
79 printf("\tbInterfaceNumber: %02x\n", desc->bInterfaceNumber); in lsusb_parse_interface_descriptor()
80 printf("\tbAlternateSetting: %02x\n", desc->bAlternateSetting); in lsusb_parse_interface_descriptor()
81 printf("\tbNumEndpoints: %02x\n", desc->bNumEndpoints); in lsusb_parse_interface_descriptor()
82 printf("\tbInterfaceClass: %02x\n", desc->bInterfaceClass); in lsusb_parse_interface_descriptor()
83 printf("\tbInterfaceSubClass: %02x\n", desc->bInterfaceSubClass); in lsusb_parse_interface_descriptor()
84 printf("\tbInterfaceProtocol: %02x\n", desc->bInterfaceProtocol); in lsusb_parse_interface_descriptor()
85 printf("\tiInterface: %s\n", get_str(dev, desc->iInterface)); in lsusb_parse_interface_descriptor()
86 printf("\n"); in lsusb_parse_interface_descriptor()
92 printf(" Endpoint Descriptor\n"); in lsusb_parse_endpoint_descriptor()
93 printf("\tbEndpointAddress: %02x\n", desc->bEndpointAddress); in lsusb_parse_endpoint_descriptor()
94 printf("\tbmAttributes: %02x\n", desc->bmAttributes); in lsusb_parse_endpoint_descriptor()
95 printf("\twMaxPacketSize: %02x\n", letoh16(desc->wMaxPacketSize)); in lsusb_parse_endpoint_descriptor()
96 printf("\tbInterval: %02x\n", desc->bInterval); in lsusb_parse_endpoint_descriptor()
97 printf("\tbRefresh: %02x\n", desc->bRefresh); in lsusb_parse_endpoint_descriptor()
98 printf("\tbSynchAddress: %02x\n", desc->bSynchAddress); in lsusb_parse_endpoint_descriptor()
99 printf("\n"); in lsusb_parse_endpoint_descriptor()
106 printf(" Descriptor type %02x\n", desc->bDescriptorType); in lsusb_dump_descriptor()
110 printf("\t%02x:", i); in lsusb_dump_descriptor()
111 printf(" %02x", ((uint8_t *)desc)[i]); in lsusb_dump_descriptor()
113 printf("\n"); in lsusb_dump_descriptor()
117 printf("\n"); in lsusb_dump_descriptor()
118 printf("\n"); in lsusb_dump_descriptor()
161 printf("%s:\n", dev_name); in lsusb_device_added()
178 printf("%s: %04x:%04x %s %s %s\n", dev_name, vid, pid, in lsusb_device_added()