summaryrefslogtreecommitdiff
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2017-12-02 13:27:18 +0300
committerJassi Brar <jaswinder.singh@linaro.org>2018-01-10 07:45:32 +0300
commitca64af43924f85d5de1b384709af3a3ea8c7ebbb (patch)
tree6763ddab6673326eeea886595b004f1121d43593 /drivers/mailbox
parent4f0ceb878920cd0ac862f0f3eb08e4c4e3aa12ee (diff)
downloadlinux-ca64af43924f85d5de1b384709af3a3ea8c7ebbb.tar.xz
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 <nm@ti.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r--drivers/mailbox/ti-msgmgr.c2
1 files changed, 1 insertions, 1 deletions
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;
}