From: Alexander Holler Date: Fri, 28 Jan 2011 11:42:13 +0000 (+0100) Subject: USB: Change the necessary defines to get debug output X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ce297a8f7e6134b2dcbf4d180b1183a884f73c30;p=u-boot.git 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 --- diff --git a/common/usb.c b/common/usb.c index aa28de028f..44a435af6e 100644 --- a/common/usb.c +++ b/common/usb.c @@ -55,7 +55,10 @@ #include #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