]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 abceea802ea1b0b351628a264aca624696e2c290..be0fec17d95de0265159054799597c530f1aaaaf 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);