Skip to content

Commit

Permalink
Subject: drivers/net/sh_eth.c: use %pM to shown MAC address
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bigguiness authored and davem330 committed Dec 30, 2009
1 parent 30a6ae8 commit 6cd9b49
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions drivers/net/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,13 +1473,9 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
if (ret)
goto out_unregister;

/* pritnt device infomation */
pr_info("Base address at 0x%x, ",
(u32)ndev->base_addr);

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

platform_set_drvdata(pdev, ndev);

Expand Down

0 comments on commit 6cd9b49

Please sign in to comment.