fs/nxffs/nxffs_dirent.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-12-05 14:00:05 +09:00 committed by Xiang Xiao
parent 75d0077cd1
commit f6ca8bfe45

View File

@ -41,6 +41,7 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <string.h>
#include <dirent.h>
#include <assert.h>
@ -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);