From 276d04d411e91fb9470130d05ca16a8b7b058ec3 Mon Sep 17 00:00:00 2001 From: João Paulo Rechi Vita Date: Tue, 9 Mar 2021 14:07:32 -0800 Subject: fallback: Be silent by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- fallback.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fallback.c') diff --git a/fallback.c b/fallback.c index e436d17a..1efe4a72 100644 --- a/fallback.c +++ b/fallback.c @@ -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(); -- cgit v1.2.3