public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c
@ 2010-08-11 21:39 Stefano Babic
  2010-08-11 22:00 ` Wolfgang Denk
  2010-08-11 22:11 ` Reinhard Meyer
  0 siblings, 2 replies; 5+ messages in thread
From: Stefano Babic @ 2010-08-11 21:39 UTC (permalink / raw)
  To: u-boot

Use DEBUG as usual to print debug output.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 drivers/usb/gadget/ether.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 3d871fa..e0ebf75 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -31,7 +31,11 @@
 #include "gadget_chips.h"
 
 #define USB_NET_NAME "usb0"
+#ifdef DEBUG
+#define dprintf printf
+#else
 #define dprintf(x, ...)
+#endif
 #undef INFO
 #define INFO(x, s...)	printf(s)
 #define dev_err(x, stuff...) printf(stuff)
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-12  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-11 21:39 [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c Stefano Babic
2010-08-11 22:00 ` Wolfgang Denk
2010-08-12  8:48   ` Stefano Babic
2010-08-11 22:11 ` Reinhard Meyer
2010-08-12  9:31   ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox