Commit 54f4c51c authored by Randy Dunlap's avatar Randy Dunlap Committed by Mark Brown

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 5bdfd491
...@@ -1234,10 +1234,10 @@ static int atmel_spi_transfer_one_message(struct spi_master *master, ...@@ -1234,10 +1234,10 @@ static int atmel_spi_transfer_one_message(struct spi_master *master,
list_for_each_entry(xfer, &msg->transfers, transfer_list) { list_for_each_entry(xfer, &msg->transfers, transfer_list) {
dev_dbg(&spi->dev, 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, xfer->len,
xfer->tx_buf, xfer->tx_dma, xfer->tx_buf, &xfer->tx_dma,
xfer->rx_buf, xfer->rx_dma); xfer->rx_buf, &xfer->rx_dma);
} }
msg_done: msg_done:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment