]> git.baikalelectronics.ru Git - uboot.git/commit
console: Use only 0x00 as line separator for console recording
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 27 Feb 2023 19:55:39 +0000 (20:55 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Mar 2023 22:08:51 +0000 (16:08 -0600)
commit84035dbf973f225d0f146df5fee9639984b12ed1
treeea636f7afdfc6cc977042c47d13bf980b03f7063
parente7b4cc8f7f37ed0cc8f1503fe3e2336943e667fc
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>
common/console.c