diff options
author | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-06-19 17:27:57 +0000 |
---|---|---|
committer | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-06-19 17:27:57 +0000 |
commit | 34e18dea1f6324d464cc9123ca36c847e99e0af6 (patch) | |
tree | acc9d77ac3b0fd1dc117c57b1e82d648b56f955e /cli_output.c | |
parent | 631985a4c472a7bfbaaed33d0cc90c6bcf6e2762 (diff) | |
download | flashrom-34e18dea1f6324d464cc9123ca36c847e99e0af6.tar.gz |
Currently messages like "Writing flash chip..." that don't end with a
newline are buffered until the operation is complete, unless the
particular write function generates status output in the meantime.
Flushing stdout after each message ensures that the message appears
immediately.
Signed-off-by: Ed Swierk <eswierk@aristanetworks.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1349 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_output.c')
-rw-r--r-- | cli_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli_output.c b/cli_output.c index b3d4e04..1c85f7a 100644 --- a/cli_output.c +++ b/cli_output.c @@ -47,5 +47,6 @@ int print(int type, const char *fmt, ...) va_start(ap, fmt); ret = vfprintf(output_type, fmt, ap); va_end(ap); + fflush(output_type); return ret; } |