Author: uwe Date: Sun Jun 19 19:27:57 2011 New Revision: 1349 URL: http://flashrom.org/trac/flashrom/changeset/1349
Log: 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
Modified: trunk/cli_output.c
Modified: trunk/cli_output.c ============================================================================== --- trunk/cli_output.c Sun Jun 19 19:23:55 2011 (r1348) +++ trunk/cli_output.c Sun Jun 19 19:27:57 2011 (r1349) @@ -47,5 +47,6 @@ va_start(ap, fmt); ret = vfprintf(output_type, fmt, ap); va_end(ap); + fflush(output_type); return ret; }