aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skge.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/skge.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/skge.c')
-rw-r--r--drivers/net/skge.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index cac499f84131..ec1acfddf350 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -3616,12 +3616,11 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port,
3616static void __devinit skge_show_addr(struct net_device *dev) 3616static void __devinit skge_show_addr(struct net_device *dev)
3617{ 3617{
3618 const struct skge_port *skge = netdev_priv(dev); 3618 const struct skge_port *skge = netdev_priv(dev);
3619 DECLARE_MAC_BUF(mac);
3619 3620
3620 if (netif_msg_probe(skge)) 3621 if (netif_msg_probe(skge))
3621 printk(KERN_INFO PFX "%s: addr %02x:%02x:%02x:%02x:%02x:%02x\n", 3622 printk(KERN_INFO PFX "%s: addr %s\n",
3622 dev->name, 3623 dev->name, print_mac(mac, dev->dev_addr));
3623 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
3624 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
3625} 3624}
3626 3625
3627static int __devinit skge_probe(struct pci_dev *pdev, 3626static int __devinit skge_probe(struct pci_dev *pdev,