From 6690317217e02302826a48eb56d07524837cd49f Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 19 Jun 2018 08:25:49 +0200 Subject: 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 --- common/console.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/console.c') diff --git a/common/console.c b/common/console.c index ab3d4d397c..c40eba6d55 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; -- cgit v1.2.3