summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:25:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:25:51 +0200
commit6690317217e02302826a48eb56d07524837cd49f (patch)
tree489f11cbf16f658e7e6e1f253b8d0d258e3d2200 /common/console.c
parent2ce790a829bdc3c80b03c01a64e2179042298c2e (diff)
downloadbarebox-6690317217e02302826a48eb56d07524837cd49f.tar.gz
console: add missing newline conversion for putc_ll
putc_ll doesn't do newline conversion (and it shouldn't do, as it's a static inline function for early debugging, adding more code there is not nice), so add newline conversion to the console code when it uses putc_ll for printing early messages. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index ab3d4d3..c40eba6 100644
--- a/common/console.c
+++ b/common/console.c
@@ -513,6 +513,8 @@ void console_putc(unsigned int ch, char c)
case CONSOLE_INITIALIZED_BUFFER:
kfifo_putc(console_output_fifo, c);
+ if (c == '\n')
+ putc_ll('\r');
putc_ll(c);
return;