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 <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2020-10-26 20:10:49 +09:00 committed by Jérôme Duval
parent d56df58f3f
commit 67f1eabc45

View File

@ -172,8 +172,8 @@ hoardSbrk(long size)
// this chunk is large enough to satisfy the request
SERIAL_PRINT(("HEAP-%ld: found free chunk to hold %ld bytes\n",
find_thread(NULL), size));
SERIAL_PRINT(("HEAP-%" B_PRId32 ": "
"found free chunk to hold %ld bytes\n", find_thread(NULL), size));
void *address = (void *)chunk;
@ -214,7 +214,7 @@ hoardSbrk(long size)
& ~(kHeapIncrement - 1);
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));
// the area is large enough already
hoardUnlock(sHeapLock);
@ -223,8 +223,8 @@ hoardSbrk(long size)
// We need to grow the area
SERIAL_PRINT(("HEAP-%ld: need to resize heap area to %ld (%ld requested)\n",
find_thread(NULL), incrementAlignedSize, size));
SERIAL_PRINT(("HEAP-%" B_PRId32 ": need to resize heap area to %ld "
"(%ld requested)\n", find_thread(NULL), incrementAlignedSize, size));
status_t status = resize_area(sHeapArea, incrementAlignedSize);
if (status != B_OK) {