libroot/posix/malloc_hoard2: Fix -Wformat=

Change-Id: I025aece61efabe2e7b32fec2fc9aec8969bd6664
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3358
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2020-10-29 11:15:15 +00:00
committed by Jérôme Duval
parent d56df58f3f
commit 67f1eabc45
@@ -172,8 +172,8 @@ hoardSbrk(long size)
// this chunk is large enough to satisfy the request // this chunk is large enough to satisfy the request
SERIAL_PRINT(("HEAP-%ld: found free chunk to hold %ld bytes\n", SERIAL_PRINT(("HEAP-%" B_PRId32 ": "
find_thread(NULL), size)); "found free chunk to hold %ld bytes\n", find_thread(NULL), size));
void *address = (void *)chunk; void *address = (void *)chunk;
@@ -214,7 +214,7 @@ hoardSbrk(long size)
& ~(kHeapIncrement - 1); & ~(kHeapIncrement - 1);
if (incrementAlignedSize <= sHeapAreaSize) { if (incrementAlignedSize <= sHeapAreaSize) {
SERIAL_PRINT(("HEAP-%ld: heap area large enough for %ld\n", SERIAL_PRINT(("HEAP-%" B_PRId32 ": heap area large enough for %ld\n",
find_thread(NULL), size)); find_thread(NULL), size));
// the area is large enough already // the area is large enough already
hoardUnlock(sHeapLock); hoardUnlock(sHeapLock);
@@ -223,8 +223,8 @@ hoardSbrk(long size)
// We need to grow the area // We need to grow the area
SERIAL_PRINT(("HEAP-%ld: need to resize heap area to %ld (%ld requested)\n", SERIAL_PRINT(("HEAP-%" B_PRId32 ": need to resize heap area to %ld "
find_thread(NULL), incrementAlignedSize, size)); "(%ld requested)\n", find_thread(NULL), incrementAlignedSize, size));
status_t status = resize_area(sHeapArea, incrementAlignedSize); status_t status = resize_area(sHeapArea, incrementAlignedSize);
if (status != B_OK) { if (status != B_OK) {