From 562324c603fd104abe781a6c61b1a1ddbd7b3e4b Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Wed, 14 Nov 2018 17:08:03 -0800 Subject: IntelUndiPkg/XGigUndiDxe: drop separate debug macros for DBG_LVL The DBG_LVL bit tests are already done at build time, so there is no point in having separate definitions, since they only result in unused variable warnings. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/Xgbe.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/IntelUndiPkg/XGigUndiDxe/Xgbe.h b/IntelUndiPkg/XGigUndiDxe/Xgbe.h index 2a904de5b..ecfcc1032 100644 --- a/IntelUndiPkg/XGigUndiDxe/Xgbe.h +++ b/IntelUndiPkg/XGigUndiDxe/Xgbe.h @@ -1112,7 +1112,6 @@ WaitForEnter ( ); // This is the Macro Section -#if DBG_LVL /** When specific debug level is currently set this macro prints debug message. @@ -1137,26 +1136,6 @@ WaitForEnter ( if ((DBG_LVL & Lvl) != 0) { \ WaitForEnter (); \ } -#else /* NOT DBG_LVL */ - -// Comment out the debug stuff -/** When DBG_LVL is not defined leave occurences of DEBUGPRINT blank - - @param[in] Lvl Debug level - @param[in] Msg Debug message - - @return None -**/ -#define DEBUGPRINT(Lvl, Msg) - -/** When DBG_LVL is not defined leave occurences of DEBUGWAIT blank - - @param[in] Lvl Debug level - - @return None -**/ -#define DEBUGWAIT(Lvl) -#endif /* DBG_LVL */ /** Delays code execution for specified time in milliseconds -- cgit v1.2.3