diff options
Diffstat (limited to 'sys/kern/subr_rlist.c')
| -rw-r--r-- | sys/kern/subr_rlist.c | 16 |
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; } |
