[PATCH] cpukit/include/dev/can: Disabled debug prints in CAN Framework

Chris Johns chrisj at rtems.org
Fri Dec 2 04:09:33 UTC 2022


On 2/12/2022 2:38 pm, Chris Johns wrote:
> The CAN bus changes have warnings ...
> 
> In file included from ../../../cpukit/include/dev/can/canqueueimpl.h:48,
>                  from ../../../cpukit/dev/can/can.c:45:
> ../../../cpukit/dev/can/can.c: In function 'can_bus_read':
> ../../../cpukit/dev/can/can.c:213:15: warning: format '%u' expects argument of
> type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]
>   213 |     CAN_DEBUG("can_bus_read: buffer size is small min sizeof(struct
> can_msg) = %u\n",
>       |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   214 |                     sizeof(struct can_msg));
>       |                     ~~~~~~~~~~~~~~~~~~~~~~
>       |                     |
>       |                     long unsigned int
> ../../../cpukit/include/dev/can/can.h:53:14: note: in definition of macro
> 
> etc etc etc
> 
> Can these please be fixed? Use #4662.

I should add I used the aarch64/xilinx_zynqmp_lp64_zu3eg BSP so it looks like
these are 64bit related. I hope that helps. I do not see them with 32bit builds.

Chris


More information about the devel mailing list