patch-2.3.4 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

diff -u --recursive --new-file v2.3.3/linux/drivers/usb/usb-debug.c linux/drivers/usb/usb-debug.c
@@ -124,4 +124,8 @@
 	printk("\n");
 }
 
-
+void usb_show_string(struct usb_device* dev, char *id, int index)
+{
+	if (index <= dev->maxstring && dev->stringindex && dev->stringindex[index])
+		printk("%s: %s\n", id, dev->stringindex[index]);
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)