diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-29 15:11:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-29 15:45:24 +0100 |
commit | a7e4fbbfdf7935333800bd801f6affc2515506f2 (patch) | |
tree | 91ab405510c0bcc79e0ad55e8fd902c347fa3acc /drivers/net/ethernet/via | |
parent | net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit (diff) | |
download | linux-a7e4fbbfdf7935333800bd801f6affc2515506f2.tar.xz linux-a7e4fbbfdf7935333800bd801f6affc2515506f2.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/via')
-rw-r--r-- | drivers/net/ethernet/via/via-rhine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 83e6f76eb965..33949248c829 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c @@ -995,8 +995,8 @@ static int rhine_init_one_common(struct device *hwdev, u32 quirks, else name = "Rhine III"; - netdev_info(dev, "VIA %s at 0x%lx, %pM, IRQ %d\n", - name, (long)ioaddr, dev->dev_addr, rp->irq); + netdev_info(dev, "VIA %s at %p, %pM, IRQ %d\n", + name, ioaddr, dev->dev_addr, rp->irq); dev_set_drvdata(hwdev, dev); |