fs/romfs/fs_romfs.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-22 10:52:05 +09:00 committed by Xiang Xiao
parent 42a218dabb
commit 67fbbf935b

View File

@ -375,7 +375,7 @@ static ssize_t romfs_read(FAR struct file *filep, FAR char *buffer,
int sectorndx; int sectorndx;
int ret; int ret;
finfo("Read %zu bytes from offset %d\n", buflen, filep->f_pos); finfo("Read %zu bytes from offset %jd\n", buflen, (intmax_t)filep->f_pos);
/* Sanity checks */ /* Sanity checks */
@ -443,7 +443,8 @@ static ssize_t romfs_read(FAR struct file *filep, FAR char *buffer,
/* Read all of the sectors directly into user memory */ /* Read all of the sectors directly into user memory */
finfo("Read %d sectors starting with %d\n", nsectors, sector); finfo("Read %d sectors starting with %jd\n", nsectors,
(intmax_t)sector);
ret = romfs_hwread(rm, userbuffer, sector, nsectors); ret = romfs_hwread(rm, userbuffer, sector, nsectors);
if (ret < 0) if (ret < 0)
{ {
@ -460,7 +461,7 @@ static ssize_t romfs_read(FAR struct file *filep, FAR char *buffer,
* it is already there then all is well. * it is already there then all is well.
*/ */
finfo("Read sector %d\n", sector); finfo("Read sector %jd\n", (intmax_t)sector);
ret = romfs_filecacheread(rm, rf, sector); ret = romfs_filecacheread(rm, rf, sector);
if (ret < 0) if (ret < 0)
{ {
@ -510,7 +511,7 @@ static off_t romfs_seek(FAR struct file *filep, off_t offset, int whence)
off_t position; off_t position;
int ret; int ret;
finfo("Seek to offset: %d whence: %d\n", offset, whence); finfo("Seek to offset: %jd whence: %d\n", (intmax_t)offset, whence);
/* Sanity checks */ /* Sanity checks */
@ -575,7 +576,7 @@ static off_t romfs_seek(FAR struct file *filep, off_t offset, int whence)
/* Set file position and return success */ /* Set file position and return success */
filep->f_pos = position; filep->f_pos = position;
finfo("New file position: %d\n", filep->f_pos); finfo("New file position: %jd\n", (intmax_t)filep->f_pos);
romfs_semgive(rm); romfs_semgive(rm);
return OK; return OK;