diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-05-06 17:37:14 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-05-06 17:37:14 +0000 |
commit | 2bc69f1464ef307b1157d6427fc3a32eb449b3bd (patch) | |
tree | f25221c4d8bd815ab1716b7c8949c355d8a42530 /sys | |
parent | 38f40a727c936905a9e791c6d9df12b8d51fdbae (diff) |
put a sanity check behind DIAGNOSTIC and give it a better panic message
Diffstat (limited to 'sys')
-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) |