[coreboot-gerrit] Patch set updated for coreboot: 6fe54da lib: Convert cbmem log line endings to UNIX standard
Timothy Pearson (tpearson@raptorengineeringinc.com)
gerrit at coreboot.org
Sun Mar 22 19:51:00 CET 2015
Timothy Pearson (tpearson at raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8857
-gerrit
commit 6fe54da263f2eccef783a7a6e4503790dda0628d
Author: Timothy Pearson <tpearson at raptorengineeringinc.com>
Date: Sat Mar 21 21:49:27 2015 -0500
lib: Convert cbmem log line endings to UNIX standard
The cbmem console output retains usage of the CRLF line ending.
Converting line endings to the standard UNIX LF avoids the
need to use dos2unix before running analysis on log files.
Change-Id: I74a04ee69836d82640c94f250465acb4d1ee1071
Signed-off-by: Timothy Pearson <tpearson at raptorengineeringinc.com>
---
src/lib/cbmem_console.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c
index 0c2722c..a73cc37 100644
--- a/src/lib/cbmem_console.c
+++ b/src/lib/cbmem_console.c
@@ -125,6 +125,10 @@ void cbmemc_init(void)
void cbmemc_tx_byte(unsigned char data)
{
+ /* Use UNIX line endings in the cbmem console log */
+ if (data == '\r')
+ return;
+
struct cbmem_console *cbm_cons_p = current_console();
u32 cursor;
More information about the coreboot-gerrit
mailing list