From a68b216676e89fa959a23b583b56f9ce7df81b37 Mon Sep 17 00:00:00 2001 From: Rob Rice Date: Thu, 28 Jul 2016 11:54:20 -0400 Subject: mailbox: Fix format and type mismatches in Broadcom PDC driver Fix format and type mismatches in a couple debug prints in the Broadcom PDC driver. Use %pad for dma_addr_t and %pa for resource_size_t. Signed-off-by: Rob Rice Reported-by: Fengguang Wu Signed-off-by: Jassi Brar --- drivers/mailbox/bcm-pdc-mailbox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/mailbox') diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c index cc14a00babc3..cbe0c1ee4ba9 100644 --- a/drivers/mailbox/bcm-pdc-mailbox.c +++ b/drivers/mailbox/bcm-pdc-mailbox.c @@ -1028,9 +1028,9 @@ static int pdc_ring_init(struct pdc_state *pdcs, int ringset) goto fail_dealloc; } - dev_dbg(dev, " - base DMA addr of tx ring %#llx", tx.dmabase); + dev_dbg(dev, " - base DMA addr of tx ring %pad", &tx.dmabase); dev_dbg(dev, " - base virtual addr of tx ring %p", tx.vbase); - dev_dbg(dev, " - base DMA addr of rx ring %#llx", rx.dmabase); + dev_dbg(dev, " - base DMA addr of rx ring %pad", &rx.dmabase); dev_dbg(dev, " - base virtual addr of rx ring %p", rx.vbase); /* lock after ring allocation to avoid scheduling while atomic */ @@ -1455,8 +1455,8 @@ static int pdc_probe(struct platform_device *pdev) err = -ENODEV; goto cleanup_ring_pool; } - dev_dbg(dev, "PDC register region res.start = %#llx, res.end = %#llx", - pdc_regs->start, pdc_regs->end); + dev_dbg(dev, "PDC register region res.start = %pa, res.end = %pa", + &pdc_regs->start, &pdc_regs->end); pdcs->pdc_reg_vbase = devm_ioremap_resource(&pdev->dev, pdc_regs); if (IS_ERR(pdcs->pdc_reg_vbase)) { -- cgit v1.2.3