From 49043bd30d1531b3355bde66c1ed3def9e873048 Mon Sep 17 00:00:00 2001 From: Venkata Naga Sai Krishna Kolapalli Date: Mon, 5 Jan 2015 09:58:57 +0530 Subject: [PATCH] standalone : Removed old/unused defines in xdebug.h file. This patch removes old/unused defines in xdebug.h file. Signed-off-by: Venkata Naga Sai Krishna Kolapalli --- lib/bsp/standalone/src/common/xdebug.h | 43 +++++--------------------- 1 file changed, 7 insertions(+), 36 deletions(-) diff --git a/lib/bsp/standalone/src/common/xdebug.h b/lib/bsp/standalone/src/common/xdebug.h index 0143fdcd..650946bd 100644 --- a/lib/bsp/standalone/src/common/xdebug.h +++ b/lib/bsp/standalone/src/common/xdebug.h @@ -1,7 +1,5 @@ -#ifndef XDEBUG -#define XDEBUG - -#undef DEBUG +#ifndef XDEBUG /* prevent circular inclusions */ +#define XDEBUG /* by using protection macros */ #if defined(DEBUG) && !defined(NDEBUG) @@ -12,49 +10,22 @@ int printf(const char *format, ...); -#define XDBG_DEBUG_ERROR 0x00000001 /* error condition messages */ -#define XDBG_DEBUG_GENERAL 0x00000002 /* general debug messages */ -#define XDBG_DEBUG_ALL 0xFFFFFFFF /* all debugging data */ +#define XDBG_DEBUG_ERROR 0x00000001U /* error condition messages */ +#define XDBG_DEBUG_GENERAL 0x00000002U /* general debug messages */ +#define XDBG_DEBUG_ALL 0xFFFFFFFFU /* all debugging data */ -#define XDBG_DEBUG_FIFO_REG 0x00000100 /* display register reads/writes */ -#define XDBG_DEBUG_FIFO_RX 0x00000101 /* receive debug messages */ -#define XDBG_DEBUG_FIFO_TX 0x00000102 /* transmit debug messages */ -#define XDBG_DEBUG_FIFO_ALL 0x0000010F /* all fifo debug messages */ - -#define XDBG_DEBUG_TEMAC_REG 0x00000400 /* display register reads/writes */ -#define XDBG_DEBUG_TEMAC_RX 0x00000401 /* receive debug messages */ -#define XDBG_DEBUG_TEMAC_TX 0x00000402 /* transmit debug messages */ -#define XDBG_DEBUG_TEMAC_ALL 0x0000040F /* all temac debug messages */ - -#define XDBG_DEBUG_TEMAC_ADPT_RX 0x00000800 /* receive debug messages */ -#define XDBG_DEBUG_TEMAC_ADPT_TX 0x00000801 /* transmit debug messages */ -#define XDBG_DEBUG_TEMAC_ADPT_IOCTL 0x00000802 /* ioctl debug messages */ -#define XDBG_DEBUG_TEMAC_ADPT_MISC 0x00000803 /* debug msg for other routines */ -#define XDBG_DEBUG_TEMAC_ADPT_ALL 0x0000080F /* all temac adapter debug messages */ - -#define xdbg_current_types (XDBG_DEBUG_ERROR) +#define xdbg_current_types (XDBG_DEBUG_GENERAL) #define xdbg_stmnt(x) x -/* In VxWorks, if _WRS_GNU_VAR_MACROS is defined, special syntax is needed for - * macros that accept variable number of arguments - */ -#if defined(XENV_VXWORKS) && defined(_WRS_GNU_VAR_MACROS) -#define xdbg_printf(type, args...) (((type) & xdbg_current_types) ? printf (## args) : 0) -#else /* ANSI Syntax */ #define xdbg_printf(type, ...) (((type) & xdbg_current_types) ? printf (__VA_ARGS__) : 0) -#endif + #else /* defined(DEBUG) && !defined(NDEBUG) */ #define xdbg_stmnt(x) -/* See VxWorks comments above */ -#if defined(XENV_VXWORKS) && defined(_WRS_GNU_VAR_MACROS) -#define xdbg_printf(type, args...) -#else /* ANSI Syntax */ #define xdbg_printf(...) -#endif #endif /* defined(DEBUG) && !defined(NDEBUG) */