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/wireless/libertas/main.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/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index a54171af7b97..5ead08312e1e 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -677,6 +677,7 @@ static void libertas_set_multicast_list(struct net_device *dev) | |||
677 | wlan_private *priv = dev->priv; | 677 | wlan_private *priv = dev->priv; |
678 | wlan_adapter *adapter = priv->adapter; | 678 | wlan_adapter *adapter = priv->adapter; |
679 | int oldpacketfilter; | 679 | int oldpacketfilter; |
680 | DECLARE_MAC_BUF(mac); | ||
680 | 681 | ||
681 | lbs_deb_enter(LBS_DEB_NET); | 682 | lbs_deb_enter(LBS_DEB_NET); |
682 | 683 | ||
@@ -723,14 +724,9 @@ static void libertas_set_multicast_list(struct net_device *dev) | |||
723 | dev->mc_count); | 724 | dev->mc_count); |
724 | 725 | ||
725 | for (i = 0; i < dev->mc_count; i++) { | 726 | for (i = 0; i < dev->mc_count; i++) { |
726 | lbs_deb_net("Multicast address %d:" | 727 | lbs_deb_net("Multicast address %d:%s\n", |
727 | MAC_FMT "\n", i, | 728 | i, print_mac(mac, |
728 | adapter->multicastlist[i][0], | 729 | adapter->multicastlist[i])); |
729 | adapter->multicastlist[i][1], | ||
730 | adapter->multicastlist[i][2], | ||
731 | adapter->multicastlist[i][3], | ||
732 | adapter->multicastlist[i][4], | ||
733 | adapter->multicastlist[i][5]); | ||
734 | } | 730 | } |
735 | /* send multicast addresses to firmware */ | 731 | /* send multicast addresses to firmware */ |
736 | libertas_prepare_and_send_command(priv, | 732 | libertas_prepare_and_send_command(priv, |