From c57ed5735fd59ac8dc643c04cb4c1cfbb311b316 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 22 Oct 2018 18:06:18 +0200 Subject: logind: log correct error msg --- src/login/logind-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 5b9f2ec85a..26253eb619 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -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"); } -- cgit v1.2.3