]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: log correct error msg
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Oct 2018 16:06:18 +0000 (18:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2018 14:52:22 +0000 (15:52 +0100)
src/login/logind-dbus.c

index 5b9f2ec85abca6045a578ec9ddb384e96ec35d4c..26253eb6195023ab4da3634b8caf5430b0fdca6d 100644 (file)
@@ -2458,7 +2458,7 @@ static int method_can_reboot_to_firmware_setup(
         r = efi_reboot_to_firmware_supported();
         if (r < 0) {
                 if (r != -EOPNOTSUPP)
-                        log_warning_errno(errno, "Failed to determine whether reboot to firmware is supported: %m");
+                        log_warning_errno(r, "Failed to determine whether reboot to firmware is supported: %m");
 
                 return sd_bus_reply_method_return(message, "s", "na");
         }