fs/nxffs/nxffs_initialize.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-12-05 14:02:03 +09:00 committed by Xiang Xiao
parent f6ca8bfe45
commit 942b1e925d

View file

@ -42,6 +42,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
@ -400,7 +401,7 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume)
/* Save the offset to the first inode */ /* Save the offset to the first inode */
volume->inoffset = entry.hoffset; 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. */ /* Discard this entry and set the next offset. */
@ -420,7 +421,7 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume)
nxffs_freeentry(&entry); 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 /* 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; volume->froffset = volume->nblocks * volume->geo.blocksize;
finfo("Assume no free FLASH, froffset: %d\n", finfo("Assume no free FLASH, froffset: %jd\n",
volume->froffset); (intmax_t)volume->froffset);
if (noinodes) if (noinodes)
{ {
volume->inoffset = volume->froffset; volume->inoffset = volume->froffset;
finfo("No inodes, inoffset: %d\n", volume->inoffset); finfo("No inodes, inoffset: %jd\n",
(intmax_t)volume->inoffset);
} }
return OK; return OK;
@ -482,12 +484,13 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume)
*/ */
volume->froffset = offset; volume->froffset = offset;
finfo("Free FLASH region begins at offset: %d\n", finfo("Free FLASH region begins at offset: %jd\n",
volume->froffset); (intmax_t)volume->froffset);
if (noinodes) if (noinodes)
{ {
volume->inoffset = offset; 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; return OK;