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
1 changed files with 11 additions and 8 deletions

View File

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