summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-05-13 20:20:00 +0300
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-05-15 00:03:33 +0200
commitd4a72f724f95deefa622b9dccf950e7dba1a3bcf (patch)
tree8e82f11ad579a2b8141a97c8dbc87f0f2a2827ef /src
parent2d3964ec29ecc5df5783f8c7366fb1416f83f68c (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/console/console.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/console/console.c b/src/console/console.c
index ff4b3e47b2..592fd21442 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);