Unbreaking build on sparc64.
Submitted by: Garrett Cooper <yanegomi@gmail.com>
This commit is contained in:
parent
09108f76fa
commit
72d8b2903f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user