Skip to content
Browse files

turn off some debugging

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information...
1 parent 1bbd827 commit da2fffd3ccd441391f9981e2f76f3aa32ffd52f2 @gregkh committed Apr 23, 2010
Showing with 9 additions and 7 deletions.
  1. +3 −3 device.c
  2. +6 −4 raw.c
View
6 device.c
@@ -174,9 +174,9 @@ void print_usb_devices(void)
printf("\tIntf %s (%s)\n",
usb_interface->sysname,
usb_interface->driver);
- list_for_each_entry(usb_endpoint, &usb_interface->endpoints, list) {
- printf("\t\tEp (%s)\n", usb_endpoint->bEndpointAddress);
- }
+// list_for_each_entry(usb_endpoint, &usb_interface->endpoints, list) {
+// printf("\t\tEp (%s)\n", usb_endpoint->bEndpointAddress);
+// }
}
}
}
View
10 raw.c
@@ -48,7 +48,7 @@ static void parse_config_descriptor(const unsigned char *descriptor)
config.iConfiguration = descriptor[6];
config.bmAttributes = descriptor[7];
config.bMaxPower = descriptor[8];
-
+#if 0
printf("Config descriptor\n");
printf("\tbLength\t\t\t%d\n", config.bLength);
printf("\tbDescriptorType\t\t%d\n", config.bDescriptorType);
@@ -58,6 +58,7 @@ static void parse_config_descriptor(const unsigned char *descriptor)
printf("\tiConfiguration\t\t%d\n", config.iConfiguration);
printf("\tbmAttributes\t\t0x%02x\n", config.bmAttributes);
printf("\tbMaxPower\t\t%d\n", config.bMaxPower);
+#endif
}
static void parse_interface_descriptor(const unsigned char *descriptor)
@@ -71,7 +72,7 @@ static void parse_interface_descriptor(const unsigned char *descriptor)
unsigned char bInterfaceSubClass = descriptor[6];
unsigned char bInterfaceProtocol = descriptor[7];
unsigned char iInterface = descriptor[8];
-
+#if 0
printf("Interface descriptor\n");
printf("\tbLength\t\t\t%d\n", bLength);
printf("\tbDescriptorType\t\t%d\n", bDescriptorType);
@@ -82,7 +83,7 @@ static void parse_interface_descriptor(const unsigned char *descriptor)
printf("\tbInterfaceSubClass\t%d\n", bInterfaceSubClass);
printf("\tbInterfaceProtocol\t%d\n", bInterfaceProtocol);
printf("\tiInterface\t\t%d\n", iInterface);
-
+#endif
}
static void parse_endpoint_descriptor(const unsigned char *descriptor)
@@ -93,14 +94,15 @@ static void parse_endpoint_descriptor(const unsigned char *descriptor)
unsigned char bmAttributes = descriptor[3];
unsigned short wMaxPacketSize = (descriptor[5] << 8) | descriptor[4];
unsigned char bInterval = descriptor[6];
-
+#if 0
printf("Endpoint descriptor\n");
printf("\tbLength\t\t\t%d\n", bLength);
printf("\tbDescriptorType\t\t%d\n", bDescriptorType);
printf("\tbEndpointAddress\t%0x\n", bEndpointAddress);
printf("\tbmAtributes\t\t%0x\n", bmAttributes);
printf("\twMaxPacketSize\t\t%d\n", wMaxPacketSize);
printf("\tbInterval\t\t%d\n", bInterval);
+#endif
}
static void parse_device_qualifier(struct usb_device *usb_device, const unsigned char *descriptor)

0 comments on commit da2fffd

Please sign in to comment.
Something went wrong with that request. Please try again.