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 2023/01/18 14:03:24 UTC

[nuttx] 01/02: drivers/can/can.c: Change size_t type printf formatter %d -> %zu

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/nuttx.git

commit 6ca75deec88c5af28df401c776cea18d8ea95391
Author: To Doan Ngoc Hai <to...@gmail.com>
AuthorDate: Mon Oct 31 13:36:40 2022 +0200

    drivers/can/can.c: Change size_t type printf formatter %d -> %zu
---
 drivers/can/can.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/can/can.c b/drivers/can/can.c
index 6885732fd3..7e838c168f 100644
--- a/drivers/can/can.c
+++ b/drivers/can/can.c
@@ -506,7 +506,7 @@ static ssize_t can_read(FAR struct file *filep, FAR char *buffer,
   FAR struct can_dev_s     *dev = inode->i_private;
 #endif
 
-  caninfo("buflen: %d\n", buflen);
+  caninfo("buflen: %zu\n", buflen);
 
   /* The caller must provide enough memory to catch the smallest possible
    * message.  This is not a system error condition, but we won't permit
@@ -743,7 +743,7 @@ static ssize_t can_write(FAR struct file *filep, FAR const char *buffer,
   int                      msglen;
   int                      ret   = 0;
 
-  caninfo("buflen: %d\n", buflen);
+  caninfo("buflen: %zu\n", buflen);
 
   /* Interrupts must disabled throughout the following */