summaryrefslogtreecommitdiffstats
path: root/common/console_simple.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:34:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:34:39 +0200
commitaa796bb7fd7511ba610e63efc5c5d71f46aee580 (patch)
tree718871153f1b1e7f915e03aa91f88bacd677b511 /common/console_simple.c
parenteeade80e9a0e16ea258e714d962604fa799adb21 (diff)
downloadbarebox-aa796bb7fd7511ba610e63efc5c5d71f46aee580.tar.gz
console_simple: Fix newline conversion
Newline should be "\r\n" rather than "\n\r" Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console_simple.c')
-rw-r--r--common/console_simple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/console_simple.c b/common/console_simple.c
index 0825ec0..ee87b8c 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -31,9 +31,10 @@ void console_putc(unsigned int ch, char c)
return;
}
- console->putc(console, c);
if (c == '\n')
console->putc(console, '\r');
+
+ console->putc(console, c);
}
EXPORT_SYMBOL(console_putc);