diff options
| -rw-r--r-- | tools/power/cpupower/utils/cpupower-info.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/power/cpupower/utils/cpupower-info.c b/tools/power/cpupower/utils/cpupower-info.c index 3f68632c28c7..0ac25772bf63 100644 --- a/tools/power/cpupower/utils/cpupower-info.c +++ b/tools/power/cpupower/utils/cpupower-info.c | |||
| @@ -125,11 +125,12 @@ int cmd_info(int argc, char **argv) | |||
| 125 | if (params.perf_bias) { | 125 | if (params.perf_bias) { |
| 126 | ret = msr_intel_get_perf_bias(cpu); | 126 | ret = msr_intel_get_perf_bias(cpu); |
| 127 | if (ret < 0) { | 127 | if (ret < 0) { |
| 128 | printf(_("Could not read perf-bias value\n")); | 128 | fprintf(stderr, |
| 129 | break; | 129 | _("Could not read perf-bias value[%d]\n"), ret); |
| 130 | exit(EXIT_FAILURE); | ||
| 130 | } else | 131 | } else |
| 131 | printf(_("perf-bias: %d\n"), ret); | 132 | printf(_("perf-bias: %d\n"), ret); |
| 132 | } | 133 | } |
| 133 | } | 134 | } |
| 134 | return ret; | 135 | return 0; |
| 135 | } | 136 | } |
