staging/rtl8723au: Use %pM format specifier to print mac address
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Thu, 27 Aug 2015 13:09:27 +0000 (19:09 +0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:30 +0000 (18:24 -0700)
printk() supports %pM format specifier for printing 6-byte MAC/FDDI
addresses in hex notation small buffers, let's use it intead of %x:%x...

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c

index be9a3d560a437ac2bb2c193c72e4d83ae3a5cf7c..fca22ba896b32d091f2ea053939160a64861299a 100644 (file)
@@ -5934,11 +5934,8 @@ int set_stakey_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
                           macid = aid+1; */
                        cam_id = psta->mac_id + 3;
 
-                       DBG_8723A("Write CAM, mac_addr =%x:%x:%x:%x:%x:%x, "
-                                 "cam_entry =%d\n", pparm->addr[0],
-                                 pparm->addr[1], pparm->addr[2],
-                                 pparm->addr[3], pparm->addr[4],
-                                 pparm->addr[5], cam_id);
+                       DBG_8723A("Write CAM, mac_addr =%pM, "
+                                 "cam_entry =%d\n", pparm->addr, cam_id);
 
                        rtl8723a_cam_write(padapter, cam_id, ctrl,
                                           pparm->addr, pparm->key);