Commit 7c612f9f authored by Ed Swierk's avatar Ed Swierk Committed by Uwe Hermann
Browse files

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: default avatarEd Swierk <eswierk@aristanetworks.com>
Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
parent c07a41c8
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment