OcDebugLogLib: Warn about halting, 2nd attempt

This commit is contained in:
vit9696 2019-04-10 14:36:28 +03:00
parent 1f301c83ee
commit d5d8fa16a9

View File

@ -228,7 +228,6 @@ OcLogAddEntry (
}
if (OcLog->Delay > 0) {
gST->ConOut->OutputString (gST->ConOut, L"Halting on critical error\r\n");
gBS->Stall (OcLog->Delay);
}
@ -268,6 +267,8 @@ OcLogAddEntry (
}
if ((ErrorLevel & OcLog->HaltLevel) != 0) {
gST->ConOut->OutputString (gST->ConOut, L"Halting on critical error\r\n");
gBS->Stall (1000000);
CpuDeadLoop ();
}