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/debugfs_sta.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/debugfs_sta.c')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 2daaa802bbd0..f7c717c906dc 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -203,15 +203,15 @@ STA_OPS(wme_tx_queue); | |||
203 | 203 | ||
204 | void ieee80211_sta_debugfs_add(struct sta_info *sta) | 204 | void ieee80211_sta_debugfs_add(struct sta_info *sta) |
205 | { | 205 | { |
206 | char buf[3*6]; | ||
207 | struct dentry *stations_dir = sta->local->debugfs.stations; | 206 | struct dentry *stations_dir = sta->local->debugfs.stations; |
207 | DECLARE_MAC_BUF(mac); | ||
208 | 208 | ||
209 | if (!stations_dir) | 209 | if (!stations_dir) |
210 | return; | 210 | return; |
211 | 211 | ||
212 | sprintf(buf, MAC_FMT, MAC_ARG(sta->addr)); | 212 | print_mac(mac, sta->addr); |
213 | 213 | ||
214 | sta->debugfs.dir = debugfs_create_dir(buf, stations_dir); | 214 | sta->debugfs.dir = debugfs_create_dir(mac, stations_dir); |
215 | if (!sta->debugfs.dir) | 215 | if (!sta->debugfs.dir) |
216 | return; | 216 | return; |
217 | 217 | ||