From 6ca75deec88c5af28df401c776cea18d8ea95391 Mon Sep 17 00:00:00 2001 From: To Doan Ngoc Hai Date: Mon, 31 Oct 2022 13:36:40 +0200 Subject: [PATCH] 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 */