aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLen Brown2012-11-30 00:01:40 -0600
committerLen Brown2012-11-30 00:09:43 -0600
commitddac0d6872b15fc5311d44021b8898ec6720bdec (patch)
treeae47e7ded71d155bacaca68b8d082414662b3de5 /tools
parente52966c084f9d9ea12be2ac7df801d610d4a19a5 (diff)
downloadkernel-omap-ddac0d6872b15fc5311d44021b8898ec6720bdec.tar.gz
kernel-omap-ddac0d6872b15fc5311d44021b8898ec6720bdec.tar.xz
kernel-omap-ddac0d6872b15fc5311d44021b8898ec6720bdec.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 77e76b11382f..cb031472bede 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -423,6 +423,7 @@ done:
423void flush_stdout() 423void flush_stdout()
424{ 424{
425 fputs(output_buffer, stdout); 425 fputs(output_buffer, stdout);
426 fflush(stdout);
426 outp = output_buffer; 427 outp = output_buffer;
427} 428}
428void flush_stderr() 429void flush_stderr()