]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Correct loss of early output in SPL
authorSimon Glass <sjg@chromium.org>
Sun, 27 Mar 2022 20:26:14 +0000 (14:26 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2022 21:53:56 +0000 (17:53 -0400)
commit7d96e8a97d454c8a770bafa5dbce944609e6a4f1
tree67bcaf8000fa76315fc8402ddad734916da910ca
parent4ba91909922a500172762887bded3f931aac366e
sandbox: Correct loss of early output in SPL

At present fputc() is used before the console is available, then write()
is used. These are not compatible. Since fputc() buffers internally it is
better to use the write(), so that a partial line is immediately
displayed.

This has a slight effect on performance, but we are already using write()
for the vast majority of the output with no obvious impacts.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c