diff options
author | Pali Rohár <pali@kernel.org> | 2022-09-05 12:31:16 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-24 17:47:01 +0300 |
commit | 7df5b353347621cca0eef7420ba045bf852e778a (patch) | |
tree | 02fcb4b3c033578376cbbca8335df2f34d455034 /arch/sandbox/cpu | |
parent | ca0f827dc78aa23d3b898856cbe2727bdec108e2 (diff) | |
download | u-boot-7df5b353347621cca0eef7420ba045bf852e778a.tar.xz |
sandbox: Add function os_flush()
It flushes stdout.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r-- | arch/sandbox/cpu/os.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index f937991139..01845e388d 100644 --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -669,6 +669,11 @@ void os_puts(const char *str) os_putc(*str++); } +void os_flush(void) +{ + fflush(stdout); +} + int os_write_ram_buf(const char *fname) { struct sandbox_state *state = state_get_current(); |