[coreboot-gerrit] New patch to review for coreboot: 8d8305d console: Bring back newline translation
Kyösti Mälkki (kyosti.malkki@gmail.com)
gerrit at coreboot.org
Wed May 13 19:33:36 CEST 2015
Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10188
-gerrit
commit 8d8305d7106c114d0899480a9e4180150a2053eb
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date: Wed May 13 20:20:00 2015 +0300
console: Bring back newline translation
Change-Id: Ib42f4a9eeb48dfb1a04e332aeb8f83dc4c4eef91
Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
src/console/console.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/console/console.c b/src/console/console.c
index ff4b3e4..592fd21 100644
--- a/src/console/console.c
+++ b/src/console/console.c
@@ -43,6 +43,14 @@ void console_tx_byte(unsigned char byte)
__spkmodem_tx_byte(byte);
__qemu_debugcon_tx_byte(byte);
+ /* Some consoles want newline conversion
+ * to keep terminals happy.
+ */
+ if (byte == '\n') {
+ __uart_tx_byte('\r');
+ __usb_tx_byte('\r');
+ }
+
__uart_tx_byte(byte);
__ne2k_tx_byte(byte);
__usb_tx_byte(byte);
More information about the coreboot-gerrit
mailing list