diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/sky2.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index b8c15f881eba..a70bcbcf8a16 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -3984,12 +3984,11 @@ static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw, | |||
3984 | static void __devinit sky2_show_addr(struct net_device *dev) | 3984 | static void __devinit sky2_show_addr(struct net_device *dev) |
3985 | { | 3985 | { |
3986 | const struct sky2_port *sky2 = netdev_priv(dev); | 3986 | const struct sky2_port *sky2 = netdev_priv(dev); |
3987 | DECLARE_MAC_BUF(mac); | ||
3987 | 3988 | ||
3988 | if (netif_msg_probe(sky2)) | 3989 | if (netif_msg_probe(sky2)) |
3989 | printk(KERN_INFO PFX "%s: addr %02x:%02x:%02x:%02x:%02x:%02x\n", | 3990 | printk(KERN_INFO PFX "%s: addr %s\n", |
3990 | dev->name, | 3991 | dev->name, print_mac(mac, dev->dev_addr)); |
3991 | dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], | ||
3992 | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); | ||
3993 | } | 3992 | } |
3994 | 3993 | ||
3995 | /* Handle software interrupt used during MSI test */ | 3994 | /* Handle software interrupt used during MSI test */ |