diff --git a/fs/nxffs/nxffs_dirent.c b/fs/nxffs/nxffs_dirent.c index 90d3b1d72f..40be64d191 100644 --- a/fs/nxffs/nxffs_dirent.c +++ b/fs/nxffs/nxffs_dirent.c @@ -41,6 +41,7 @@ #include +#include #include #include #include @@ -147,7 +148,7 @@ int nxffs_readdir(FAR struct inode *mountpt, FAR struct fs_dirent_s *dir) { /* Return the filename and file type */ - finfo("Offset %d: \"%s\"\n", entry.hoffset, entry.name); + finfo("Offset %jd: \"%s\"\n", (intmax_t)entry.hoffset, entry.name); dir->fd_dir.d_type = DTYPE_FILE; strncpy(dir->fd_dir.d_name, entry.name, NAME_MAX + 1);