commit | 830d73b4de41a3bfd20bf0bfdfe0189214340ed4 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Mar 27 14:26:14 2022 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Apr 18 17:53:56 2022 -0400 |
tree | 67bcaf8000fa76315fc8402ddad734916da910ca | |
parent | 9859465bfe838bc8264d45e1a1bed847bba74bad [diff] |
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>