]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: use '%pM' format to print MAC address
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sat, 11 Sep 2010 14:17:12 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Sep 2010 19:26:11 +0000 (12:26 -0700)
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6655/iwctl.c
drivers/staging/vt6655/vntwifi.c

index 4009c0b5bb272bc5e32c7a654eba213c037d0c0e..d74b7448b25bef71047201bb78c1d7a2add8fb3c 100644 (file)
@@ -2018,9 +2018,7 @@ param->u.wpa_key.seq_len = seq_len;
 
 #if 0
 printk("param->u.wpa_key.alg_name =%d\n",param->u.wpa_key.alg_name);
-printk("param->addr=%02x:%02x:%02x:%02x:%02x:%02x\n",
-             param->addr[0],param->addr[1],param->addr[2],
-             param->addr[3],param->addr[4],param->addr[5]);
+printk(KERN_DEBUG "param->addr=%pM\n", &param->addr[0]);
 printk("param->u.wpa_key.set_tx =%d\n",param->u.wpa_key.set_tx);
 printk("param->u.wpa_key.key_index =%d\n",param->u.wpa_key.key_index);
 printk("param->u.wpa_key.key_len =%d\n",param->u.wpa_key.key_len);
index fcf26ab920d0a5b7155130be5875c0c3cada54e4..db9cbe9dfa6ca087e66d7cad49216231f62fc809 100644 (file)
@@ -565,10 +565,9 @@ VNTWIFIvGetTxRate(
 
                wTxDataRate = (pMgmt->sNodeDBTable[0].wTxDataRate);
 #ifdef PLICE_DEBUG
-               printk("GetTxRate:AP MAC is %02x:%02x:%02x:%02x:%02x:%02x,TxRate is %d\n",
-                               pMgmt->sNodeDBTable[0].abyMACAddr[0],pMgmt->sNodeDBTable[0].abyMACAddr[1],
-                               pMgmt->sNodeDBTable[0].abyMACAddr[2],pMgmt->sNodeDBTable[0].abyMACAddr[3],
-                               pMgmt->sNodeDBTable[0].abyMACAddr[4],pMgmt->sNodeDBTable[0].abyMACAddr[5],wTxDataRate);
+               printk(KERN_DEBUG "GetTxRate:AP MAC is %pM,TxRate is %d\n",
+                               &pMgmt->sNodeDBTable[0].abyMACAddr[0],
+                               wTxDataRate);
 #endif