diff options
author | Prarit Bhargava | 2018-08-13 14:45:01 +0200 |
---|---|---|
committer | Len Brown | 2019-03-21 03:55:44 +0100 |
commit | 0a42d235e50d677775056324d0762dd102a9ebb0 (patch) | |
tree | 92f495312d608fa2e5ae00115b06abb1f51e7875 /tools/power/x86 | |
parent | tools/power turbostat: Add Die column (diff) | |
download | kernel-qcow2-linux-0a42d235e50d677775056324d0762dd102a9ebb0.tar.gz kernel-qcow2-linux-0a42d235e50d677775056324d0762dd102a9ebb0.tar.xz kernel-qcow2-linux-0a42d235e50d677775056324d0762dd102a9ebb0.zip |
tools/power turbostat: Do not display an error on systems without a cpufreq driver
Running without a cpufreq driver is a valid case so warnings output in
this case should not be to stderr.
Use outf instead of stderr for these warnings.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power/x86')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 7d6c14ecf35a..0716abdb1bd9 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -3465,7 +3465,7 @@ dump_sysfs_pstate_config(void) base_cpu); input = fopen(path, "r"); if (input == NULL) { - fprintf(stderr, "NSFOD %s\n", path); + fprintf(outf, "NSFOD %s\n", path); return; } fgets(driver_buf, sizeof(driver_buf), input); @@ -3475,7 +3475,7 @@ dump_sysfs_pstate_config(void) base_cpu); input = fopen(path, "r"); if (input == NULL) { - fprintf(stderr, "NSFOD %s\n", path); + fprintf(outf, "NSFOD %s\n", path); return; } fgets(governor_buf, sizeof(governor_buf), input); |