Description: Don't print any messages while checking for fallback.efi These messages are debug information, it's useless for normal users, and will lead to bad user experience. Author: Yu Ning === modified file 'shim.c' --- a/shim.c 2013-09-20 16:23:28 +0000 +++ b/shim.c 2014-03-19 12:12:26 +0000 @@ -909,7 +909,6 @@ rc = uefi_call_wrapper(BS->HandleProtocol, 3, image_handle, &loaded_image_protocol, (void **)&li); if (EFI_ERROR(rc)) { - Print(L"Could not get image for bootx64.efi: %d\n", rc); return 0; } @@ -931,20 +930,17 @@ rc = uefi_call_wrapper(BS->HandleProtocol, 3, li->DeviceHandle, &FileSystemProtocol, (void **)&fio); if (EFI_ERROR(rc)) { - Print(L"Could not get fio for li->DeviceHandle: %d\n", rc); return 0; } rc = uefi_call_wrapper(fio->OpenVolume, 2, fio, &vh); if (EFI_ERROR(rc)) { - Print(L"Could not open fio volume: %d\n", rc); return 0; } rc = uefi_call_wrapper(vh->Open, 5, vh, &fh, L"\\EFI\\BOOT" FALLBACK, EFI_FILE_MODE_READ, 0); if (EFI_ERROR(rc)) { - Print(L"Could not open \"\\EFI\\BOOT%s\": %d\n", FALLBACK, rc); uefi_call_wrapper(vh->Close, 1, vh); return 0; }