[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
@ -66,7 +66,8 @@ static ssize_t ieee80211_if_fmt_##name( \
|
||||
const struct ieee80211_sub_if_data *sdata, char *buf, \
|
||||
int buflen) \
|
||||
{ \
|
||||
return scnprintf(buf, buflen, MAC_FMT "\n", MAC_ARG(sdata->field));\
|
||||
DECLARE_MAC_BUF(mac); \
|
||||
return scnprintf(buf, buflen, "%s\n", print_mac(mac, sdata->field));\
|
||||
}
|
||||
|
||||
#define __IEEE80211_IF_FILE(name) \
|
||||
|
Reference in New Issue
Block a user