diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c index a7ff023b6e..cc90282741 100644 --- a/fs/mmap/fs_mmap.c +++ b/fs/mmap/fs_mmap.c @@ -152,7 +152,7 @@ FAR void *mmap(FAR void *start, size_t length, int prot, int flags, if (length == 0) { - ferr("ERROR: Invalid length, length=%d\n", length); + ferr("ERROR: Invalid length, length=%zu\n", length); errcode = EINVAL; goto errout; }