summaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
authorDaniel Drake <drake@endlessm.com>2016-09-26 11:22:47 -0500
committerGitHub <noreply@github.com>2016-09-26 11:22:47 -0500
commita82f9bca38a0c9d10d09932622aee36e0283ea94 (patch)
tree0160063ab5a7b84dc67fa9bfcfb246726e2df814 /fallback.c
parent9c0a41378ad3cfd7115530d0e8f4e94019ae24a9 (diff)
parentd1d1cf30b989d07fed3a9175ffa296f7df301967 (diff)
downloadefi-boot-shim-a82f9bca38a0c9d10d09932622aee36e0283ea94.tar.gz
efi-boot-shim-a82f9bca38a0c9d10d09932622aee36e0283ea94.zip
Merge pull request #6 from endlessm/T13374-noise
fallback: Reduce noise when BootOrder list is empty
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fallback.c b/fallback.c
index da7f2099..b61d3bcc 100644
--- a/fallback.c
+++ b/fallback.c
@@ -176,9 +176,11 @@ add_boot_option(EFI_DEVICE_PATH *hddp, EFI_DEVICE_PATH *fulldp,
cursor += DevicePathSize(hddp);
StrCpy((CHAR16 *)cursor, arguments);
+#ifdef DEBUG_FALLBACK
Print(L"Creating boot entry \"%s\" with label \"%s\" "
L"for file \"%s\"\n",
varname, label, filename);
+#endif
if (!first_new_option) {
first_new_option = DuplicateDevicePath(fulldp);
@@ -839,7 +841,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
return rc;
}
+#ifdef DEBUG_FALLBACK
Print(L"System BootOrder not found. Initializing defaults.\n");
+#endif
set_boot_order();
@@ -851,7 +855,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
try_start_first_option(image);
+#ifdef DEBUG_FALLBACK
Print(L"Reset System\n");
+#endif
uefi_call_wrapper(RT->ResetSystem, 4, EfiResetCold,
EFI_SUCCESS, 0, NULL);