patch-2.3.6 linux/drivers/usb/usb-debug.c
Next file: linux/drivers/usb/usb.c
Previous file: linux/drivers/usb/usb-core.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Jun 4 13:33:43 1999
- Orig file:
v2.3.5/linux/drivers/usb/usb-debug.c
- Orig date:
Mon May 31 22:28:06 1999
diff -u --recursive --new-file v2.3.5/linux/drivers/usb/usb-debug.c linux/drivers/usb/usb-debug.c
@@ -24,11 +24,18 @@
static void usb_show_config(struct usb_config_descriptor *config)
{
- int i;
+ int i, j;
+ struct usb_alternate_setting *as;
- usb_show_config_descriptor(config);
- for (i = 0 ; i < config->bNumInterfaces; i++)
- usb_show_interface(config->interface + i);
+ usb_show_config_descriptor(config);
+ for (i = 0; i < config->num_altsetting; i++) {
+ as = config->altsetting + i;
+ if ((as) == NULL)
+ break;
+ printk("\n Alternate Setting: %d\n", i);
+ for (j = 0 ; j < config->bNumInterfaces; j++)
+ usb_show_interface(as->interface + j);
+ }
}
void usb_show_device(struct usb_device *dev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)