summaryrefslogtreecommitdiff
path: root/src/backlight
diff options
context:
space:
mode:
Diffstat (limited to 'src/backlight')
-rw-r--r--src/backlight/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index 218dc0d8cd..1271a66983 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -318,7 +318,7 @@ int main(int argc, char *argv[]) {
device = udev_device_new_from_subsystem_sysname(udev, ss, sysname);
if (!device) {
if (errno != 0)
- log_error("Failed to get backlight or LED device '%s:%s': %m", ss, sysname);
+ log_error_errno(errno, "Failed to get backlight or LED device '%s:%s': %m", ss, sysname);
else
log_oom();