summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2004-04-13 19:49:54 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-04-13 19:49:54 -0700
commit555371f675a0184d2823d1c53ea591ceca220eeb (patch)
tree18bf749f64ced80c4ae9accff360d92b8c41691d
parent5f783bb8e554edc1ffc67003964c3ded989c27b3 (diff)
[PATCH] USB speedtouch: turn on debugging if CONFIG_USB_DEBUG is set
Hi Greg, this causes the speedtouch driver to output non-verbose debugging messages if the kernel was configured with CONFIG_USB_DEBUG. The patch is against your 2.6 kernel tree.
-rw-r--r--drivers/usb/misc/speedtch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c
index 9ff815a418f6..d8b36ba87f5e 100644
--- a/drivers/usb/misc/speedtch.c
+++ b/drivers/usb/misc/speedtch.c
@@ -84,6 +84,10 @@
#define VERBOSE_DEBUG
*/
+#if !defined (DEBUG) && defined (CONFIG_USB_DEBUG)
+# define DEBUG
+#endif
+
#include <linux/usb.h>
#ifdef DEBUG