[PATCH] pbl: console: Use console_putc to output the carriage return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux