From 19d1acb728c673a5e014ef29d504800c651600db Mon Sep 17 00:00:00 2001 From: Konrad Dybcio Date: Mon, 30 Jun 2025 17:34:56 +0200 Subject: [PATCH] sharedmem: Fix build warning on 32-bit arm Format specifiers won't stop biting. Closes: https://github.com/linux-msm/rmtfs/issues/25 Signed-off-by: Konrad Dybcio --- sharedmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sharedmem.c b/sharedmem.c index 77fbcd4..c37a58d 100644 --- a/sharedmem.c +++ b/sharedmem.c @@ -4,6 +4,7 @@ #include #include #include +#include #ifndef ANDROID #include #else @@ -322,7 +323,7 @@ int64_t rmtfs_mem_alloc(struct rmtfs_mem *rmem, size_t alloc_size) { if (alloc_size > rmem->size) { fprintf(stderr, - "[RMTFS] rmtfs shared memory not large enough for allocation request 0x%zx vs 0x%lx\n", + "[RMTFS] rmtfs shared memory not large enough for allocation request 0x%zx vs %" PRIu64 "\n", alloc_size, rmem->size); return -EINVAL; }