* [PATCH] i2c: davinci: use correct format identifier for size_t
@ 2017-10-17 22:17 Wolfram Sang
2017-10-19 5:57 ` Sekhar Nori
2017-10-26 20:23 ` Wolfram Sang
0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2017-10-17 22:17 UTC (permalink / raw)
To: linux-i2c; +Cc: Franklin S Cooper Jr, Sekhar Nori, Wolfram Sang
Fixes this warning (found by build testing with 64bit):
format ‘%i’ expects argument of type ‘int’, but argument 3 has type
‘size_t {aka long unsigned int}’ [-Wformat=]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
drivers/i2c/busses/i2c-davinci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
index a2d9f7c56dacdc..2ead9b9eebb79a 100644
--- a/drivers/i2c/busses/i2c-davinci.c
+++ b/drivers/i2c/busses/i2c-davinci.c
@@ -504,7 +504,7 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop)
/* This should be 0 if all bytes were transferred
* or dev->cmd_err denotes an error.
*/
- dev_err(dev->dev, "abnormal termination buf_len=%i\n",
+ dev_err(dev->dev, "abnormal termination buf_len=%zu\n",
dev->buf_len);
dev->terminate = 1;
wmb();
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c: davinci: use correct format identifier for size_t
2017-10-17 22:17 [PATCH] i2c: davinci: use correct format identifier for size_t Wolfram Sang
@ 2017-10-19 5:57 ` Sekhar Nori
2017-10-26 20:23 ` Wolfram Sang
1 sibling, 0 replies; 3+ messages in thread
From: Sekhar Nori @ 2017-10-19 5:57 UTC (permalink / raw)
To: Wolfram Sang, linux-i2c; +Cc: Franklin S Cooper Jr
On Wednesday 18 October 2017 03:47 AM, Wolfram Sang wrote:
> Fixes this warning (found by build testing with 64bit):
>
> format ‘%i’ expects argument of type ‘int’, but argument 3 has type
> ‘size_t {aka long unsigned int}’ [-Wformat=]
>
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c: davinci: use correct format identifier for size_t
2017-10-17 22:17 [PATCH] i2c: davinci: use correct format identifier for size_t Wolfram Sang
2017-10-19 5:57 ` Sekhar Nori
@ 2017-10-26 20:23 ` Wolfram Sang
1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2017-10-26 20:23 UTC (permalink / raw)
To: linux-i2c; +Cc: Franklin S Cooper Jr, Sekhar Nori
[-- Attachment #1: Type: text/plain, Size: 346 bytes --]
On Wed, Oct 18, 2017 at 12:17:09AM +0200, Wolfram Sang wrote:
> Fixes this warning (found by build testing with 64bit):
>
> format ‘%i’ expects argument of type ‘int’, but argument 3 has type
> ‘size_t {aka long unsigned int}’ [-Wformat=]
>
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-26 20:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 22:17 [PATCH] i2c: davinci: use correct format identifier for size_t Wolfram Sang
2017-10-19 5:57 ` Sekhar Nori
2017-10-26 20:23 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).