diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-06-19 08:34:36 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-06-19 08:34:39 +0200 |
commit | aa796bb7fd7511ba610e63efc5c5d71f46aee580 (patch) | |
tree | 718871153f1b1e7f915e03aa91f88bacd677b511 | |
parent | eeade80e9a0e16ea258e714d962604fa799adb21 (diff) | |
download | barebox-aa796bb7fd7511ba610e63efc5c5d71f46aee580.tar.gz barebox-aa796bb7fd7511ba610e63efc5c5d71f46aee580.tar.xz |
console_simple: Fix newline conversion
Newline should be "\r\n" rather than "\n\r"
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/console_simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/console_simple.c b/common/console_simple.c index 0825ec07ec..ee87b8c52f 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); |