diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-11-30 15:19:06 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-30 14:23:29 +0000 |
commit | f15c58410ad90bd1208305771689877ffffe3a88 (patch) | |
tree | f0b869f053f9a89d53bbb95e2ed39afde7d974c3 /drivers/spi/spidev.c | |
parent | de2c6e58554c7df3db70c68e52f982e558895ecf (diff) | |
download | linux-f15c58410ad90bd1208305771689877ffffe3a88.tar.gz linux-f15c58410ad90bd1208305771689877ffffe3a88.tar.bz2 linux-f15c58410ad90bd1208305771689877ffffe3a88.zip |
spi: spidev: Use "%u" to format __u32
On 64-bit with CONFIG_SPI_DEBUG=y and #define VERBOSE:
drivers/spi/spidev.c:287:3: warning: format '%zd' expects argument of type 'signed size_t', but argument 4 has type '__u32' [-Wformat=]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r-- | drivers/spi/spidev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 91a0fcd72423..9a8e47c452f4 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -284,7 +284,7 @@ static int spidev_message(struct spidev_data *spidev, k_tmp->speed_hz = spidev->speed_hz; #ifdef VERBOSE dev_dbg(&spidev->spi->dev, - " xfer len %zd %s%s%s%dbits %u usec %uHz\n", + " xfer len %u %s%s%s%dbits %u usec %uHz\n", u_tmp->len, u_tmp->rx_buf ? "rx " : "", u_tmp->tx_buf ? "tx " : "", |