mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] pbl: console: Use console_putc to output the carriage return
@ 2015-11-11 16:03 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2015-11-11 16:03 UTC (permalink / raw)
  To: Barebox List

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-11 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-11 16:03 [PATCH] pbl: console: Use console_putc to output the carriage return Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox