From 7eead935693b854b6337dfcb1af4a58ec0d4a075 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Thu, 6 Jun 2019 01:53:53 +0200 Subject: [PATCH] [BOOTLIB] Check DBG with #if, not #ifdef (#1621) --- boot/environ/lib/misc/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/environ/lib/misc/debug.c b/boot/environ/lib/misc/debug.c index b38a29f1926..799d90be8dd 100644 --- a/boot/environ/lib/misc/debug.c +++ b/boot/environ/lib/misc/debug.c @@ -86,7 +86,7 @@ BlStatusPrint ( /* Check if the boot debugger is enabled */ if (BlBdDebuggerEnabled() -#if (defined(DBG)) +#if DBG || TRUE #endif ) @@ -94,7 +94,7 @@ BlStatusPrint ( /* Print the string out into a buffer */ if (vswprintf(BlScratchBuffer, Format, va) > 0) { -#if defined(DBG) +#if DBG EfiPrintf(BlScratchBuffer); EfiPrintf(L"\r\n"); #endif -- 2.17.1