From 67f1eabc452154447888595f8afacd59cc752c71 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Mon, 26 Oct 2020 20:10:49 +0900 Subject: [PATCH] libroot/posix/malloc_hoard2: Fix -Wformat= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I025aece61efabe2e7b32fec2fc9aec8969bd6664 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3358 Reviewed-by: Jérôme Duval --- .../libroot/posix/malloc_hoard2/arch-specific.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/system/libroot/posix/malloc_hoard2/arch-specific.cpp b/src/system/libroot/posix/malloc_hoard2/arch-specific.cpp index 8d48666dd8..20f4cdf913 100644 --- a/src/system/libroot/posix/malloc_hoard2/arch-specific.cpp +++ b/src/system/libroot/posix/malloc_hoard2/arch-specific.cpp @@ -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) {