Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu...@intel.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index b8a3f1d..6ff13e6 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1317,7 +1317,6 @@ Routine Description: --*/ { - EFI_STATUS Status; EFI_BOOT_MODE BootMode; DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n")); @@ -1336,7 +1335,7 @@ Routine Description: // // Get current Boot Mode // - Status = BdsLibGetBootMode (&BootMode); + BootMode = GetBootModeHob (); DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", BootMode)); // -- 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel