author | Peter Wu <peter@lekensteyn.nl> | |
Tue, 31 Mar 2015 21:17:32 +0000 (23:17 +0200) | ||
committer | Peter Wu <peter@lekensteyn.nl> | |
Tue, 31 Mar 2015 21:17:32 +0000 (23:17 +0200) | ||
commit | 125f3bece6725fba00e5961882692bd671e38bcb | |
tree | 72711658456a0ea5389867b10b7bc3929d04cb8c | tree | snapshot |
parent | af5eb0ca07aac94bf4ebf5429e9d5c2c1fb7d4e9 | commit | diff |
battery: do not report sysfs ENODEV failure
Linux reports ENODEV if the reported battery values are equal to
ACPI_BATTERY_VALUE_UNKNOWN. This can be observed for an unpatched Clevo
B7130 laptop while reading the "Battery Present Charge" attribute.
Since this is a non-fatal, non-recoverable event, do not report such
errors. Also change the error message to report the filename triggering
this error to ease hunting down the error.
Linux reports ENODEV if the reported battery values are equal to
ACPI_BATTERY_VALUE_UNKNOWN. This can be observed for an unpatched Clevo
B7130 laptop while reading the "Battery Present Charge" attribute.
Since this is a non-fatal, non-recoverable event, do not report such
errors. Also change the error message to report the filename triggering
this error to ease hunting down the error.
src/battery.c | diff | blob | history |