From 2bc69f1464ef307b1157d6427fc3a32eb449b3bd Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 6 May 1999 17:37:14 +0000 Subject: put a sanity check behind DIAGNOSTIC and give it a better panic message --- sys/kern/kern_malloc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') 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) -- cgit v1.2.3