diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-06-19 08:35:23 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-06-19 08:35:27 +0200 |
commit | 1cbb66f319a8cbdab531a8b38d7474693ef45f13 (patch) | |
tree | 8fe0099fc2b049749a2aeab2bd7d4ca02edc99cd /common | |
parent | aa796bb7fd7511ba610e63efc5c5d71f46aee580 (diff) | |
download | barebox-1cbb66f319a8cbdab531a8b38d7474693ef45f13.tar.gz barebox-1cbb66f319a8cbdab531a8b38d7474693ef45f13.tar.xz |
console_simple: add newline conversion for putc_ll case
When console_putc uses putc_ll for early printing then it must
do a newline conversion as putc_ll doesn't do it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/console_simple.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console_simple.c b/common/console_simple.c index ee87b8c52f..385da2fd86 100644 --- a/common/console_simple.c +++ b/common/console_simple.c @@ -27,6 +27,8 @@ EXPORT_SYMBOL(console_puts); void console_putc(unsigned int ch, char c) { if (!console) { + if (c == '\n') + putc_ll('\r'); putc_ll(c); return; } |