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

Prashanth S fishesprashanth at gmail.com
Sat Dec 3 09:02:09 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..2462df7e25 100644
--- a/cpukit/dev/can/can.c
+++ b/cpukit/dev/can/can.c
@@ -204,7 +204,7 @@ static ssize_t can_bus_read(rtems_libio_t *iop, void *buffer, size_t count)
 
   if (count < len) {
     CAN_DEBUG("can_bus_read: buffer size is small min sizeof(struct can_msg) = %u\n",
-                    sizeof(struct can_msg));
+                    (uint32_t)sizeof(struct can_msg));
     return -RTEMS_INVALID_SIZE;
   }
 
-- 
2.25.1



More information about the devel mailing list