diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-03-11 21:09:04 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-12 16:41:45 +0100 |
commit | cddc35f75ecff63b2ffd3f8e4c863d475e7b14ca (patch) | |
tree | ca6425ecee90f2eada896466de4e9aea04371b0f /src | |
parent | 13b28d822462e9a0a7130ad40bed08cb380082f0 (diff) |
backlight: Fix copy/paste error printing an unrelated error code
udev_device_get_sysattr_value returns NULL on failure, but doesn't
provide an error code; thus, when printing an error from it, don't print
an unrelated error code from a previous call.
Diffstat (limited to 'src')
-rw-r--r-- | src/backlight/backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 86f10cc0cf..81470b3f9d 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -322,7 +322,7 @@ int main(int argc, char *argv[]) { value = udev_device_get_sysattr_value(device, "brightness"); if (!value) { - log_error("Failed to read system attribute: %s", strerror(-r)); + log_error("Failed to read system attribute"); return EXIT_FAILURE; } |