tools/power turbostat: Add checks for failure of fgets() and fscanf()
authorBen Hutchings <ben@decadent.org.uk>
Thu, 21 Mar 2019 03:01:03 +0000 (23:01 -0400)
committerLen Brown <len.brown@intel.com>
Thu, 21 Mar 2019 03:02:27 +0000 (23:02 -0400)
commit8173c336989c1a12290cd023969df2775b2df34d
tree75937b51dee0c58023489cc780351383840cad1c
parent3316f99a9f1b68c578c57e76792bd19da1c7d423
tools/power turbostat: Add checks for failure of fgets() and fscanf()

Most calls to fgets() and fscanf() are followed by error checks.
Add an exit-on-error in the remaining cases.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c