chiark / gitweb /
backlight: Fix copy/paste error printing an unrelated error code
[elogind.git] / src / backlight / backlight.c
index 86f10cc0cf290f15dc5978a74e8a3b9d9f04add3..81470b3f9d527cc7bf8c35e054c0b5b8491f2773 100644 (file)
@@ -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;
                 }