console: Bring back newline translation
Change-Id: Ib42f4a9eeb48dfb1a04e332aeb8f83dc4c4eef91
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/10188
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
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 @@
__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);