<div dir="ltr">>The CAN bus changes have warnings ...<br>><br>>In file included from ../../../cpukit/include/dev/can/canqueueimpl.h:48,<br>>                from ../../../cpukit/dev/can/can.c:45:<br>>../../../cpukit/dev/can/can.c: In function 'can_bus_read':<br>>../../../cpukit/dev/can/can.c:213:15: warning: format '%u' expects argument of<br>>type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]<br>>  213 |     CAN_DEBUG("can_bus_read: buffer size is small min sizeof(struct<br>>can_msg) = %u\n",<br>>      |<br>>^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>>  214 |                     sizeof(struct can_msg));<br>>      |                     ~~~~~~~~~~~~~~~~~~~~~~<br>>      |                     |<br>>      |                     long unsigned int<br>>../../../cpukit/include/dev/can/can.h:53:14: note: in definition of macro<br>><br>>etc etc etc<br>><br>>Can these please be fixed? Use #4662.  <br><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">Yes, I will typecast the value returned by sizeof().<br></blockquote><br></div><div>Regards</div><div>Prashanth S</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Dec 2022 at 09:09, Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The CAN bus changes have warnings ...<br>
<br>
In file included from ../../../cpukit/include/dev/can/canqueueimpl.h:48,<br>
                 from ../../../cpukit/dev/can/can.c:45:<br>
../../../cpukit/dev/can/can.c: In function 'can_bus_read':<br>
../../../cpukit/dev/can/can.c:213:15: warning: format '%u' expects argument of<br>
type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]<br>
  213 |     CAN_DEBUG("can_bus_read: buffer size is small min sizeof(struct<br>
can_msg) = %u\n",<br>
      |<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
  214 |                     sizeof(struct can_msg));<br>
      |                     ~~~~~~~~~~~~~~~~~~~~~~<br>
      |                     |<br>
      |                     long unsigned int<br>
../../../cpukit/include/dev/can/can.h:53:14: note: in definition of macro<br>
<br>
etc etc etc<br>
<br>
Can these please be fixed? Use #4662.<br>
<br>
Thanks<br>
Chris<br>
</blockquote></div>