[PATCH 1/2] debug_ll.h: add PUTS_LL() function
Antony Pavlov
antonynpavlov at gmail.com
Sun Jul 17 14:56:24 EDT 2011
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
include/debug_ll.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/debug_ll.h b/include/debug_ll.h
index e99ae7d..87aa083 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -35,9 +35,19 @@
ch = ((v >> (i*4)) & 0xf);\
ch += (ch >= 10) ? 'a' - 10 : '0';\
PUTC_LL (ch); }})
+
+static __inline__ void PUTS_LL(char * str)
+{
+ while (*str) {
+ PUTC_LL(*str);
+ str++;
+ }
+}
+
#else
# define PUTC_LL(c) do {} while (0)
# define PUTHEX_LL(v) do {} while (0)
+# define PUTS_LL(c) do {} while (0)
#endif
--
1.7.5.4
More information about the barebox
mailing list