qualcomm/common: Remove carriage returns from QcLib log
The memory log we get returned by QcLib contains Windows line endings ("\r\n"), while we prefer to have POSIX line endings in the CBMEM console (just "\n"). Filter the '\r' character out when copying that log into the CBMEM console to convert. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I0652300c2393fbc0b3c9875bb0ca1aa921e59098 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77722 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Shelley Chen <shchen@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b7832de026
commit
37833fc4be
|
@ -115,8 +115,11 @@ static void write_qclib_log_to_cbmemc(struct qclib_cb_if_table_entry *te)
|
||||||
int i;
|
int i;
|
||||||
char *ptr = (char *)te->blob_address;
|
char *ptr = (char *)te->blob_address;
|
||||||
|
|
||||||
for (i = 0; i < te->size; i++)
|
for (i = 0; i < te->size; i++) {
|
||||||
__cbmemc_tx_byte(*ptr++);
|
char c = *ptr++;
|
||||||
|
if (c != '\r')
|
||||||
|
__cbmemc_tx_byte(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void write_table_entry(struct qclib_cb_if_table_entry *te)
|
static void write_table_entry(struct qclib_cb_if_table_entry *te)
|
||||||
|
|
Loading…
Reference in New Issue