diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-06-19 08:25:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-06-19 08:25:51 +0200 |
commit | 6690317217e02302826a48eb56d07524837cd49f (patch) | |
tree | 489f11cbf16f658e7e6e1f253b8d0d258e3d2200 /common/console.c | |
parent | 2ce790a829bdc3c80b03c01a64e2179042298c2e (diff) | |
download | barebox-6690317217e02302826a48eb56d07524837cd49f.tar.gz barebox-6690317217e02302826a48eb56d07524837cd49f.tar.xz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |