mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
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>
This commit is contained in:
parent
6de68fe15a
commit
0a42d235e5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue