summaryrefslogtreecommitdiffstats
path: root/cli_output.c
diff options
context:
space:
mode:
authorEd Swierk <eswierk@aristanetworks.com>2011-06-19 17:27:57 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-06-19 17:27:57 +0000
commit827663c9fd5aa9e5f4eed539b275cfae8811df1b (patch)
treeacc9d77ac3b0fd1dc117c57b1e82d648b56f955e /cli_output.c
parent706fa4f033da0e20400a34177a86ee0c4c881cfe (diff)
downloadflashrom-827663c9fd5aa9e5f4eed539b275cfae8811df1b.zip
flashrom-827663c9fd5aa9e5f4eed539b275cfae8811df1b.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. Corresponding to flashrom svn r1349. Signed-off-by: Ed Swierk <eswierk@aristanetworks.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'cli_output.c')
-rw-r--r--cli_output.c1
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;
}
OpenPOWER on IntegriCloud