Commit a68b2166 authored by Rob Rice's avatar Rob Rice Committed by Jassi Brar

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: default avatarRob Rice <rob.rice@broadcom.com>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent a24532f8
...@@ -1028,9 +1028,9 @@ static int pdc_ring_init(struct pdc_state *pdcs, int ringset) ...@@ -1028,9 +1028,9 @@ static int pdc_ring_init(struct pdc_state *pdcs, int ringset)
goto fail_dealloc; 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 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); dev_dbg(dev, " - base virtual addr of rx ring %p", rx.vbase);
/* lock after ring allocation to avoid scheduling while atomic */ /* lock after ring allocation to avoid scheduling while atomic */
...@@ -1455,8 +1455,8 @@ static int pdc_probe(struct platform_device *pdev) ...@@ -1455,8 +1455,8 @@ static int pdc_probe(struct platform_device *pdev)
err = -ENODEV; err = -ENODEV;
goto cleanup_ring_pool; goto cleanup_ring_pool;
} }
dev_dbg(dev, "PDC register region res.start = %#llx, res.end = %#llx", dev_dbg(dev, "PDC register region res.start = %pa, res.end = %pa",
pdc_regs->start, pdc_regs->end); &pdc_regs->start, &pdc_regs->end);
pdcs->pdc_reg_vbase = devm_ioremap_resource(&pdev->dev, pdc_regs); pdcs->pdc_reg_vbase = devm_ioremap_resource(&pdev->dev, pdc_regs);
if (IS_ERR(pdcs->pdc_reg_vbase)) { if (IS_ERR(pdcs->pdc_reg_vbase)) {
......
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