teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0043-boot-Fix-error-message.patch

ac3a84
From 2fdb15b3053d20282d7f3c20a7a4d2bd96d9a39b Mon Sep 17 00:00:00 2001
ac3a84
From: Jan Janssen <medhefgo@web.de>
ac3a84
Date: Sun, 13 Nov 2022 16:14:17 +0100
ac3a84
Subject: [PATCH] boot: Fix error message
ac3a84
ac3a84
(cherry picked from commit 6ee4aa22140dd8d51b1a18882eb4220629b8dd8f)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 src/boot/efi/boot.c | 2 +-
ac3a84
 1 file changed, 1 insertion(+), 1 deletion(-)
ac3a84
ac3a84
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
ac3a84
index 4150b16ecf..84f4cc11a3 100644
ac3a84
--- a/src/boot/efi/boot.c
ac3a84
+++ b/src/boot/efi/boot.c
ac3a84
@@ -2678,7 +2678,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) {
ac3a84
 
ac3a84
         err = device_path_to_str(loaded_image->FilePath, &loaded_image_path);
ac3a84
         if (err != EFI_SUCCESS)
ac3a84
-                return log_error_status_stall(err, L"Error getting loaded image path: %m");
ac3a84
+                return log_error_status_stall(err, L"Error getting loaded image path: %r", err);
ac3a84
 
ac3a84
         export_variables(loaded_image, loaded_image_path, init_usec);
ac3a84