[flashrom] [PATCH] Flush stdout after each message

Michael Karcher flashrom at mkarcher.dialup.fu-berlin.de
Thu Jun 24 00:34:33 CEST 2010


Am Dienstag, den 22.06.2010, 23:43 -0700 schrieb Ed Swierk:
> 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.
Correct. This should be fixed, but...

> Flushing stdout after each message ensures that the message appears
> immediately.
...if you want to flush immediately after each message, you better turn
off buffering of stdout alltogether using setvbuf in the startup code, I
think.

Regards,
  Michael Karcher





More information about the flashrom mailing list