Blame SOURCES/0042-Slightly-better-debugging-messages.patch

d1e1c8
From 5e6e0792cedb3b71cbe061ae56e96906cf710579 Mon Sep 17 00:00:00 2001
d1e1c8
From: Peter Jones <pjones@redhat.com>
d1e1c8
Date: Mon, 18 Nov 2019 13:59:14 -0500
d1e1c8
Subject: [PATCH 42/62] Slightly better debugging messages
d1e1c8
d1e1c8
Signed-off-by: Peter Jones <pjones@redhat.com>
d1e1c8
Upstream-commit-id: 173d35fe8f5
d1e1c8
---
d1e1c8
 shim.c | 14 ++++++++++----
d1e1c8
 1 file changed, 10 insertions(+), 4 deletions(-)
d1e1c8
d1e1c8
diff --git a/shim.c b/shim.c
d1e1c8
index d7ee2b6de6f..2f7aba07421 100644
d1e1c8
--- a/shim.c
d1e1c8
+++ b/shim.c
d1e1c8
@@ -2459,6 +2459,8 @@ uninstall_shim_protocols(void)
d1e1c8
 EFI_STATUS
d1e1c8
 shim_init(void)
d1e1c8
 {
d1e1c8
+	EFI_STATUS efi_status;
d1e1c8
+
d1e1c8
 	setup_verbosity();
d1e1c8
 	dprint(L"%a", shim_version);
d1e1c8
 
d1e1c8
@@ -2479,7 +2481,12 @@ shim_init(void)
d1e1c8
 	}
d1e1c8
 
d1e1c8
 	hook_exit(systab);
d1e1c8
-	return install_shim_protocols();
d1e1c8
+
d1e1c8
+	efi_status = install_shim_protocols();
d1e1c8
+	if (EFI_ERROR(efi_status))
d1e1c8
+		perror(L"install_shim_protocols() failed: %r\n", efi_status);
d1e1c8
+
d1e1c8
+	return efi_status;
d1e1c8
 }
d1e1c8
 
d1e1c8
 void
d1e1c8
@@ -2575,13 +2582,12 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
d1e1c8
 	build_cert = shim_cert;
d1e1c8
 #endif /* defined(ENABLE_SHIM_CERT) */
d1e1c8
 	CHAR16 *msgs[] = {
d1e1c8
-		L"import_mok_state() failed\n",
d1e1c8
-		L"shim_int() failed\n",
d1e1c8
+		L"import_mok_state() failed",
d1e1c8
+		L"shim_init() failed",
d1e1c8
 		NULL
d1e1c8
 	};
d1e1c8
 	int msg = 0;
d1e1c8
 
d1e1c8
-
d1e1c8
 	/*
d1e1c8
 	 * Set up the shim lock protocol so that grub and MokManager can
d1e1c8
 	 * call back in and use shim functions
d1e1c8
-- 
d1e1c8
2.26.2
d1e1c8