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 <konrad.dybcio@oss.qualcomm.com>
This commit is contained in:
Konrad Dybcio
2025-06-30 17:34:56 +02:00
parent 44facf5694
commit 19d1acb728

View File

@@ -4,6 +4,7 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <inttypes.h>
#ifndef ANDROID #ifndef ANDROID
#include <libudev.h> #include <libudev.h>
#else #else
@@ -322,7 +323,7 @@ int64_t rmtfs_mem_alloc(struct rmtfs_mem *rmem, size_t alloc_size)
{ {
if (alloc_size > rmem->size) { if (alloc_size > rmem->size) {
fprintf(stderr, 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); alloc_size, rmem->size);
return -EINVAL; return -EINVAL;
} }