aboutsummaryrefslogtreecommitdiff
path: root/board-qemu
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2016-02-24 10:08:17 +0100
committerAlexey Kardashevskiy <aik@ozlabs.ru>2016-02-24 20:26:41 +1100
commit126e458fdc001eb86d2cbac9f782d15d213c9153 (patch)
treec3413c8041f272e5cd32416aee5a390fe9562487 /board-qemu
parente56149ca790859e0fcf380589400427bf4e9a209 (diff)
downloadSLOF-126e458fdc001eb86d2cbac9f782d15d213c9153.zip
SLOF-126e458fdc001eb86d2cbac9f782d15d213c9153.tar.gz
SLOF-126e458fdc001eb86d2cbac9f782d15d213c9153.tar.bz2
libbootmsg: Do not use '\b' characters when printing checkpoints
Using backspaces after printing out the checkpoint numbers is fine when printing to terminals. But if the output of SLOF is placed into a log file instead, this can confuse certain readers like Firefox to interpret the log file as a binary file instead of text. To avoid this problem, we can also use '\r' to move the cursor back to the beginning - this should be fine since the checkpoints are always printed at the beginning of a line anyway. And '\r' is then interpreted as normal text, not as a potential binary file byte. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-qemu')
0 files changed, 0 insertions, 0 deletions