mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mailbox: ti-msgmgr: Use %zu for size_t print format
@ 2017-12-02 10:27 Nishanth Menon
  2017-12-13  8:01 ` Lokesh Vutla
  0 siblings, 1 reply; 3+ messages in thread
From: Nishanth Menon @ 2017-12-02 10:27 UTC (permalink / raw)
  To: Jassi Brar; +Cc: linux-kernel, Nishanth Menon

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 <nm@ti.com>
---
 drivers/mailbox/ti-msgmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c
index c8f34d69f03c..78753a87ba4d 100644
--- a/drivers/mailbox/ti-msgmgr.c
+++ b/drivers/mailbox/ti-msgmgr.c
@@ -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;
 	}
-- 
2.14.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mailbox: ti-msgmgr: Use %zu for size_t print format
  2017-12-02 10:27 [PATCH] mailbox: ti-msgmgr: Use %zu for size_t print format Nishanth Menon
@ 2017-12-13  8:01 ` Lokesh Vutla
  2017-12-16 21:49   ` Nishanth Menon
  0 siblings, 1 reply; 3+ messages in thread
From: Lokesh Vutla @ 2017-12-13  8:01 UTC (permalink / raw)
  To: Nishanth Menon, Jassi Brar; +Cc: linux-kernel



On Saturday 02 December 2017 03:57 PM, Nishanth Menon wrote:
> 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 <nm@ti.com>

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mailbox: ti-msgmgr: Use %zu for size_t print format
  2017-12-13  8:01 ` Lokesh Vutla
@ 2017-12-16 21:49   ` Nishanth Menon
  0 siblings, 0 replies; 3+ messages in thread
From: Nishanth Menon @ 2017-12-16 21:49 UTC (permalink / raw)
  To: Lokesh Vutla; +Cc: Jassi Brar, linux-kernel

On 08:01-20171213, Lokesh Vutla wrote:
> 
> 
> On Saturday 02 December 2017 03:57 PM, Nishanth Menon wrote:
> > 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 <nm@ti.com>
> 
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Hi Jassi,
   Gentle ping.
-- 
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-16 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-02 10:27 [PATCH] mailbox: ti-msgmgr: Use %zu for size_t print format Nishanth Menon
2017-12-13  8:01 ` Lokesh Vutla
2017-12-16 21:49   ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®