mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9f56917ab8
commit
b391d74336
1 changed files with 3 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue