summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:35:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:35:27 +0200
commit1cbb66f319a8cbdab531a8b38d7474693ef45f13 (patch)
tree8fe0099fc2b049749a2aeab2bd7d4ca02edc99cd /common
parentaa796bb7fd7511ba610e63efc5c5d71f46aee580 (diff)
downloadbarebox-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.c2
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;
}