* [PATCH] firmware: ti_sci: Use %zu for size_t print format
@ 2017-12-02 10:20 Nishanth Menon
2017-12-13 7:59 ` Lokesh Vutla
2017-12-16 22:43 ` santosh.shilimkar
0 siblings, 2 replies; 3+ messages in thread
From: Nishanth Menon @ 2017-12-02 10:20 UTC (permalink / raw)
To: Santosh Shilimkar, Tero Kristo
Cc: linux-kernel, linux-arm-kernel, Nishanth Menon
mbox_msg->len is of type size_t and %d is incorrect format. Instead
use %zu for handling size_t correctly.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
drivers/firmware/ti_sci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
index 23b12d99ddfe..5229036dcfbf 100644
--- a/drivers/firmware/ti_sci.c
+++ b/drivers/firmware/ti_sci.c
@@ -287,13 +287,13 @@ static void ti_sci_rx_callback(struct mbox_client *cl, void *m)
/* Is the message of valid length? */
if (mbox_msg->len > info->desc->max_msg_size) {
- dev_err(dev, "Unable to handle %d xfer(max %d)\n",
+ dev_err(dev, "Unable to handle %zu xfer(max %d)\n",
mbox_msg->len, info->desc->max_msg_size);
ti_sci_dump_header_dbg(dev, hdr);
return;
}
if (mbox_msg->len < xfer->rx_len) {
- dev_err(dev, "Recv xfer %d < expected %d length\n",
+ dev_err(dev, "Recv xfer %zu < expected %d length\n",
mbox_msg->len, xfer->rx_len);
ti_sci_dump_header_dbg(dev, hdr);
return;
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] firmware: ti_sci: Use %zu for size_t print format
2017-12-02 10:20 [PATCH] firmware: ti_sci: Use %zu for size_t print format Nishanth Menon
@ 2017-12-13 7:59 ` Lokesh Vutla
2017-12-16 22:43 ` santosh.shilimkar
1 sibling, 0 replies; 3+ messages in thread
From: Lokesh Vutla @ 2017-12-13 7:59 UTC (permalink / raw)
To: Nishanth Menon, Santosh Shilimkar, Tero Kristo
Cc: linux-kernel, linux-arm-kernel
On Saturday 02 December 2017 03:50 PM, Nishanth Menon wrote:
> mbox_msg->len is of type size_t and %d is incorrect format. 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: [PATCH] firmware: ti_sci: Use %zu for size_t print format
2017-12-02 10:20 [PATCH] firmware: ti_sci: Use %zu for size_t print format Nishanth Menon
2017-12-13 7:59 ` Lokesh Vutla
@ 2017-12-16 22:43 ` santosh.shilimkar
1 sibling, 0 replies; 3+ messages in thread
From: santosh.shilimkar @ 2017-12-16 22:43 UTC (permalink / raw)
To: Nishanth Menon, Santosh Shilimkar, Tero Kristo
Cc: linux-kernel, linux-arm-kernel
On 12/2/17 2:20 AM, Nishanth Menon wrote:
> mbox_msg->len is of type size_t and %d is incorrect format. Instead
> use %zu for handling size_t correctly.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
Applied to 'for_4.16/drivers-soc' with Lokesh's ack.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-16 22:44 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:20 [PATCH] firmware: ti_sci: Use %zu for size_t print format Nishanth Menon
2017-12-13 7:59 ` Lokesh Vutla
2017-12-16 22:43 ` santosh.shilimkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).