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