summaryrefslogtreecommitdiff
path: root/common/usb.c
diff options
context:
space:
mode:
authorAlexander Holler <holler@ahsoftware.de>2011-01-28 12:42:13 +0100
committerRemy Bohmer <linux@bohmer.net>2011-02-05 13:54:51 +0100
commitce297a8f7e6134b2dcbf4d180b1183a884f73c30 (patch)
treeb6cc980b3fc17cef4f4f6abea08145ea18c3661c /common/usb.c
parentcb44091fdfa1170f9c0a0a1d3396d6472fbf8911 (diff)
downloadu-boot-imx-ce297a8f7e6134b2dcbf4d180b1183a884f73c30.zip
u-boot-imx-ce297a8f7e6134b2dcbf4d180b1183a884f73c30.tar.gz
u-boot-imx-ce297a8f7e6134b2dcbf4d180b1183a884f73c30.tar.bz2
USB: Change the necessary defines to get debug output
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>
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/usb.c b/common/usb.c
index aa28de0..44a435a 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -55,7 +55,10 @@
#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