[coreboot-gerrit] New patch to review for coreboot: 72172dd uart8250io: add '\r' before '\n'

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Tue Apr 21 16:47:50 CEST 2015


Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9932

-gerrit

commit 72172dd4e7795f091d5ad6e1f9d4e387f0cc70b4
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Tue Mar 31 20:32:41 2015 -0500

    uart8250io: add '\r' before '\n'
    
    Make serial output prettier now.
    
    Change-Id: Ieeffd1a25e58dfbd498539ce0ef51ef746eab76f
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/drivers/uart/uart8250io.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/drivers/uart/uart8250io.c b/src/drivers/uart/uart8250io.c
index 2cb586e..6e7174f 100644
--- a/src/drivers/uart/uart8250io.c
+++ b/src/drivers/uart/uart8250io.c
@@ -122,6 +122,8 @@ void uart_init(int idx)
 
 void uart_tx_byte(int idx, unsigned char data)
 {
+	if (data == '\n')
+		uart8250_tx_byte(uart_platform_base(idx), '\r');
 	uart8250_tx_byte(uart_platform_base(idx), data);
 }
 



More information about the coreboot-gerrit mailing list