Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1669114 > unrolled thread
| Started by | Wolfram Sang <wsa@the-dreams.de> |
|---|---|
| First post | 2017-06-19 16:40 +0200 |
| Last post | 2017-06-19 16:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] i2c: at91: Fix compilation warning. Wolfram Sang <wsa@the-dreams.de> - 2017-06-19 16:40 +0200
| From | Wolfram Sang <wsa@the-dreams.de> |
|---|---|
| Date | 2017-06-19 16:40 +0200 |
| Subject | Re: [PATCH] i2c: at91: Fix compilation warning. |
| Message-ID | <tU60p-3Pk-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On Wed, May 31, 2017 at 12:45:38PM +0530, Arvind Yadav wrote: > Replace '%d' by '%zu' to fix the following compilation warning:- > > drivers/i2c/busses/i2c-at91.c:277:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=] > dev_dbg(dev->dev, "wrote 0x%x, to go %d\n", *dev->buf, dev->buf_len); > ^ > drivers/i2c/busses/i2c-at91.c: In function ‘at91_twi_read_next_byte’: > drivers/i2c/busses/i2c-at91.c:405:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] > dev_dbg(dev->dev, "received block length %d\n", > ^ > drivers/i2c/busses/i2c-at91.c:418:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=] > dev_dbg(dev->dev, "read 0x%x, to go %d\n", *dev->buf, dev->buf_len); > ^ > drivers/i2c/busses/i2c-at91.c: In function ‘at91_do_twi_transfer’: > drivers/i2c/busses/i2c-at91.c:625:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=] > dev_dbg(dev->dev, "transfer: %s %d bytes.\n", > > Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Shortened the commit message a little (i'd think one example is enough) and applied to for-next, thanks!
Back to top | Article view | linux.kernel
csiph-web