[PATCH 5/5] console_simple: add newline conversion for putc_ll case

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

 



When console_putc uses putc_ll for early printing then it must
do a newline conversion as putc_ll doesn't do it.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 common/console_simple.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/console_simple.c b/common/console_simple.c
index ee87b8c52f..385da2fd86 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -27,6 +27,8 @@ EXPORT_SYMBOL(console_puts);
 void console_putc(unsigned int ch, char c)
 {
 	if (!console) {
+		if (c == '\n')
+			putc_ll('\r');
 		putc_ll(c);
 		return;
 	}
-- 
2.17.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