Skip to content

Commit 6cd9b49

Browse files
bigguinessdavem330
authored andcommitted
Subject: drivers/net/sh_eth.c: use %pM to shown MAC address
Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 30a6ae8 commit 6cd9b49

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

drivers/net/sh_eth.c

+3-7
Original file line numberDiff line numberDiff line change
@@ -1473,13 +1473,9 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
14731473
if (ret)
14741474
goto out_unregister;
14751475

1476-
/* pritnt device infomation */
1477-
pr_info("Base address at 0x%x, ",
1478-
(u32)ndev->base_addr);
1479-
1480-
for (i = 0; i < 5; i++)
1481-
printk("%02X:", ndev->dev_addr[i]);
1482-
printk("%02X, IRQ %d.\n", ndev->dev_addr[i], ndev->irq);
1476+
/* print device infomation */
1477+
pr_info("Base address at 0x%x, %pM, IRQ %d.\n",
1478+
(u32)ndev->base_addr, ndev->dev_addr, ndev->irq);
14831479

14841480
platform_set_drvdata(pdev, ndev);
14851481

0 commit comments

Comments
 (0)