diff --git a/Library/OcDebugLogLib/OcLog.c b/Library/OcDebugLogLib/OcLog.c index 6b7d919a..47f3a511 100755 --- a/Library/OcDebugLogLib/OcLog.c +++ b/Library/OcDebugLogLib/OcLog.c @@ -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 (); }