aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge
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/myri10ge
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/myri10ge')
-rw-r--r--drivers/net/myri10ge/myri10ge.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 2f8864e70ca9..38b03f538e95 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -2395,6 +2395,7 @@ static void myri10ge_set_multicast_list(struct net_device *dev)
2395 struct dev_mc_list *mc_list; 2395 struct dev_mc_list *mc_list;
2396 __be32 data[2] = { 0, 0 }; 2396 __be32 data[2] = { 0, 0 };
2397 int err; 2397 int err;
2398 DECLARE_MAC_BUF(mac);
2398 2399
2399 mgp = netdev_priv(dev); 2400 mgp = netdev_priv(dev);
2400 /* can be called from atomic contexts, 2401 /* can be called from atomic contexts,
@@ -2442,14 +2443,8 @@ static void myri10ge_set_multicast_list(struct net_device *dev)
2442 printk(KERN_ERR "myri10ge: %s: Failed " 2443 printk(KERN_ERR "myri10ge: %s: Failed "
2443 "MXGEFW_JOIN_MULTICAST_GROUP, error status:" 2444 "MXGEFW_JOIN_MULTICAST_GROUP, error status:"
2444 "%d\t", dev->name, err); 2445 "%d\t", dev->name, err);
2445 printk(KERN_ERR "MAC %02x:%02x:%02x:%02x:%02x:%02x\n", 2446 printk(KERN_ERR "MAC %s\n",
2446 ((unsigned char *)&mc_list->dmi_addr)[0], 2447 print_mac(mac, mc_list->dmi_addr));
2447 ((unsigned char *)&mc_list->dmi_addr)[1],
2448 ((unsigned char *)&mc_list->dmi_addr)[2],
2449 ((unsigned char *)&mc_list->dmi_addr)[3],
2450 ((unsigned char *)&mc_list->dmi_addr)[4],
2451 ((unsigned char *)&mc_list->dmi_addr)[5]
2452 );
2453 goto abort; 2448 goto abort;
2454 } 2449 }
2455 } 2450 }