From f6ca8bfe457efbfdecb933d5c312c0515fc1a4ad Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sat, 5 Dec 2020 14:00:05 +0900 Subject: [PATCH] fs/nxffs/nxffs_dirent.c: Fix a syslog format --- fs/nxffs/nxffs_dirent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);