net: ethernet: davinci_emac: Fix printing of base address
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 May 2018 18:45:54 +0000 (11:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 May 2018 20:17:10 +0000 (16:17 -0400)
Use %pa which is the correct formatter to print a physical address,
instead of %p which is just a pointer.

Fixes: a6286ee630f6 ("net: Add TI DaVinci EMAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c

index abceea8..be0fec1 100644 (file)
@@ -1930,8 +1930,8 @@ static int davinci_emac_probe(struct platform_device *pdev)
 
        if (netif_msg_probe(priv)) {
                dev_notice(&pdev->dev, "DaVinci EMAC Probe found device "
-                          "(regs: %p, irq: %d)\n",
-                          (void *)priv->emac_base_phys, ndev->irq);
+                          "(regs: %pa, irq: %d)\n",
+                          &priv->emac_base_phys, ndev->irq);
        }
        pm_runtime_put(&pdev->dev);