Drop the locally defined ASSERT() macro and include DebugLib instead.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <[email protected]>
---
IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h | 22 +-------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h
b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h
index e324b0539782..aa3b3543cb79 100644
--- a/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h
+++ b/IntelUndiPkg/XGigUndiDxe/ixgbe_osdep.h
@@ -41,6 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
+#include <Library/DebugLib.h>
#include <Library/PrintLib.h>
#define CHAR CHAR8
@@ -219,26 +220,6 @@ IxgbeReverseDword (
typedef BOOLEAN boolean_t;
-#if 0
-#undef ASSERT
-#define ASSERT(x)
-#define DEBUGOUT Aprint
-#define DEBUGOUT1 Aprint
-#define DEBUGOUT2 Aprint
-#define DEBUGOUT3 Aprint
-#define DEBUGOUT6 Aprint
-#define DEBUGOUT7 Aprint
-#else /* 1 */
-#undef ASSERT
-
-/** ASSERT macro left blank
-
- @param[in] x Assert condition
-
- @return None
-**/
-#define ASSERT(x)
-
/** Macro wrapper for shared code DEBUGOUT statement,
blank here
@@ -311,7 +292,6 @@ typedef BOOLEAN boolean_t;
@retval None
**/
#define DEBUGOUT7(s, a, b, c, d, e, f, g)
-#endif /* 0 */
/** Macro wrapper for shared code EWARN macro,
blank here
--
2.17.1
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel