summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2012-03-30 23:03:43 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2012-03-30 23:03:43 +0000
commitc48a2815c304c6a75ed7ada62d3febd28dff0c08 (patch)
tree115406522bae4a7e332ffe9b075b47bb8417f442 /sys
parent76b0e33e31b5e7d6feb6cb782decc393e7f3e8a3 (diff)
Expand the panic to show the malloc type and size. Okay deraadt@.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_malloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 6c5f9e8bfdd..bd5ce1f38b6 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.91 2012/03/09 13:01:28 ariane Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.92 2012/03/30 23:03:42 pirofti Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -213,7 +213,8 @@ malloc(unsigned long size, int type, int flags)
#endif
return (NULL);
} else
- panic("malloc: allocation too large");
+ panic("malloc: allocation too large, "
+ "type = %d, size = %lu\n", type, size);
}
indx = BUCKETINDX(size);