projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e52966c
)
tools/power turbostat: fix output buffering issue
author
Len Brown
<len.brown@intel.com>
Fri, 30 Nov 2012 06:01:40 +0000
(
01:01
-0500)
committer
Len Brown
<len.brown@intel.com>
Fri, 30 Nov 2012 06:09:43 +0000
(
01:09
-0500)
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>
tools/power/x86/turbostat/turbostat.c
patch
|
blob
|
history
diff --git
a/tools/power/x86/turbostat/turbostat.c
b/tools/power/x86/turbostat/turbostat.c
index 77e76b11382fed14a18af16e2313a4446d4cf9f4..cb031472bedebb953ebad91639a1d0ba31fe12db 100644
(file)
--- a/
tools/power/x86/turbostat/turbostat.c
+++ b/
tools/power/x86/turbostat/turbostat.c
@@
-423,6
+423,7
@@
done:
void flush_stdout()
{
fputs(output_buffer, stdout);
+ fflush(stdout);
outp = output_buffer;
}
void flush_stderr()