diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2007-05-21 08:31:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 12:56:57 -0400 |
commit | d8902bfcacde6001e1b11bb06137c3bae3ae52d0 (patch) | |
tree | d88ad54a79264b2c80685bcbf8cbbfda090395e3 | |
parent | 39427d6e595ebee38fdd77bcf55d6b13d7a4324a (diff) |
x86_64: early_print kernel console should send CRLF not LFCR
In
commit d358788f3f30113e49882187d794832905e42592
Author: Russell King <rmk@dyn-67.arm.linux.org.uk>
Date: Mon Mar 20 20:00:09 2006 +0000
Glen Turner reported that writing LFCR rather than the more
traditional CRLF causes issues with some terminals.
Since this afflicts many serial drivers, extract the common code to a
library function (uart_console_write) and arrange for each driver to
supply a "putchar" function.
but early_printk is left out.
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/x86_64/kernel/early_printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/early_printk.c b/arch/x86_64/kernel/early_printk.c index 56eaa259782b..296d2b0c5d88 100644 --- a/arch/x86_64/kernel/early_printk.c +++ b/arch/x86_64/kernel/early_printk.c | |||
@@ -91,9 +91,9 @@ static int early_serial_putc(unsigned char ch) | |||
91 | static void early_serial_write(struct console *con, const char *s, unsigned n) | 91 | static void early_serial_write(struct console *con, const char *s, unsigned n) |
92 | { | 92 | { |
93 | while (*s && n-- > 0) { | 93 | while (*s && n-- > 0) { |
94 | early_serial_putc(*s); | ||
95 | if (*s == '\n') | 94 | if (*s == '\n') |
96 | early_serial_putc('\r'); | 95 | early_serial_putc('\r'); |
96 | early_serial_putc(*s); | ||
97 | s++; | 97 | s++; |
98 | } | 98 | } |
99 | } | 99 | } |