[PATCH 4/4] cpukit/dev/can: Fix 64 bit build compilation warnings

Prashanth S fishesprashanth at gmail.com
Fri Dec 16 13:27:52 UTC 2022


---
 cpukit/dev/can/can.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/dev/can/can.c b/cpukit/dev/can/can.c
index 7098ce16c2..ca855951d5 100644
--- a/cpukit/dev/can/can.c
+++ b/cpukit/dev/can/can.c
@@ -203,7 +203,7 @@ static ssize_t can_bus_read(rtems_libio_t *iop, void *buffer, size_t count)
   len = CAN_MSG_LEN(&bus->can_rx_msg);
 
   if (count < len) {
-    CAN_DEBUG("can_bus_read: buffer size is small min sizeof(struct can_msg) = %u\n",
+    CAN_DEBUG("can_bus_read: buffer size is small min sizeof(struct can_msg) = %zu\n",
                     sizeof(struct can_msg));
     return -RTEMS_INVALID_SIZE;
   }
-- 
2.25.1



More information about the devel mailing list