]> www.infradead.org Git - users/dwmw2/linux.git/commit
can: mcp251xfd: mcp251xfd_ring_init(): use %d to print free RAM
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 6 Mar 2022 13:54:07 +0000 (14:54 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 13 Mar 2022 08:45:35 +0000 (09:45 +0100)
commitc47675b11ba12a2369bbc562f9acb5e84a37951e
tree918e64bababdfb89632e4f0766d0835dbb3b8dec
parentfc7dcd05f4c2660cf665bb1c2b9cd82e8d9d8bd8
can: mcp251xfd: mcp251xfd_ring_init(): use %d to print free RAM

In case of an erroneous ring configuration more RAM than available
might be used. Change the printf modifier to a signed int to properly
print this erroneous value.

Fixes: 83daa863f16b ("can: mcp251xfd: ring: update FIFO setup debug info")
Link: https://lore.kernel.org/20220313083640.501791-2-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c