mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
console: Use only 0x00 as line separator for console recording
In case character 0x20 (space) is used as line separator, character 0x9 (tab) is treated end of line. Commands which output a lot of tabs, i.e. various tree printing commands like 'fdt print' then end up generating a lot of newlines in the recorded output, and the recorded output is corrupted. Use character 0x00 (NUL) as separator instead to treat the tabs as valid part of recorded line. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a96dea2569
commit
97d6d7e360
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ int console_record_readline(char *str, int maxlen)
|
|||
return -ENOSPC;
|
||||
|
||||
return membuff_readline((struct membuff *)&gd->console_out, str,
|
||||
maxlen, ' ');
|
||||
maxlen, '\0');
|
||||
}
|
||||
|
||||
int console_record_avail(void)
|
||||
|
|
Loading…
Reference in a new issue