diff options
author | 1999-05-06 17:37:13 +0000 | |
---|---|---|
committer | 1999-05-06 17:37:13 +0000 | |
commit | 05025c97c01119a1b56120c150ca0ee28c633d88 (patch) | |
tree | c553323e10dc30c16404bdf4a45ddff13b226248 /sys/kern/kern_malloc.c | |
parent | "cp -f" should unlink the destination before copying. Similar to (diff) | |
download | wireguard-openbsd-05025c97c01119a1b56120c150ca0ee28c633d88.tar.xz wireguard-openbsd-05025c97c01119a1b56120c150ca0ee28c633d88.zip |
put a sanity check behind DIAGNOSTIC and give it a better panic message
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 1387333e6f8..24802d4b26e 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.12 1999/02/26 04:54:00 art Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.13 1999/05/06 17:37:13 art Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -430,8 +430,10 @@ kmeminit() ERROR!_kmeminit:_MAXALLOCSAVE_too_small #endif +#ifdef DIAGNOSTIC if (sizeof(struct freelist) > (1 << MINBUCKET)) - panic("minbucket too small/struct freelist too big"); + panic("kmeminit: minbucket too small/struct freelist too big"); +#endif npg = VM_KMEM_SIZE/ NBPG; #if defined(UVM) |