[PATCH 2/2] ARM: early_printk: Stop emitting double CR on the console

Alexander Sverdlin alexander.sverdlin at nokia.com
Wed Sep 27 04:49:29 PDT 2017


printch already takes care about LF->CRLF translation, so
early_write() just produced extra CR.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin at nokia.com>
---
 arch/arm/kernel/early_printk.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c
index 4307653..8300d5b 100644
--- a/arch/arm/kernel/early_printk.c
+++ b/arch/arm/kernel/early_printk.c
@@ -17,8 +17,6 @@ extern void printch(int);
 static void early_write(const char *s, unsigned n)
 {
 	while (n-- > 0) {
-		if (*s == '\n')
-			printch('\r');
 		printch(*s);
 		s++;
 	}
-- 
2.4.6




More information about the linux-arm-kernel mailing list