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

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