On 14/12/2022 22:29, Gedare Bloom wrote:
On Sat, Dec 3, 2022 at 2:02 AM Prashanth S<fishesprasha...@gmail.com> wrote:
---
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));
If you use the uint32_t, then you should also use the PRIu32 macro instead of %u
Yes, or just use %zu without the cast.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel