From d5d8fa16a9cf048c0eb45ca9fd69ef9088ef52ee Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 10 Apr 2019 14:36:28 +0300 Subject: [PATCH] OcDebugLogLib: Warn about halting, 2nd attempt --- Library/OcDebugLogLib/OcLog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (); }