alistair23-linux/tools/power
Josh Triplett b2c95d90a7 turbostat: Clean up error handling; disambiguate error messages; use err and errx
Most of turbostat's error handling consists of printing an error (often
including an errno) and exiting.  Since perror doesn't support a format
string, those error messages are often ambiguous, such as just showing a
file path, which doesn't uniquely identify which call failed.

turbostat already uses _GNU_SOURCE, so switch to the err and errx
functions from err.h, which take a format string.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Len Brown <len.brown@intel.com>
2014-01-18 22:34:10 -05:00
..
acpi ACPI tools / acpidump: must be run as root - install it into /usr/sbin 2013-02-05 23:35:32 +01:00
cpupower cpupower: Fix segfault due to incorrect getopt_long arugments 2013-12-17 11:29:30 -08:00
x86 turbostat: Clean up error handling; disambiguate error messages; use err and errx 2014-01-18 22:34:10 -05:00