[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>
This commit is contained in:

committed by
David S. Miller

parent
95ea36275f
commit
0795af5729
@@ -203,15 +203,15 @@ STA_OPS(wme_tx_queue);
|
||||
|
||||
void ieee80211_sta_debugfs_add(struct sta_info *sta)
|
||||
{
|
||||
char buf[3*6];
|
||||
struct dentry *stations_dir = sta->local->debugfs.stations;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (!stations_dir)
|
||||
return;
|
||||
|
||||
sprintf(buf, MAC_FMT, MAC_ARG(sta->addr));
|
||||
print_mac(mac, sta->addr);
|
||||
|
||||
sta->debugfs.dir = debugfs_create_dir(buf, stations_dir);
|
||||
sta->debugfs.dir = debugfs_create_dir(mac, stations_dir);
|
||||
if (!sta->debugfs.dir)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user