[PATCH 08/27] console: Make use of __console_putc()

Andrey Smirnov andrew.smirnov at gmail.com
Thu Jun 14 21:11:17 PDT 2018


Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
 common/console.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/console.c b/common/console.c
index d64a7be25..0c098c5eb 100644
--- a/common/console.c
+++ b/common/console.c
@@ -503,9 +503,7 @@ void console_putc(unsigned int ch, char c)
 	case CONSOLE_INIT_FULL:
 		for_each_console(cdev) {
 			if (cdev->f_active & ch) {
-				if (c == '\n')
-					cdev->putc(cdev, '\r');
-				cdev->putc(cdev, c);
+				__console_putc(cdev, c);
 			}
 		}
 		return;
-- 
2.17.0




More information about the barebox mailing list