mailbox: ti-msgmgr: Use %zu for size_t print format
PATCH 1/1 mailbox: ti-msgmgr: Use %zu for size_t print format
message->len is of type size_t and %d is incorrect format usage. Instead use %zu for handling size_t correctly.
Signed-off-by Nishanth Menon <[email protected]>
--- drivers/mailbox/ti-msgmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/ti-msgmgr.c +1 -1
@@ -283,7 +283,7 @@ static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data) desc = inst->desc;if (desc->max_message_size < message->len) { -dev_err (dev,"Queue %s message length %d > max %d\n" , +dev_err (dev,"Queue %s message length %zu > max %d\n" , qinst->name, message->len, desc->max_message_size);return -EINVAL ; }
Signature · 1 line
2.14.1
Quoted 4 lines · Nishanth Menon
message->lenis of typesize_tand %d is incorrect format usage. Instead use %zu for handlingsize_tcorrectly.Signed-off-by Nishanth Menon <[email protected]>
Reviewed-by Lokesh Vutla <[email protected]>
Thanks and regards,
Lokesh
Quoted 9 lines · Lokesh Vutla
Quoted 4 lines · Nishanth Menon
message->lenis of typesize_tand %d is incorrect format usage. Instead use %zu for handlingsize_tcorrectly.Signed-off-by Nishanth Menon <[email protected]>Reviewed-by Lokesh Vutla <[email protected]>
Hi Jassi,
Gentle ping.
Signature · 2 lines
Regards, Nishanth Menon