Commit 0ce53f3d authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

staging: rtl8712: use '%pM' format to print MAC address

Signed-off-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ff5cb20b
...@@ -251,9 +251,6 @@ static inline u32 _RND512(u32 sz) ...@@ -251,9 +251,6 @@ static inline u32 _RND512(u32 sz)
return val; return val;
} }
#define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
#define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
#define STRUCT_PACKED __attribute__ ((packed)) #define STRUCT_PACKED __attribute__ ((packed))
#endif #endif
......
...@@ -1917,8 +1917,7 @@ static int r871x_get_ap_info(struct net_device *dev, ...@@ -1917,8 +1917,7 @@ static int r871x_get_ap_info(struct net_device *dev,
irqL); irqL);
return -EINVAL; return -EINVAL;
} }
printk(KERN_INFO "r8712u: BSSID:" MACSTR "\n", printk(KERN_INFO "r8712u: BSSID:%pM\n", &bssid[0]);
MAC2STR(bssid));
if (!memcmp(bssid, pnetwork->network.MacAddress, ETH_ALEN)) { if (!memcmp(bssid, pnetwork->network.MacAddress, ETH_ALEN)) {
/* BSSID match, then check if supporting wpa/wpa2 */ /* BSSID match, then check if supporting wpa/wpa2 */
pbuf = r8712_get_wpa_ie(&pnetwork->network.IEs[12], pbuf = r8712_get_wpa_ie(&pnetwork->network.IEs[12],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment