mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-06 00:23:05 +00:00
Slightly better debugging messages
Signed-off-by: Peter Jones <pjones@redhat.com> Upstream-commit-id: 173d35fe8f5
This commit is contained in:
parent
58df8d745c
commit
5e6e0792ce
14
shim.c
14
shim.c
@ -2459,6 +2459,8 @@ uninstall_shim_protocols(void)
|
||||
EFI_STATUS
|
||||
shim_init(void)
|
||||
{
|
||||
EFI_STATUS efi_status;
|
||||
|
||||
setup_verbosity();
|
||||
dprint(L"%a", shim_version);
|
||||
|
||||
@ -2479,7 +2481,12 @@ shim_init(void)
|
||||
}
|
||||
|
||||
hook_exit(systab);
|
||||
return install_shim_protocols();
|
||||
|
||||
efi_status = install_shim_protocols();
|
||||
if (EFI_ERROR(efi_status))
|
||||
perror(L"install_shim_protocols() failed: %r\n", efi_status);
|
||||
|
||||
return efi_status;
|
||||
}
|
||||
|
||||
void
|
||||
@ -2575,13 +2582,12 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
|
||||
build_cert = shim_cert;
|
||||
#endif /* defined(ENABLE_SHIM_CERT) */
|
||||
CHAR16 *msgs[] = {
|
||||
L"import_mok_state() failed\n",
|
||||
L"shim_int() failed\n",
|
||||
L"import_mok_state() failed",
|
||||
L"shim_init() failed",
|
||||
NULL
|
||||
};
|
||||
int msg = 0;
|
||||
|
||||
|
||||
/*
|
||||
* Set up the shim lock protocol so that grub and MokManager can
|
||||
* call back in and use shim functions
|
||||
|
Loading…
Reference in New Issue
Block a user