summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-14 17:08:03 -0800
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-14 18:29:42 -0800
commit562324c603fd104abe781a6c61b1a1ddbd7b3e4b (patch)
tree6971c691246118f7861846dfd5877beeb22b5944
parenta1984bd5ad59b471bca59be7b985dd7a05fe8169 (diff)
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 <ard.biesheuvel@linaro.org>
-rw-r--r--IntelUndiPkg/XGigUndiDxe/Xgbe.h21
1 files changed, 0 insertions, 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