fs/nxffs/nxffs_blockstats.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-12-05 13:59:15 +09:00 committed by Xiang Xiao
parent 01e0c41759
commit 75d0077cd1
1 changed files with 7 additions and 7 deletions

View File

@ -94,8 +94,8 @@ int nxffs_blockstats(FAR struct nxffs_volume_s *volume,
ret = MTD_BREAD(volume->mtd, ioblock, volume->blkper, volume->pack);
if (ret < volume->blkper)
{
ferr("ERROR: Failed to read erase block %d: %d\n",
ioblock / volume->blkper, ret);
ferr("ERROR: Failed to read erase block %jd: %d\n",
(intmax_t)(ioblock / volume->blkper), ret);
return ret;
}
@ -150,11 +150,11 @@ int nxffs_blockstats(FAR struct nxffs_volume_s *volume,
}
}
finfo("Number blocks: %d\n", stats->nblocks);
finfo(" Good blocks: %d\n", stats->ngood);
finfo(" Bad blocks: %d\n", stats->nbad);
finfo(" Unformatted blocks: %d\n", stats->nunformat);
finfo(" Corrupt blocks: %d\n", stats->ncorrupt);
finfo("Number blocks: %jd\n", (intmax_t)stats->nblocks);
finfo(" Good blocks: %jd\n", (intmax_t)stats->ngood);
finfo(" Bad blocks: %jd\n", (intmax_t)stats->nbad);
finfo(" Unformatted blocks: %jd\n", (intmax_t)stats->nunformat);
finfo(" Corrupt blocks: %jd\n", (intmax_t)stats->ncorrupt);
#else
for (ioblock = 0; ioblock < volume->nblocks; ioblock++)