diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1999-01-08 17:31:30 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1999-01-08 17:31:30 +0000 |
| commit | 5526d2d920eb17b1507499f35b275b486f7fe8d0 (patch) | |
| tree | c3aa8110c730b536d4b76b776fd65a60d1a70818 /sys/kern/subr_rlist.c | |
| parent | 95ddc5daa5374332a4bc16c64c498099fa823adf (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_rlist.c')
| -rw-r--r-- | sys/kern/subr_rlist.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c index 33ac63289046..c3fdabf51a65 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.26 1998/04/15 17:46:25 bde Exp $ + * $Id: subr_rlist.c,v 1.27 1998/08/05 14:06:04 dg Exp $ */ #include <sys/param.h> @@ -137,16 +137,14 @@ rlist_free(rlh, start, end) while (cur_rlp != NULL) { if (start < cur_rlp->rl_start) break; -#ifdef DIAGNOSTIC if (prev_rlp) { - 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"); + 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")); } -#endif prev_rlp = cur_rlp; cur_rlp = cur_rlp->rl_next; } |
