diff options
| author | João Paulo Rechi Vita <jprvita@endlessos.org> | 2021-03-09 14:07:32 -0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-10 15:59:07 -0500 |
| commit | 276d04d411e91fb9470130d05ca16a8b7b058ec3 (patch) | |
| tree | 0a7a402df01290f909cdb9a98f62d4e0174aad40 /fallback.c | |
| parent | 8e17869ac1d33ac0d816ba3b6b522bc863c9dbac (diff) | |
| download | efi-boot-shim-276d04d411e91fb9470130d05ca16a8b7b058ec3.tar.gz efi-boot-shim-276d04d411e91fb9470130d05ca16a8b7b058ec3.zip | |
fallback: Be silent by default
Only print what fallback is doing when running in verbose mode. This way
we can have a silent boot even when fallback is doing its thing.
This commit is based on a previous patch by Carlo Caione.
Signed-off-by: João Paulo Rechi Vita <jprvita@endlessos.org>
Diffstat (limited to 'fallback.c')
| -rw-r--r-- | fallback.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -238,9 +238,9 @@ add_boot_option(EFI_DEVICE_PATH *hddp, EFI_DEVICE_PATH *fulldp, cursor += DevicePathSize(hddp); StrCpy((CHAR16 *)cursor, arguments); - console_print(L"Creating boot entry \"%s\" with label \"%s\" " - L"for file \"%s\"\n", - varname, label, filename); + VerbosePrint(L"Creating boot entry \"%s\" with label \"%s\" " + L"for file \"%s\"\n", + varname, label, filename); if (!first_new_option) { first_new_option = DuplicateDevicePath(fulldp); @@ -501,7 +501,7 @@ update_boot_order(void) UINTN j; for (j = 0 ; j < size / sizeof (CHAR16); j++) VerbosePrintUnprefixed(L"%04x ", newbootorder[j]); - console_print(L"\n"); + VerbosePrintUnprefixed(L"\n"); efi_status = gRT->GetVariable(L"BootOrder", &GV_GUID, NULL, &len, NULL); if (efi_status == EFI_BUFFER_TOO_SMALL) LibDeleteVariable(L"BootOrder", &GV_GUID); @@ -1083,7 +1083,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab) return efi_status; } - console_print(L"System BootOrder not found. Initializing defaults.\n"); + VerbosePrint(L"System BootOrder not found. Initializing defaults.\n"); set_boot_order(); |
