summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 84a1695)
raw | patch | inline | side by side (parent: 84a1695)
author | Nishanth Menon <nm@ti.com> | |
Sat, 16 Dec 2017 22:41:33 +0000 (14:41 -0800) | ||
committer | Santosh Shilimkar <santosh.shilimkar@oracle.com> | |
Sat, 16 Dec 2017 22:41:33 +0000 (14:41 -0800) |
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>
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>
drivers/firmware/ti_sci.c | patch | blob | history |
index 23b12d99ddfed61439990ed761df631eb47dd7b4..5229036dcfbfc3ca8cb1065d636950e5d9e80a3b 100644 (file)
/* 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;