[PATCH] pbl: console: Use console_putc to output the carriage return
Sascha Hauer
s.hauer at pengutronix.de
Wed Nov 11 08:03:23 PST 2015
console_puts uses console_putc() to output characters, so the carriage
return should be output with the same function.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
pbl/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pbl/console.c b/pbl/console.c
index 3574753..4cefe748 100644
--- a/pbl/console.c
+++ b/pbl/console.c
@@ -32,7 +32,7 @@ int console_puts(unsigned int ch, const char *str)
while (*str) {
if (*str == '\n')
- putc_ll('\r');
+ console_putc(CONSOLE_STDOUT, '\r');
console_putc(CONSOLE_STDOUT, *str);
str++;
--
2.6.1
More information about the barebox
mailing list