]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
USB: Change the necessary defines to get debug output
authorAlexander Holler <holler@ahsoftware.de>
Fri, 28 Jan 2011 11:42:13 +0000 (12:42 +0100)
committerRemy Bohmer <linux@bohmer.net>
Sat, 5 Feb 2011 12:54:51 +0000 (13:54 +0100)
While debugging some USB stuff, I've first missed that there are actually
two defines necessary to get usefull output. The one needed to get debug output
for the communication with HUBs was burried somewhere deep inside the code.

Change that so that a #define DEBUG is enough while still leaving the possibility
to reduce unwanted debug output.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
common/usb.c

index aa28de028fc3e4c64927af5ad61d6fcea6743e01..44a435af6e67ed7de122a55e770c3d09f7ec95c5 100644 (file)
 #include <asm/4xx_pci.h>
 #endif
 
-#undef USB_DEBUG
+#ifdef DEBUG
+#define USB_DEBUG
+#define USB_HUB_DEBUG
+#endif
 
 #ifdef USB_DEBUG
 #define        USB_PRINTF(fmt, args...)        printf(fmt , ##args)
@@ -960,8 +963,6 @@ void usb_scan_devices(void)
  * Probes device for being a hub and configurate it
  */
 
-#undef USB_HUB_DEBUG
-
 #ifdef USB_HUB_DEBUG
 #define        USB_HUB_PRINTF(fmt, args...)    printf(fmt , ##args)
 #else