mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleBootCompatLib: Improve debug logging
This commit is contained in:
parent
eab7f470a4
commit
707007e317
@ -765,9 +765,21 @@ SetGetVariableHookHandler (
|
||||
(VOID **) &FwRuntime
|
||||
);
|
||||
|
||||
if (!EFI_ERROR (Status) && FwRuntime->Revision == OC_FIRMWARE_RUNTIME_REVISION) {
|
||||
Status = FwRuntime->OnGetVariable (OcGetVariable, &BootCompat->ServicePtrs.GetVariable);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (FwRuntime->Revision == OC_FIRMWARE_RUNTIME_REVISION) {
|
||||
DEBUG ((DEBUG_INFO, "OCABC: Got rendezvous with OpenRuntime r%u\n", OC_FIRMWARE_RUNTIME_REVISION));
|
||||
Status = FwRuntime->OnGetVariable (OcGetVariable, &BootCompat->ServicePtrs.GetVariable);
|
||||
} else {
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"OCABC: Incompatible OpenRuntime r%u, require r%u\n",
|
||||
(UINT32) FwRuntime->Revision,
|
||||
(UINT32) OC_FIRMWARE_RUNTIME_REVISION
|
||||
));
|
||||
CpuDeadLoop ();
|
||||
}
|
||||
} else {
|
||||
DEBUG ((DEBUG_INFO, "OCABC: Awaiting rendezvous with OpenRuntime r%u\n", OC_FIRMWARE_RUNTIME_REVISION));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
@ -645,6 +645,8 @@ OcMiscBoot (
|
||||
Context->HideAuxiliary = Config->Misc.Boot.HideAuxiliary;
|
||||
Context->PickerAudioAssist = Config->Misc.Boot.PickerAudioAssist;
|
||||
|
||||
DEBUG ((DEBUG_INFO, "OC: Ready for takeoff in %u us\n", (UINT32) Context->TakeoffDelay));
|
||||
|
||||
OcLoadPickerHotKeys (Context);
|
||||
|
||||
Context->ShowNvramReset = Config->Misc.Security.AllowNvramReset;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user