mirror of
https://github.com/linux-msm/rmtfs.git
synced 2026-04-09 15:02:31 +02:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user