spi: spidev: Use "%u" to format __u32
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 30 Nov 2015 14:19:06 +0000 (15:19 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 30 Nov 2015 14:23:29 +0000 (14:23 +0000)
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>
drivers/spi/spidev.c

index 91a0fcd72423080900c6c733f6aeb7e800a85538..9a8e47c452f40cb69aa7787e05661ba8f07a70e8 100644 (file)
@@ -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 " : "",