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

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