mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
mcp251xfd-dump: fix comparison of integer expressions of different signedness warning
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
@@ -232,7 +232,7 @@ static void mcp251xfd_dump_reg_intf(const struct mcp251xfd_priv *priv, u32 val,
|
|||||||
#define __create_dump_fifo_bitmask(fifo, name, description) \
|
#define __create_dump_fifo_bitmask(fifo, name, description) \
|
||||||
static void mcp251xfd_dump_reg_##fifo(const struct mcp251xfd_priv *priv, u32 val, u16 addr) \
|
static void mcp251xfd_dump_reg_##fifo(const struct mcp251xfd_priv *priv, u32 val, u16 addr) \
|
||||||
{ \
|
{ \
|
||||||
int i; \
|
size_t i; \
|
||||||
\
|
\
|
||||||
pr_info(__stringify(name) ": " __stringify(fifo) "(0x%03x)=0x%08x\n", addr, val); \
|
pr_info(__stringify(name) ": " __stringify(fifo) "(0x%03x)=0x%08x\n", addr, val); \
|
||||||
pr_info(description ":\n"); \
|
pr_info(description ":\n"); \
|
||||||
@@ -244,7 +244,7 @@ static void mcp251xfd_dump_reg_##fifo(const struct mcp251xfd_priv *priv, u32 val
|
|||||||
pr_info("\t\t"); \
|
pr_info("\t\t"); \
|
||||||
for (i = 0; i < sizeof(val); i++) { \
|
for (i = 0; i < sizeof(val); i++) { \
|
||||||
if (val & BIT(i)) \
|
if (val & BIT(i)) \
|
||||||
pr_cont("%d ", i); \
|
pr_cont("%zd ", i); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
pr_cont("\n"); \
|
pr_cont("\n"); \
|
||||||
|
|||||||
Reference in New Issue
Block a user