mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 17:27:11 -04:00
tools/power turbostat: fix output buffering issue
In periodic mode, turbostat writes to stdout, but users were un-able to re-direct stdout, eg. turbostat > outputfile would result in an empty outputfile. Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -423,6 +423,7 @@ int format_counters(struct thread_data *t, struct core_data *c,
|
||||
void flush_stdout()
|
||||
{
|
||||
fputs(output_buffer, stdout);
|
||||
fflush(stdout);
|
||||
outp = output_buffer;
|
||||
}
|
||||
void flush_stderr()
|
||||
|
||||
Reference in New Issue
Block a user