From d4a72f724f95deefa622b9dccf950e7dba1a3bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 13 May 2015 20:20:00 +0300 Subject: console: Bring back newline translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib42f4a9eeb48dfb1a04e332aeb8f83dc4c4eef91 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/10188 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/console/console.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/console') 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); -- cgit v1.2.3