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 /net/mac80211/ieee80211_ioctl.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 'net/mac80211/ieee80211_ioctl.c')
-rw-r--r-- | net/mac80211/ieee80211_ioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c index 51dca21f77c7..6ccdde82bded 100644 --- a/net/mac80211/ieee80211_ioctl.c +++ b/net/mac80211/ieee80211_ioctl.c | |||
@@ -98,9 +98,10 @@ static int ieee80211_set_encryption(struct net_device *dev, u8 *sta_addr, | |||
98 | sta = sta_info_get(local, sta_addr); | 98 | sta = sta_info_get(local, sta_addr); |
99 | if (!sta) { | 99 | if (!sta) { |
100 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 100 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
101 | DECLARE_MAC_BUF(mac); | ||
101 | printk(KERN_DEBUG "%s: set_encrypt - unknown addr " | 102 | printk(KERN_DEBUG "%s: set_encrypt - unknown addr " |
102 | MAC_FMT "\n", | 103 | "%s\n", |
103 | dev->name, MAC_ARG(sta_addr)); | 104 | dev->name, print_mac(mac, sta_addr)); |
104 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ | 105 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ |
105 | 106 | ||
106 | return -ENOENT; | 107 | return -ENOENT; |