staging/rtl8188eu: Use %pM format specifier to print mac address
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Thu, 27 Aug 2015 13:08:15 +0000 (19:08 +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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

index 935b48eef8b1f84a6cf57792985c216277eeb0fc..5dae7de03327fed0c328b01379db7b69d891c976 100644 (file)
@@ -5384,9 +5384,8 @@ u8 set_stakey_hdl(struct adapter *padapter, u8 *pbuf)
 
                        cam_id = psta->mac_id + 3;/* 0~3 for default key, cmd_id = macid + 3, macid = aid+1; */
 
-                       DBG_88E("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_88E("Write CAM, mac_addr =%pM, cam_entry=%d\n",
+                               pparm->addr, cam_id);
 
                        write_cam(padapter, cam_id, ctrl, pparm->addr, pparm->key);