You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/25 06:32:02 UTC
[incubator-nuttx] 19/28: fs/spiffs/src/spiffs_vfs.c: Fix syslog
formats
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 88bc46f4a6a1888abc1c44e7453265a4f6b19832
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 07:50:35 2020 +0900
fs/spiffs/src/spiffs_vfs.c: Fix syslog formats
---
fs/spiffs/src/spiffs_vfs.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/fs/spiffs/src/spiffs_vfs.c b/fs/spiffs/src/spiffs_vfs.c
index 475c9c9..a56e933 100644
--- a/fs/spiffs/src/spiffs_vfs.c
+++ b/fs/spiffs/src/spiffs_vfs.c
@@ -648,8 +648,8 @@ static ssize_t spiffs_write(FAR struct file *filep, FAR const char *buffer,
off_t offset;
int ret;
- finfo("filep=%p buffer=%p buflen=%lu\n",
- filep, buffer, (unsigned long)buflen);
+ finfo("filep=%p buffer=%p buflen=%zu\n",
+ filep, buffer, buflen);
DEBUGASSERT(filep->f_priv != NULL && filep->f_inode != NULL);
/* Get the mountpoint inode reference from the file structure and the
@@ -765,9 +765,10 @@ static ssize_t spiffs_write(FAR struct file *filep, FAR const char *buffer,
offset_in_cpage = offset - fobj->cache_page->offset;
spiffs_cacheinfo("Storing to cache page %d for fobj %d "
- "offset=%d:%d buflen=%d\n",
- fobj->cache_page->cpndx, fobj->objid, offset,
- offset_in_cpage, buflen);
+ "offset=%jd:%jd buflen=%zu\n",
+ fobj->cache_page->cpndx, fobj->objid,
+ (intmax_t)offset,
+ (intmax_t)offset_in_cpage, buflen);
cache = spiffs_get_cache(fs);
cpage_data = spiffs_get_cache_page(fs, cache,