Skip to content
Snippets Groups Projects
Commit b391d743 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Simon Glass
Browse files

debug_uart: output CR along with LF


The serial output from the debug UART carries on going far to the
right in the console.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 9f56917a
No related branches found
No related tags found
No related merge requests found
......@@ -117,13 +117,15 @@ void printhex8(uint value);
#define DEBUG_UART_FUNCS \
void printch(int ch) \
{ \
if (ch == '\n') \
_debug_uart_putc('\r'); \
_debug_uart_putc(ch); \
} \
\
void printascii(const char *str) \
{ \
while (*str) \
_debug_uart_putc(*str++); \
printch(*str++); \
} \
\
static inline void printhex1(uint digit) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment