From 68de5dbd705ff24b3c43320cd91785da952bceaf Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 20 Jan 2021 17:15:59 +0300 Subject: [PATCH] Bootstrap: Print actual load path closes acidanthera/bugtracker#1446 --- Application/Bootstrap/Bootstrap.c | 6 ++++++ Library/OcConsoleLib/OcConsoleLib.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Application/Bootstrap/Bootstrap.c b/Application/Bootstrap/Bootstrap.c index d68bdba0..6c8c9593 100644 --- a/Application/Bootstrap/Bootstrap.c +++ b/Application/Bootstrap/Bootstrap.c @@ -93,6 +93,12 @@ LoadOpenCore ( // Try absolute path: EFI\\BOOT\\BOOTx64.efi -> EFI\\OC\\OpenCore.efi // if (Buffer == NULL) { + DEBUG (( + DEBUG_INFO, + "BS: Fallback to absolute path - %s\n", + OPEN_CORE_ROOT_PATH L"\\" OPEN_CORE_DRIVER_PATH + )); + Buffer = ReadFile ( FileSystem, OPEN_CORE_ROOT_PATH L"\\" OPEN_CORE_DRIVER_PATH, diff --git a/Library/OcConsoleLib/OcConsoleLib.c b/Library/OcConsoleLib/OcConsoleLib.c index f5eabf48..aa7864f6 100644 --- a/Library/OcConsoleLib/OcConsoleLib.c +++ b/Library/OcConsoleLib/OcConsoleLib.c @@ -298,7 +298,7 @@ OcSetConsoleResolution ( DEBUG ((DEBUG_WARN, "OCC: Failed to force resolution - %r\n", Result)); } } else { - DEBUG ((DEBUG_WARN, "OCC: Missing OcForceResolution protocol - %r\n", Result)); + DEBUG ((DEBUG_INFO, "OCC: Missing OcForceResolution protocol - %r\n", Result)); } }