1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

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 <eswierk@aristanetworks.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Ed Swierk 2011-06-19 17:27:57 +00:00 committed by Uwe Hermann
parent c07a41c867
commit 7c612f9fb7

View File

@ -47,5 +47,6 @@ int print(int type, const char *fmt, ...)
va_start(ap, fmt); va_start(ap, fmt);
ret = vfprintf(output_type, fmt, ap); ret = vfprintf(output_type, fmt, ap);
va_end(ap); va_end(ap);
fflush(output_type);
return ret; return ret;
} }