]> git.dujemihanovic.xyz Git - u-boot.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)
commit830d73b4de41a3bfd20bf0bfdfe0189214340ed4
tree67bcaf8000fa76315fc8402ddad734916da910ca
parent9859465bfe838bc8264d45e1a1bed847bba74bad
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