Commit 6cd9b49d authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by David S. Miller

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30a6ae8d
...@@ -1473,13 +1473,9 @@ static int sh_eth_drv_probe(struct platform_device *pdev) ...@@ -1473,13 +1473,9 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
if (ret) if (ret)
goto out_unregister; goto out_unregister;
/* pritnt device infomation */ /* print device infomation */
pr_info("Base address at 0x%x, ", pr_info("Base address at 0x%x, %pM, IRQ %d.\n",
(u32)ndev->base_addr); (u32)ndev->base_addr, ndev->dev_addr, ndev->irq);
for (i = 0; i < 5; i++)
printk("%02X:", ndev->dev_addr[i]);
printk("%02X, IRQ %d.\n", ndev->dev_addr[i], ndev->irq);
platform_set_drvdata(pdev, ndev); platform_set_drvdata(pdev, ndev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment