[PATCH] dmaengine: at_xdmac: Fixed printk format specifier when printing driver information.
Alexander Shiyan
eagle.alexander923 at gmail.com
Fri Mar 28 03:56:54 PDT 2025
Use the correct printk specifier to print the address, otherwise
you get weird information:
at_xdmac f0010000.dma-controller: 16 channels, mapped at 0x(ptrval)
at_xdmac f0004000.dma-controller: 16 channels, mapped at 0x(ptrval)
After the change, the information looks much more informative:
at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xc8892000
at_xdmac f0004000.dma-controller: 16 channels, mapped at 0xc8894000
Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
drivers/dma/at_xdmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
index ba25c23164e7..a4188046804d 100644
--- a/drivers/dma/at_xdmac.c
+++ b/drivers/dma/at_xdmac.c
@@ -2409,7 +2409,7 @@ static int at_xdmac_probe(struct platform_device *pdev)
goto err_dma_unregister;
}
- dev_info(&pdev->dev, "%d channels, mapped at 0x%p\n",
+ dev_info(&pdev->dev, "%d channels, mapped at 0x%px\n",
nr_channels, atxdmac->regs);
at_xdmac_axi_config(pdev);
--
2.39.1
More information about the linux-arm-kernel
mailing list