OcDebugLogLib: Warn about halting, 2nd attempt
@@ -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 ();
}
