mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
net: via: via-rhine: use %p to format void * address instead of %x
Don't use %x and casting to print out an address, instead use %p and remove the casting. Cleans up smatch warnings: drivers/net/ethernet/via/via-rhine.c:998 rhine_init_one_common() warn: argument 4 to %lx specifier is cast from pointer Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
15bfe05c8d
commit
a7e4fbbfdf
1 changed files with 2 additions and 2 deletions
|
@ -995,8 +995,8 @@ static int rhine_init_one_common(struct device *hwdev, u32 quirks,
|
||||||
else
|
else
|
||||||
name = "Rhine III";
|
name = "Rhine III";
|
||||||
|
|
||||||
netdev_info(dev, "VIA %s at 0x%lx, %pM, IRQ %d\n",
|
netdev_info(dev, "VIA %s at %p, %pM, IRQ %d\n",
|
||||||
name, (long)ioaddr, dev->dev_addr, rp->irq);
|
name, ioaddr, dev->dev_addr, rp->irq);
|
||||||
|
|
||||||
dev_set_drvdata(hwdev, dev);
|
dev_set_drvdata(hwdev, dev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue