<br><br><div class="gmail_quote">2011/7/18 Antony Pavlov <span dir="ltr"><<a href="mailto:antonynpavlov@gmail.com">antonynpavlov@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Signed-off-by: Antony Pavlov <<a href="mailto:antonynpavlov@gmail.com">antonynpavlov@gmail.com</a>><br>
---<br>
include/debug_ll.h | 13 +++++++++++++<br>
1 files changed, 13 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/include/debug_ll.h b/include/debug_ll.h<br>
index e99ae7d..6b1b174 100644<br>
--- a/include/debug_ll.h<br>
+++ b/include/debug_ll.h<br>
@@ -35,9 +35,22 @@<br>
ch = ((v >> (i*4)) & 0xf);\<br>
ch += (ch >= 10) ? 'a' - 10 : '0';\<br>
PUTC_LL (ch); }})<br>
+<br>
+static __inline__ void PUTS_LL(char * str)<br>
+{<br>
+ while (*str) {<br>
+ if (*str == '\n') {<br>
+ PUTC_LL('\r');<br>
+ }<br>
+ PUTC_LL(*str);<br>
+ str++;<br>
+ }<br>
+}<br>
+<br>
#else<br>
# define PUTC_LL(c) do {} while (0)<br>
# define PUTHEX_LL(v) do {} while (0)<br>
+# define PUTS_LL(c) do {} while (0)<br>
<br>
#endif<br>
<font color="#888888"><br>
--<br>
1.7.5.4<br>
<br>
<br>
_______________________________________________<br>
barebox mailing list<br>
<a href="mailto:barebox@lists.infradead.org">barebox@lists.infradead.org</a><br>
<a href="http://lists.infradead.org/mailman/listinfo/barebox" target="_blank">http://lists.infradead.org/mailman/listinfo/barebox</a></font></blockquote><div><br></div><div><br></div><div>Hello,</div><div><br></div><div>
Could we add an entry for CONFIG_DEBUG_LL in the debugging menu (common/Kconfig) ?</div><div>This file makes barebox not compile if we are not on arm arch due to the <mach/debug_ll.h> inclusion.</div><div><br></div>
<div>I know it's not related to your patch :)</div><div><br></div><div>Franck.</div></div><br>