diff --git a/fs/nxffs/nxffs_initialize.c b/fs/nxffs/nxffs_initialize.c index 5695a72769..d4db87358a 100644 --- a/fs/nxffs/nxffs_initialize.c +++ b/fs/nxffs/nxffs_initialize.c @@ -42,6 +42,7 @@ #include +#include #include #include #include @@ -400,7 +401,7 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume) /* Save the offset to the first inode */ volume->inoffset = entry.hoffset; - finfo("First inode at offset %d\n", volume->inoffset); + finfo("First inode at offset %jd\n", (intmax_t)volume->inoffset); /* Discard this entry and set the next offset. */ @@ -420,7 +421,7 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume) nxffs_freeentry(&entry); } - finfo("Last inode before offset %d\n", offset); + finfo("Last inode before offset %jd\n", (intmax_t)offset); } /* No inodes were found after this offset. Now search for a block of @@ -446,12 +447,13 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume) */ volume->froffset = volume->nblocks * volume->geo.blocksize; - finfo("Assume no free FLASH, froffset: %d\n", - volume->froffset); + finfo("Assume no free FLASH, froffset: %jd\n", + (intmax_t)volume->froffset); if (noinodes) { volume->inoffset = volume->froffset; - finfo("No inodes, inoffset: %d\n", volume->inoffset); + finfo("No inodes, inoffset: %jd\n", + (intmax_t)volume->inoffset); } return OK; @@ -482,12 +484,13 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume) */ volume->froffset = offset; - finfo("Free FLASH region begins at offset: %d\n", - volume->froffset); + finfo("Free FLASH region begins at offset: %jd\n", + (intmax_t)volume->froffset); if (noinodes) { volume->inoffset = offset; - finfo("First inode at offset %d\n", volume->inoffset); + finfo("First inode at offset %jd\n", + (intmax_t)volume->inoffset); } return OK;