提交 b391d743 编写于 作者: M Masahiro Yamada 提交者: Simon Glass

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: NStefan Roese <sr@denx.de>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 9f56917a
......@@ -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) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册