From 7c612f9fb746fbf80009912b6133af3ca07e4bd7 Mon Sep 17 00:00:00 2001 From: Ed Swierk Date: Sun, 19 Jun 2011 17:27:57 +0000 Subject: Flush stdout after each message 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 Acked-by: Uwe Hermann --- cli_output.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cli_output.c') 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; } -- cgit v1.1