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 13:12:08 UTC

[incubator-nuttx] 31/35: fs/binfs/fs_binfs.c: Fix a syslog format

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 e58a966dd60be83140d03ba9264375371a7ec9a8
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 20:11:25 2020 +0900

    fs/binfs/fs_binfs.c: Fix a syslog format
---
 fs/binfs/fs_binfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/binfs/fs_binfs.c b/fs/binfs/fs_binfs.c
index f59e451..9527ff9 100644
--- a/fs/binfs/fs_binfs.c
+++ b/fs/binfs/fs_binfs.c
@@ -193,7 +193,8 @@ static ssize_t binfs_read(FAR struct file *filep,
 {
   /* Reading is not supported.  Just return end-of-file */
 
-  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);
   return 0;
 }