patch-2.3.99-pre2 linux/drivers/usb/drivers.c
Next file: linux/drivers/usb/dsbr100.c
Previous file: linux/drivers/usb/dc2xx.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Sat Mar 18 11:41:15 2000
- Orig file:
v2.3.99-pre1/linux/drivers/usb/drivers.c
- Orig date:
Fri Mar 10 16:40:44 2000
diff -u --recursive --new-file v2.3.99-pre1/linux/drivers/usb/drivers.c linux/drivers/usb/drivers.c
@@ -69,7 +69,11 @@
pos = *ppos;
for (; tmp != &usb_driver_list; tmp = tmp->next) {
struct usb_driver *driver = list_entry(tmp, struct usb_driver, driver_list);
- start += sprintf (start, "%s\n", driver->name);
+ int minor = driver->fops ? driver->minor : -1;
+ if (minor == -1)
+ start += sprintf (start, " %s\n", driver->name);
+ else
+ start += sprintf (start, "%3d-%3d: %s\n", minor, minor + 15, driver->name);
if (start > end) {
start += sprintf(start, "(truncated)\n");
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)