summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoravatar <avatar@FreeBSD.org>2011-06-16 07:14:55 +0000
committeravatar <avatar@FreeBSD.org>2011-06-16 07:14:55 +0000
commitb503814d5d2dba33742410540a7fb0ad0041325c (patch)
tree56fff30c8d0dc319eae101328b70318da7d5ecc4 /lib
parentf865e36039601faa33cb62affd45df45d923a9e8 (diff)
downloadFreeBSD-src-b503814d5d2dba33742410540a7fb0ad0041325c.zip
FreeBSD-src-b503814d5d2dba33742410540a7fb0ad0041325c.tar.gz
Unbreaking build on sparc64.
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/zalloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libstand/zalloc.c b/lib/libstand/zalloc.c
index aa8ccd0..2cd71c4 100644
--- a/lib/libstand/zalloc.c
+++ b/lib/libstand/zalloc.c
@@ -154,7 +154,7 @@ zfree(MemPool *mp, void *ptr, iaddr_t bytes)
if ((char *)ptr < (char *)mp->mp_Base ||
(char *)ptr + bytes > (char *)mp->mp_End ||
((iaddr_t)ptr & MEMNODE_SIZE_MASK) != 0)
- panic("zfree(%p,%d): wild pointer", ptr, bytes);
+ panic("zfree(%p,%ju): wild pointer", ptr, bytes);
/*
* free the segment
@@ -178,7 +178,7 @@ zfree(MemPool *mp, void *ptr, iaddr_t bytes)
* range check
*/
if ((char *)ptr + bytes > (char *)mn)
- panic("zfree(%p,%d): corrupt memlist1",ptr, bytes);
+ panic("zfree(%p,%ju): corrupt memlist1",ptr, bytes);
/*
* merge against next area or create independant area
@@ -209,7 +209,7 @@ zfree(MemPool *mp, void *ptr, iaddr_t bytes)
/* NOT REACHED */
}
if ((char *)ptr < (char *)mn + mn->mr_Bytes)
- panic("zfree(%p,%d): corrupt memlist2", ptr, bytes);
+ panic("zfree(%p,%ju): corrupt memlist2", ptr, bytes);
}
/*
* We are beyond the last MemNode, append new MemNode. Merge against
OpenPOWER on IntegriCloud