From: Josh Triplett Date: Wed, 21 Aug 2013 00:20:18 +0000 (-0700) Subject: turbostat: Clean up error handling; disambiguate error messages; use err and errx X-Git-Tag: v3.14-rc1~6^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c95d90a799c9885661d431034b7ca733cc2660;p=pandora-kernel.git 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 Signed-off-by: Len Brown --- Reading git-diff-tree failed