diff --git a/fs/nxffs/nxffs_unlink.c b/fs/nxffs/nxffs_unlink.c index e0e2b99dc0c..85bc7b7077a 100644 --- a/fs/nxffs/nxffs_unlink.c +++ b/fs/nxffs/nxffs_unlink.c @@ -41,6 +41,7 @@ #include +#include #include #include #include @@ -111,8 +112,8 @@ int nxffs_rminode(FAR struct nxffs_volume_s *volume, FAR const char *name) ret = nxffs_rdcache(volume, volume->ioblock); if (ret < 0) { - ferr("ERROR: Failed to read block %d into cache: %d\n", - volume->ioblock, ret); + ferr("ERROR: Failed to read block %jd into cache: %d\n", + (intmax_t)volume->ioblock, ret); goto errout_with_entry; } @@ -126,8 +127,8 @@ int nxffs_rminode(FAR struct nxffs_volume_s *volume, FAR const char *name) ret = nxffs_wrcache(volume); if (ret < 0) { - ferr("ERROR: Failed to write block %d: %d\n", - volume->ioblock, ret); + ferr("ERROR: Failed to write block %jd: %d\n", + (intmax_t)volume->ioblock, ret); } errout_with_entry: