From: Mathieu Desnoyers Date: Mon, 30 May 2011 02:22:05 +0000 (-0400) Subject: rbtree: disable debug mode X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5d2c985d594ecea71dfc0b5d1e6cebf6f4393f35;p=userspace-rcu.git rbtree: disable debug mode Signed-off-by: Mathieu Desnoyers --- 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)