diff options
author | Josh Triplett | 2013-08-20 17:20:18 -0700 |
---|---|---|
committer | Len Brown | 2014-01-18 22:34:10 -0500 |
commit | b2c95d90a799c9885661d431034b7ca733cc2660 (patch) | |
tree | 4ff18cce19b0175de18b0dc21649fe994127e927 /lib/xz/xz_dec_syms.c | |
parent | 57a42a34d126f2fe5d1f2f120c5f7a31ec65cd31 (diff) |
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>
Diffstat (limited to 'lib/xz/xz_dec_syms.c')
0 files changed, 0 insertions, 0 deletions