diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2017-10-18 00:17:09 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-10-26 22:22:46 +0200 |
commit | 631de7a4603439eaa1d7a2a1a7b5b49edcd87f67 (patch) | |
tree | ae4a1d4dedd96f4dd2c33a9a11b56330819a336d /drivers/i2c | |
parent | db6b78073ac135bb68cae77bb873371d0fe0efa6 (diff) | |
download | linux-631de7a4603439eaa1d7a2a1a7b5b49edcd87f67.tar.gz linux-631de7a4603439eaa1d7a2a1a7b5b49edcd87f67.tar.bz2 linux-631de7a4603439eaa1d7a2a1a7b5b49edcd87f67.zip |
i2c: davinci: use correct format identifier for size_t
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-davinci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index a2d9f7c56dac..2ead9b9eebb7 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(); |