rbtree: disable debug mode
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 30 May 2011 02:22:05 +0000 (22:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 30 May 2011 02:22:05 +0000 (22:22 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-rbtree.c

index 37ecfd2b2596598b8f6da09d134a8c1b4d04b245..454591ab02dc2311c59e3e447cdce0c1f1d909fa 100644 (file)
@@ -40,8 +40,6 @@
 #include <urcu-pointer.h>
 #include <urcu-call-rcu.h>
 
-#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)
This page took 0.035478 seconds and 4 git commands to generate.