提交 ca64af43 编写于 作者: N Nishanth Menon 提交者: Jassi Brar

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: NNishanth Menon <nm@ti.com>
Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
上级 4f0ceb87
...@@ -283,7 +283,7 @@ static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data) ...@@ -283,7 +283,7 @@ static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data)
desc = inst->desc; desc = inst->desc;
if (desc->max_message_size < message->len) { 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); qinst->name, message->len, desc->max_message_size);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册