summaryrefslogtreecommitdiffstats
path: root/include/debug_ll.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-12 09:25:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-07-12 09:25:47 +0200
commitd3a537ef7e390f79bb8bcaf718d2527da252148b (patch)
treed201505972d3cd2df5e5646e46c5b95f86e2ffd3 /include/debug_ll.h
parente47fa9d6ef50123807a7534757bfa8d47dd32172 (diff)
downloadbarebox-d3a537ef7e390f79bb8bcaf718d2527da252148b.tar.gz
barebox-d3a537ef7e390f79bb8bcaf718d2527da252148b.tar.xz
remove debugging rests
Diffstat (limited to 'include/debug_ll.h')
-rw-r--r--include/debug_ll.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/debug_ll.h b/include/debug_ll.h
index f3772aa1fe..f06fa6e57a 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -25,21 +25,20 @@
#ifndef __INCLUDE_DEBUG_LL_H__
#define __INCLUDE_DEBUG_LL_H__
-#define PUTC(x) serial_putc(x)
-
-//#if defined (CONFIG_DEBUG_LL)
-//# include <asm/arch/debug_ll.h>
+#if defined (CONFIG_DEBUG_LL)
+# include <asm/arch/debug_ll.h>
+#define PUTC_LL(x) putc(x)
# define PUTHEX_LL(value) ({ unsigned long v = (unsigned long) (value); \
int i; unsigned char ch; \
for (i = 8; i--; ) {\
ch = ((v >> (i*4)) & 0xf);\
ch += (ch >= 10) ? 'a' - 10 : '0';\
- PUTC (ch); }})
-//#else
-//# define PUTC_LL(c) do {} while (0)
-//# define PUTHEX_LL(v) do {} while (0)
+ PUTC_LL (ch); }})
+#else
+# define PUTC_LL(c) do {} while (0)
+# define PUTHEX_LL(v) do {} while (0)
-//#endif
+#endif
#endif /* __INCLUDE_DEBUG_LL_H__ */