From 449fa1c6d16ef8b9c4b65d72548211ae9d2b8e9a Mon Sep 17 00:00:00 2001 From: SergeySlice Date: Sun, 15 Mar 2020 23:14:33 +0300 Subject: [PATCH] fix debug-log by tluck Signed-off-by: SergeySlice --- rEFIt_UEFI/refit/lib.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rEFIt_UEFI/refit/lib.cpp b/rEFIt_UEFI/refit/lib.cpp index 7d1d23e6d..79bf955ab 100644 --- a/rEFIt_UEFI/refit/lib.cpp +++ b/rEFIt_UEFI/refit/lib.cpp @@ -1745,22 +1745,14 @@ BOOLEAN DumpVariable(CHAR16* Name, EFI_GUID* Guid, INTN DevicePathAt) VOID DbgHeader(CONST CHAR8 *str) { CHAR8 strLog[50]; -//#if defined(ADVLOG) INTN len; -// DebugLog (1, "=== [ %a ] ", str); UINTN end = AsciiSPrint(strLog, 50, "=== [ %a ] ", str); len = 50 - end; for (INTN i = 0; i < len; i++) { strLog[i + end] = '='; } - strLog[50] = '\0'; + strLog[49] = '\0'; DebugLog (1, "%a\n", strLog); -// for (i = 0; i < len; i++) DebugLog (1, "="); -// DebugLog (1, "\n"); - -//#else //ADVLOG -// DebugLog (1, "%a:\n", str); -//#endif //ADVLOG } // EOF