summaryrefslogtreecommitdiff
path: root/sys/kern/subr_rlist.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>1999-01-21 00:55:32 +0000
committercvs2svn <cvs2svn@FreeBSD.org>1999-01-21 00:55:32 +0000
commit76b5366091f76c9bc73570149ef5055648fc2c39 (patch)
tree590d020e0f2a5bea6e09d66d951a674443b21d67 /sys/kern/subr_rlist.c
parent4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6 (diff)
Diffstat (limited to 'sys/kern/subr_rlist.c')
-rw-r--r--sys/kern/subr_rlist.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c
index d637ab428f770..33ac632890463 100644
--- a/sys/kern/subr_rlist.c
+++ b/sys/kern/subr_rlist.c
@@ -54,7 +54,7 @@
* functioning of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: subr_rlist.c,v 1.28 1999/01/08 17:31:12 eivind Exp $
+ * $Id: subr_rlist.c,v 1.26 1998/04/15 17:46:25 bde Exp $
*/
#include <sys/param.h>
@@ -137,14 +137,16 @@ rlist_free(rlh, start, end)
while (cur_rlp != NULL) {
if (start < cur_rlp->rl_start)
break;
+#ifdef DIAGNOSTIC
if (prev_rlp) {
- KASSERT(prev_rlp->rl_end + 1 != cur_rlp->rl_start,
- ("rlist_free: missed coalesce opportunity"));
- KASSERT(prev_rlp->rl_end != cur_rlp->rl_start,
- ("rlist_free: entries overlap"));
- KASSERT(prev_rlp->rl_end <= cur_rlp->rl_start,
- ("entries out of order"));
+ if (prev_rlp->rl_end + 1 == cur_rlp->rl_start)
+ panic("rlist_free: missed coalesce opportunity");
+ if (prev_rlp->rl_end == cur_rlp->rl_start)
+ panic("rlist_free: entries overlap");
+ if (prev_rlp->rl_end > cur_rlp->rl_start)
+ panic("entries out of order");
}
+#endif
prev_rlp = cur_rlp;
cur_rlp = cur_rlp->rl_next;
}