spi: pxa2xx: Fix printf() specifiers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 14:03:48 +0000 (17:03 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 18 May 2021 13:05:34 +0000 (14:05 +0100)
Instead of explicit casting use proper specifier in one case,
and fix specifier signness in another.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517140351.901-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c

index f24851b3c020210d8efaa26762da1d8ee3e935a3..f8264771b360989b9885f916de84f0595e57958f 100644 (file)
@@ -983,8 +983,8 @@ static int pxa2xx_spi_transfer_one(struct spi_controller *controller,
 
                /* warn ... we force this to PIO mode */
                dev_warn_ratelimited(&spi->dev,
-                                    "DMA disabled for transfer length %ld greater than %d\n",
-                                    (long)transfer->len, MAX_DMA_LEN);
+                                    "DMA disabled for transfer length %u greater than %d\n",
+                                    transfer->len, MAX_DMA_LEN);
        }
 
        /* Setup the transfer state based on the type of transfer */
@@ -1115,8 +1115,7 @@ static int pxa2xx_spi_transfer_one(struct spi_controller *controller,
 
                if (tx_level) {
                        /* On MMP2, flipping SSE doesn't to empty TXFIFO. */
-                       dev_warn(&spi->dev, "%d bytes of garbage in TXFIFO!\n",
-                                                               tx_level);
+                       dev_warn(&spi->dev, "%u bytes of garbage in Tx FIFO!\n", tx_level);
                        if (tx_level > transfer->len)
                                tx_level = transfer->len;
                        drv_data->tx += tx_level;