aboutsummaryrefslogtreecommitdiffstats
path: root/module/avl/avl.c
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-07-25 20:07:44 -0700
committerGitHub <[email protected]>2020-07-25 20:07:44 -0700
commit6d8da84106de1fc8480e1758cc88e81393b4c0c2 (patch)
tree04d232d8f21a8c96978b7d1c329f7d1cc355248c /module/avl/avl.c
parentf5b189f9379b092600293ac3e7a670bf2087d88c (diff)
Make use of ZFS_DEBUG consistent within kmod sources
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10623
Diffstat (limited to 'module/avl/avl.c')
-rw-r--r--module/avl/avl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/avl/avl.c b/module/avl/avl.c
index cfe153a4c..9cc836239 100644
--- a/module/avl/avl.c
+++ b/module/avl/avl.c
@@ -269,7 +269,7 @@ avl_find(avl_tree_t *tree, const void *value, avl_index_t *where)
diff = tree->avl_compar(value, AVL_NODE2DATA(node, off));
ASSERT(-1 <= diff && diff <= 1);
if (diff == 0) {
-#ifdef DEBUG
+#ifdef ZFS_DEBUG
if (where != NULL)
*where = 0;
#endif
@@ -578,7 +578,7 @@ avl_insert_here(
{
avl_node_t *node;
int child = direction; /* rely on AVL_BEFORE == 0, AVL_AFTER == 1 */
-#ifdef DEBUG
+#ifdef ZFS_DEBUG
int diff;
#endif
@@ -593,7 +593,7 @@ avl_insert_here(
*/
node = AVL_DATA2NODE(here, tree->avl_offset);
-#ifdef DEBUG
+#ifdef ZFS_DEBUG
diff = tree->avl_compar(new_data, here);
ASSERT(-1 <= diff && diff <= 1);
ASSERT(diff != 0);
@@ -604,7 +604,7 @@ avl_insert_here(
node = node->avl_child[child];
child = 1 - child;
while (node->avl_child[child] != NULL) {
-#ifdef DEBUG
+#ifdef ZFS_DEBUG
diff = tree->avl_compar(new_data,
AVL_NODE2DATA(node, tree->avl_offset));
ASSERT(-1 <= diff && diff <= 1);
@@ -613,7 +613,7 @@ avl_insert_here(
#endif
node = node->avl_child[child];
}
-#ifdef DEBUG
+#ifdef ZFS_DEBUG
diff = tree->avl_compar(new_data,
AVL_NODE2DATA(node, tree->avl_offset));
ASSERT(-1 <= diff && diff <= 1);