From: Florian Fainelli Date: Mon, 21 May 2018 18:45:54 +0000 (-0700) Subject: net: ethernet: davinci_emac: Fix printing of base address X-Git-Tag: Ubuntu-5.2.0-15.16~4262^2~177^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5a04e8f81a4f55ce1c2b7b525744a187c99ba302;p=mirror_ubuntu-eoan-kernel.git net: ethernet: davinci_emac: Fix printing of base address 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index abceea802ea1..be0fec17d95d 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c @@ -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);