From c41efe5a8cd36823ce775a9b58b1242832d6edf2 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 29 Jun 2015 14:41:21 -0400 Subject: Don't print anything or delay when start_image() succeeds. Signed-off-by: Peter Jones --- shim.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index d792b36b..c8dc8926 100644 --- a/shim.c +++ b/shim.c @@ -1698,8 +1698,10 @@ EFI_STATUS init_grub(EFI_HANDLE image_handle) use_fb ? FALLBACK : second_stage); } - Print(L"start_image() returned %r\n", efi_status); - uefi_call_wrapper(BS->Stall, 1, 2000000); + if (efi_status != EFI_SUCCESS) { + Print(L"start_image() returned %r\n", efi_status); + uefi_call_wrapper(BS->Stall, 1, 2000000); + } return efi_status; } -- cgit v1.2.3