From 5d2c985d594ecea71dfc0b5d1e6cebf6f4393f35 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 29 May 2011 22:22:05 -0400 Subject: [PATCH] rbtree: disable debug mode Signed-off-by: Mathieu Desnoyers --- urcu-rbtree.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/urcu-rbtree.c b/urcu-rbtree.c index 37ecfd2..454591a 100644 --- a/urcu-rbtree.c +++ b/urcu-rbtree.c @@ -40,8 +40,6 @@ #include #include -#define DEBUG - #ifdef DEBUG #define dbg_printf(args...) printf(args) #else @@ -162,6 +160,7 @@ struct rcu_rbtree_node *dup_decay_node(struct rcu_rbtree *rbtree, * transplantations/rotations required for the operation. */ +#ifdef DEBUG static void show_tree(struct rcu_rbtree *rbtree) { @@ -182,6 +181,12 @@ void show_tree(struct rcu_rbtree *rbtree) } printf("\n"); } +#else /* DEBUG */ +static +void show_tree(struct rcu_rbtree *rbtree) +{ +} +#endif /* DEBUG */ static struct rcu_rbtree_node *make_nil(struct rcu_rbtree *rbtree) -- 2.34.1