[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
@@ -262,11 +262,12 @@ void ieee80211_debugfs_key_sta_link(struct ieee80211_key *key,
|
||||
struct sta_info *sta)
|
||||
{
|
||||
char buf[50];
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (!key->debugfs.dir)
|
||||
return;
|
||||
|
||||
sprintf(buf, "../../stations/" MAC_FMT, MAC_ARG(sta->addr));
|
||||
sprintf(buf, "../../stations/%s", print_mac(mac, sta->addr));
|
||||
key->debugfs.stalink =
|
||||
debugfs_create_symlink("station", key->debugfs.dir, buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user