summaryrefslogtreecommitdiff
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-11-02 05:15:35 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-11-02 05:15:35 +0000
commit7db62bffcc9cc0efbe618621b56dc8959cfb6015 (patch)
treec5655a65772eab5e976723212c4448c1a013c2e9 /sys/kern/kern_malloc.c
parent81a51f5b0614aaddde5f6d6c2706d3aa50a43fe8 (diff)
tweak free panic messages too
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index b329f0a2566..97b4d3c0d90 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.116 2014/11/02 05:12:14 tedu Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.117 2014/11/02 05:15:34 tedu Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -387,9 +387,9 @@ free(void *addr, int type, size_t freedsize)
s = splvm();
#ifdef DIAGNOSTIC
if (freedsize != 0 && freedsize > size)
- panic("freed too much: %zu > %ld (%p)", freedsize, size, addr);
+ panic("free: size too large %zu > %ld (%p)", freedsize, size, addr);
if (freedsize != 0 && size > MINALLOCSIZE && freedsize < size / 2)
- panic("freed too little: %zu < %ld / 2 (%p)",
+ panic("free: size too small %zu < %ld / 2 (%p)",
freedsize, size, addr);
/*
* Check for returns of data that do not point to the