From 7cc0c62e773a53926438c5ca27c06963e4871981 Mon Sep 17 00:00:00 2001 From: marko Date: Thu, 9 Nov 2006 12:52:45 +0000 Subject: [PATCH] Introduce #define UNIV_LIST_DEBUG for enabling the debug code in UT_LIST_REMOVE_CLEAR(). --- include/univ.i | 1 + include/ut0lst.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/univ.i b/include/univ.i index 8765987d472..1925f5dd5e2 100644 --- a/include/univ.i +++ b/include/univ.i @@ -75,6 +75,7 @@ memory is read outside the allocated blocks. */ #if 0 #define UNIV_DEBUG +#define UNIV_LIST_DEBUG #define UNIV_MEM_DEBUG #define UNIV_IBUF_DEBUG #define UNIV_SYNC_DEBUG diff --git a/include/ut0lst.h b/include/ut0lst.h index d19885d6edc..9735bf315c6 100644 --- a/include/ut0lst.h +++ b/include/ut0lst.h @@ -124,7 +124,7 @@ name, NODE1 and NODE2 are pointers to nodes. */ }\ /* Invalidate the pointers in a list node. */ -#ifdef UNIV_DEBUG +#ifdef UNIV_LIST_DEBUG # define UT_LIST_REMOVE_CLEAR(NAME, N) \ ((N)->NAME.prev = (N)->NAME.next = (void*) -1) #else