summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/debug_ll.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/debug_ll.h b/include/debug_ll.h
index e99ae7d207..6b1b174ad4 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -35,9 +35,22 @@
ch = ((v >> (i*4)) & 0xf);\
ch += (ch >= 10) ? 'a' - 10 : '0';\
PUTC_LL (ch); }})
+
+static __inline__ void PUTS_LL(char * str)
+{
+ while (*str) {
+ if (*str == '\n') {
+ PUTC_LL('\r');
+ }
+ 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