diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-09-11 17:17:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-16 12:26:11 -0700 |
commit | 0ce53f3d153ca0bbec99e1980a6617f192ef69a9 (patch) | |
tree | 049f49d9985f6ea50c74676c8ce632a8c661afc7 /drivers/staging/rtl8712 | |
parent | ff5cb20b7b3a58122207e14f23f508d2e3b4b25d (diff) |
staging: rtl8712: use '%pM' format to print MAC address
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/osdep_service.h | 3 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h index 73509dad2107..7fca42c7c0d4 100644 --- a/drivers/staging/rtl8712/osdep_service.h +++ b/drivers/staging/rtl8712/osdep_service.h @@ -251,9 +251,6 @@ static inline u32 _RND512(u32 sz) 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)) #endif diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index eac049b12d53..a54e25dc3fc1 100644 --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c @@ -1917,8 +1917,7 @@ static int r871x_get_ap_info(struct net_device *dev, irqL); return -EINVAL; } - printk(KERN_INFO "r8712u: BSSID:" MACSTR "\n", - MAC2STR(bssid)); + printk(KERN_INFO "r8712u: BSSID:%pM\n", &bssid[0]); if (!memcmp(bssid, pnetwork->network.MacAddress, ETH_ALEN)) { /* BSSID match, then check if supporting wpa/wpa2 */ pbuf = r8712_get_wpa_ie(&pnetwork->network.IEs[12], |