cpupower: cpupower info -b should return 0 on success, not the perf bias value

Signed-off-by: Thomas Renninger <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
Thomas Renninger 2014-05-13 12:41:44 +02:00 • committed by Rafael J. Wysocki
commit 3fc5a0e51a

View file

@ -125,11 +125,12 @@ int cmd_info(int argc, char **argv)
if (params.perf_bias) {
ret = msr_intel_get_perf_bias(cpu);
if (ret < 0) {
printf(_("Could not read perf-bias value\n"));
break;
fprintf(stderr,
_("Could not read perf-bias value[%d]\n"), ret);
exit(EXIT_FAILURE);
} else
printf(_("perf-bias: %d\n"), ret);
}
}
return ret;
return 0;
}