Skip to content

Commit 19d1acb

Browse files
committed
sharedmem: Fix build warning on 32-bit arm
Format specifiers won't stop biting. Closes: #25 Signed-off-by: Konrad Dybcio <[email protected]>
1 parent 44facf5 commit 19d1acb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sharedmem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <dirent.h>
55
#include <errno.h>
66
#include <fcntl.h>
7+
#include <inttypes.h>
78
#ifndef ANDROID
89
#include <libudev.h>
910
#else
@@ -322,7 +323,7 @@ int64_t rmtfs_mem_alloc(struct rmtfs_mem *rmem, size_t alloc_size)
322323
{
323324
if (alloc_size > rmem->size) {
324325
fprintf(stderr,
325-
"[RMTFS] rmtfs shared memory not large enough for allocation request 0x%zx vs 0x%lx\n",
326+
"[RMTFS] rmtfs shared memory not large enough for allocation request 0x%zx vs %" PRIu64 "\n",
326327
alloc_size, rmem->size);
327328
return -EINVAL;
328329
}

0 commit comments

Comments
 (0)