projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0ceb8
)
mailbox: ti-msgmgr: Use %zu for size_t print format
author
Nishanth Menon
<nm@ti.com>
Sat, 2 Dec 2017 10:27:18 +0000
(
04:27
-0600)
committer
Jassi Brar
<jaswinder.singh@linaro.org>
Wed, 10 Jan 2018 04:45:32 +0000
(10:15 +0530)
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>
drivers/mailbox/ti-msgmgr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mailbox/ti-msgmgr.c
b/drivers/mailbox/ti-msgmgr.c
index c8f34d69f03c5a664c03e48c7be50ee9f2fca180..78753a87ba4d112367d6b4c6691cd9b0f062e575 100644
(file)
--- 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;
}