[flashrom] [commit] r1349 - trunk

repository service svn at flashrom.org
Sun Jun 19 19:27:58 CEST 2011

Author: uwe
Date: Sun Jun 19 19:27:57 2011
New Revision: 1349
URL: http://flashrom.org/trac/flashrom/changeset/1349

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

Signed-off-by: Ed Swierk <eswierk at aristanetworks.com>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>


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);
+	fflush(output_type);
 	return ret;

More information about the flashrom mailing list