diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2014-03-21 08:53:41 -0700 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-21 17:29:12 +0000 |
commit | 54f4c51cc1634ab91074389dd6809af938a72778 (patch) | |
tree | 51861b960736d2533ef80f7d771e16522acd2109 /drivers/spi | |
parent | 5bdfd491a01955727a6b2382534ec7760174863e (diff) | |
download | linux-54f4c51cc1634ab91074389dd6809af938a72778.tar.bz2 |
spi: atmel: fix printk format warnings
Fix printk format warning by using %p extension 'ad' for dma_addr_t.
drivers/spi/spi-atmel.c:1228:3: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat]
drivers/spi/spi-atmel.c:1228:3: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'dma_addr_t' [-Wformat]
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-atmel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index c83b0c620fa1..f17f949857b4 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -1234,10 +1234,10 @@ static int atmel_spi_transfer_one_message(struct spi_master *master, list_for_each_entry(xfer, &msg->transfers, transfer_list) { dev_dbg(&spi->dev, - " xfer %p: len %u tx %p/%08x rx %p/%08x\n", + " xfer %p: len %u tx %p/%pad rx %p/%pad\n", xfer, xfer->len, - xfer->tx_buf, xfer->tx_dma, - xfer->rx_buf, xfer->rx_dma); + xfer->tx_buf, &xfer->tx_dma, + xfer->rx_buf, &xfer->rx_dma); } msg_done: |