[sent this to Randy, forgot to CC the list:]

Hi,

Here's a patch against 2.3.99-pre4-1 that ties some more driver's
debugging output into the CONFIG_USB_DEBUG configuration option. There
are more drivers to do, but I need to contact their maintainers (Vojtech
told me to go ahead with this patch for his drivers).

Thanks a lot,

greg k-h
[EMAIL PROTECTED]

diff -Naur -X dontdiff linux-2.3.99-pre4-1/drivers/usb/acm.c 
linux-2.3.99-pre4-1-greg/drivers/usb/acm.c
--- linux-2.3.99-pre4-1/drivers/usb/acm.c       Fri Mar 10 16:18:34 2000
+++ linux-2.3.99-pre4-1-greg/drivers/usb/acm.c  Wed Mar 29 07:23:45 2000
@@ -49,7 +49,11 @@
 #include <linux/tty_flip.h>
 #include <linux/tty.h>
 #include <linux/module.h>
-#define DEBUG
+#ifdef CONFIG_USB_DEBUG
+       #define DEBUG
+#else
+       #undef DEBUG
+#endif
 #include <linux/usb.h>
 
 /*
diff -Naur -X dontdiff linux-2.3.99-pre4-1/drivers/usb/hid.c 
linux-2.3.99-pre4-1-greg/drivers/usb/hid.c
--- linux-2.3.99-pre4-1/drivers/usb/hid.c       Sun Mar 19 18:29:40 2000
+++ linux-2.3.99-pre4-1-greg/drivers/usb/hid.c  Wed Mar 29 07:34:32 2000
@@ -39,7 +39,11 @@
 #include <linux/mm.h>
 #include <linux/smp_lock.h>
 #include <linux/spinlock.h>
-#undef DEBUG
+#ifdef CONFIG_USB_DEBUG
+       #define DEBUG
+#else
+       #undef DEBUG
+#endif
 #undef DEBUG_DATA
 #include <linux/usb.h>
 
diff -Naur -X dontdiff linux-2.3.99-pre4-1/drivers/usb/printer.c 
linux-2.3.99-pre4-1-greg/drivers/usb/printer.c
--- linux-2.3.99-pre4-1/drivers/usb/printer.c   Fri Mar 10 16:18:34 2000
+++ linux-2.3.99-pre4-1-greg/drivers/usb/printer.c      Wed Mar 29 07:23:45 2000
@@ -39,7 +39,11 @@
 #include <linux/init.h>
 #include <linux/malloc.h>
 #include <linux/lp.h>
-#define DEBUG
+#ifdef CONFIG_USB_DEBUG
+       #define DEBUG
+#else
+       #undef DEBUG
+#endif
 #include <linux/usb.h>
 
 #define USBLP_BUF_SIZE         8192
diff -Naur -X dontdiff linux-2.3.99-pre4-1/drivers/usb/wacom.c 
linux-2.3.99-pre4-1-greg/drivers/usb/wacom.c
--- linux-2.3.99-pre4-1/drivers/usb/wacom.c     Sun Mar 19 18:29:40 2000
+++ linux-2.3.99-pre4-1-greg/drivers/usb/wacom.c        Wed Mar 29 07:34:32 2000
@@ -45,6 +45,11 @@
 #include <linux/input.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#ifdef CONFIG_USB_DEBUG
+       #define DEBUG
+#else
+       #undef DEBUG
+#endif
 #include <linux/usb.h>
 
 MODULE_AUTHOR("Vojtech Pavlik <[EMAIL PROTECTED]>");

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to