[PATCH 3/5] console_simple: Remove duplicated newline conversion

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 18 23:41:15 PDT 2018


console_puts uses console_putc for printing which already does newline
conversion, so do not do it again in console_puts.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/console_simple.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/console_simple.c b/common/console_simple.c
index 9675cbb0a6..0825ec07ec 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -16,8 +16,6 @@ int console_puts(unsigned int ch, const char *str)
 
 	while (*s) {
 		console_putc(ch, *s);
-		if (*s == '\n')
-			console_putc(ch, '\r');
 		s++;
 		i++;
 	}
-- 
2.17.1




More information about the barebox mailing list