Message ID | 20250328105654.143676-1-eagle.alexander923@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | dmaengine: at_xdmac: Fixed printk format specifier when printing driver information. | expand |
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);
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@gmail.com> --- drivers/dma/at_xdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)