firmware: ti_sci: Use %zu for size_t print format

mbox_msg->len is of type size_t and %d is incorrect format. Instead
use %zu for handling size_t correctly.

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
This commit is contained in:
Nishanth Menon 2017-12-16 14:41:33 -08:00 committed by Santosh Shilimkar
parent 84a1695a6f
commit bd0fa74e7c

View File

@ -287,13 +287,13 @@ static void ti_sci_rx_callback(struct mbox_client *cl, void *m)
/* Is the message of valid length? */ /* Is the message of valid length? */
if (mbox_msg->len > info->desc->max_msg_size) { 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); mbox_msg->len, info->desc->max_msg_size);
ti_sci_dump_header_dbg(dev, hdr); ti_sci_dump_header_dbg(dev, hdr);
return; return;
} }
if (mbox_msg->len < xfer->rx_len) { 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); mbox_msg->len, xfer->rx_len);
ti_sci_dump_header_dbg(dev, hdr); ti_sci_dump_header_dbg(dev, hdr);
return; return;