debug_uart: output CR along with LF
PATCH 1/1 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 <[email protected]>
---
include/debug_uart.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/debug_uart.h +3 -1
@@ -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) \
Signature · 1 line
1.9.1
PATCH 1/1 debug_uart: output CR along with LF
Quoted 4 lines · Masahiro Yamada
The serial output from the debug UART carries on going far to the right in the console.
Signed-off-by Masahiro Yamada <[email protected]>
Yes, this has bugged me as well a few times as well. Thanks!
Reviewed-by Stefan Roese <[email protected]>
Thanks,
Stefan
PATCH 1/1 debug_uart: output CR along with LF
In reply to Masahiro YamadaQuoted 9 lines · Masahiro Yamada
The serial output from the debug UART carries on going far to the right in the console.
Signed-off-by Masahiro Yamada <[email protected]>---
include/debug_uart.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 debug_uart: output CR along with LF
Quoted 5 lines · Simon Glass
Quoted 4 lines · Masahiro Yamada
The serial output from the debug UART carries on going far to the right in the console.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Masahiro Yamada <[email protected]>---
include/debug_uart.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Reviewed-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!