OvmfPkg/PlatformBootManagerLib: Use GetBootModeHob() in HobLib

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Ruiyu Ni 2016-04-20 18:15:17 +08:00
parent 5bcad6cc78
commit 30edcbf5d1

View File

@ -1316,7 +1316,6 @@ Routine Description:
--*/ --*/
{ {
EFI_STATUS Status;
EFI_BOOT_MODE BootMode; EFI_BOOT_MODE BootMode;
DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n")); DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n"));
@ -1335,7 +1334,7 @@ Routine Description:
// //
// Get current Boot Mode // Get current Boot Mode
// //
Status = BdsLibGetBootMode (&BootMode); BootMode = GetBootModeHob ();
DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", BootMode)); DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", BootMode));
// //