summaryrefslogtreecommitdiffstats
path: root/src/segtree.c
diff options
context:
space:
mode:
authorroot <root@debian.localnet>2012-12-08 18:08:44 +0100
committerPatrick McHardy <kaber@trash.net>2012-12-08 18:11:20 +0100
commit47ff571046570e8f70f545de162e09c2ff147f80 (patch)
tree177823218da0ae77ce0514d60ee77e845c74eade /src/segtree.c
parent84792b4813a4ebf59e546acfac80144775e0d47e (diff)
debug: include verbose message in all BUG statements
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/segtree.c')
-rw-r--r--src/segtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/segtree.c b/src/segtree.c
index fb404a43..216e4588 100644
--- a/src/segtree.c
+++ b/src/segtree.c
@@ -246,7 +246,7 @@ static void range_low(mpz_t rop, struct expr *expr)
case EXPR_MAPPING:
return range_low(rop, expr->left);
default:
- BUG();
+ BUG("invalid range expression type %s\n", expr->ops->name);
}
}
@@ -268,7 +268,7 @@ static void range_high(mpz_t rop, const struct expr *expr)
case EXPR_MAPPING:
return range_high(rop, expr->left);
default:
- BUG();
+ BUG("invalid range expression type %s\n", expr->ops->name);
}
}