diff options
author | Michal Simek <monstr@monstr.eu> | 2011-11-10 13:40:08 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-01-05 08:34:25 +0100 |
commit | a8c2e555b05d6203576e396eba01f17cb2516e66 (patch) | |
tree | 3057feb334c0af550e0c944b82aae39214c96d85 /arch/microblaze | |
parent | 6c7a2676f594ca9a30203b4fd5dc26b53682cffe (diff) | |
download | linux-a8c2e555b05d6203576e396eba01f17cb2516e66.tar.bz2 |
microblaze: Send CR before LF for early console
This patch fixes problem with measuring tools.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/early_printk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c index d26d92d47754..8356e47631c4 100644 --- a/arch/microblaze/kernel/early_printk.c +++ b/arch/microblaze/kernel/early_printk.c @@ -50,9 +50,9 @@ static void early_printk_uartlite_write(struct console *unused, const char *s, unsigned n) { while (*s && n-- > 0) { - early_printk_uartlite_putc(*s); if (*s == '\n') early_printk_uartlite_putc('\r'); + early_printk_uartlite_putc(*s); s++; } } @@ -94,9 +94,9 @@ static void early_printk_uart16550_write(struct console *unused, const char *s, unsigned n) { while (*s && n-- > 0) { - early_printk_uart16550_putc(*s); if (*s == '\n') early_printk_uart16550_putc('\r'); + early_printk_uart16550_putc(*s); s++; } } |