Date: Thu, 16 Jun 2011 07:14:55 +0000 (UTC) From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r223139 - head/lib/libstand Message-ID: <201106160714.p5G7Etfx017112@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avatar Date: Thu Jun 16 07:14:55 2011 New Revision: 223139 URL: http://svn.freebsd.org/changeset/base/223139 Log: Unbreaking build on sparc64. Submitted by: Garrett Cooper <yanegomi@gmail.com> Modified: head/lib/libstand/zalloc.c Modified: head/lib/libstand/zalloc.c ============================================================================== --- head/lib/libstand/zalloc.c Thu Jun 16 05:26:03 2011 (r223138) +++ head/lib/libstand/zalloc.c Thu Jun 16 07:14:55 2011 (r223139) @@ -154,7 +154,7 @@ zfree(MemPool *mp, void *ptr, iaddr_t by 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 by * 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 by /* 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106160714.p5G7Etfx017112>