staging: rtl8188eu: use %pM specifier instead of passing direct values
authorMike Krinkin <krinkin.m.u@gmail.com>
Sun, 8 Mar 2015 17:14:07 +0000 (20:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:04:24 +0000 (16:04 +0100)
The patch converts code to use %pM specifier instead of pushing
each byte via stack.

Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/usb_halinit.c

index 122e9b37aa79a297b541f294d4cebdca8dd65be5..7b01d5aa6b23e023f61c6f9fe74de93a4690405c 100644 (file)
@@ -1096,10 +1096,8 @@ static void Hal_EfuseParseMACAddr_8188EU(struct adapter *adapt, u8 *hwinfo, bool
                memcpy(eeprom->mac_addr, &hwinfo[EEPROM_MAC_ADDR_88EU], ETH_ALEN);
        }
        RT_TRACE(_module_hci_hal_init_c_, _drv_notice_,
-                ("Hal_EfuseParseMACAddr_8188EU: Permanent Address = %02x-%02x-%02x-%02x-%02x-%02x\n",
-                eeprom->mac_addr[0], eeprom->mac_addr[1],
-                eeprom->mac_addr[2], eeprom->mac_addr[3],
-                eeprom->mac_addr[4], eeprom->mac_addr[5]));
+                ("Hal_EfuseParseMACAddr_8188EU: Permanent Address = %pM\n",
+                eeprom->mac_addr));
 }
 
 static void