wireless: rtlwifi: throw away MAC_FMT and use %pM instead
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Jul 2011 13:34:29 +0000 (16:34 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jul 2011 19:04:38 +0000 (15:04 -0400)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/base.c
drivers/net/wireless/rtlwifi/cam.c
drivers/net/wireless/rtlwifi/core.c
drivers/net/wireless/rtlwifi/debug.h
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
drivers/net/wireless/rtlwifi/rtl8192de/hw.c
drivers/net/wireless/rtlwifi/rtl8192se/hw.c

index bc13533a54181464a7ac15fb3f37d97e81e41407..5f46efd6ec68ac2dd32d4f3f6e4e61b572511df4 100644 (file)
@@ -756,18 +756,17 @@ bool rtl_action_proc(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
                                return false;
 
                        RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG,
-                                ("%s ACT_ADDBAREQ From :" MAC_FMT "\n",
-                                 is_tx ? "Tx" : "Rx", MAC_ARG(hdr->addr2)));
+                                ("%s ACT_ADDBAREQ From :%pM\n",
+                                 is_tx ? "Tx" : "Rx", hdr->addr2));
                        break;
                case ACT_ADDBARSP:
                        RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG,
-                                ("%s ACT_ADDBARSP From :" MAC_FMT "\n",
-                                 is_tx ? "Tx" : "Rx", MAC_ARG(hdr->addr2)));
+                                ("%s ACT_ADDBARSP From :%pM\n",
+                                 is_tx ? "Tx" : "Rx", hdr->addr2));
                        break;
                case ACT_DELBA:
                        RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG,
-                                ("ACT_ADDBADEL From :" MAC_FMT "\n",
-                                 MAC_ARG(hdr->addr2)));
+                                ("ACT_ADDBADEL From :%pM\n", hdr->addr2));
                        break;
                }
                break;
index 7295af0536b716553458902f3ef60d8832bd3faa..66588c239eb8bd2825894f42b6fd101835257468 100644 (file)
@@ -131,9 +131,9 @@ u8 rtl_cam_add_one_entry(struct ieee80211_hw *hw, u8 *mac_addr,
 
        RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG,
                 ("EntryNo:%x, ulKeyId=%x, ulEncAlg=%x, "
-                 "ulUseDK=%x MacAddr" MAC_FMT "\n",
+                 "ulUseDK=%x MacAddr %pM\n",
                  ul_entry_idx, ul_key_id, ul_enc_alg,
-                 ul_default_key, MAC_ARG(mac_addr)));
+                 ul_default_key, mac_addr));
 
        if (ul_key_id == TOTAL_CAM_ENTRY) {
                RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING,
index 03ce69660b261414270966edd094338b50298019..1bdc1aa305c0ea1c48e371da14a31cd9b95a86ed 100644 (file)
@@ -456,7 +456,7 @@ static int rtl_op_sta_add(struct ieee80211_hw *hw,
                        sta_entry->wireless_mode = WIRELESS_MODE_G;
 
                RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG,
-                       ("Add sta addr is "MAC_FMT"\n", MAC_ARG(sta->addr)));
+                       ("Add sta addr is %pM\n", sta->addr));
                rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0);
        }
        return 0;
@@ -469,7 +469,7 @@ static int rtl_op_sta_remove(struct ieee80211_hw *hw,
        struct rtl_sta_info *sta_entry;
        if (sta) {
                RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG,
-                       ("Remove sta addr is "MAC_FMT"\n", MAC_ARG(sta->addr)));
+                       ("Remove sta addr is %pM\n", sta->addr));
                sta_entry = (struct rtl_sta_info *) sta->drv_priv;
                sta_entry->wireless_mode = 0;
                sta_entry->ratr_index = 0;
@@ -678,7 +678,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
                                              (u8 *) bss_conf->bssid);
 
                RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG,
-                        (MAC_FMT "\n", MAC_ARG(bss_conf->bssid)));
+                        ("%pM\n", bss_conf->bssid));
 
                mac->vendor = PEER_UNKNOWN;
                memcpy(mac->bssid, bss_conf->bssid, 6);
index e4aa8687408cfd5b4ca45c9c629e5c63d555a921..160dd06852136d2a8616b115fdb426c93b093fa2 100644 (file)
@@ -204,10 +204,5 @@ enum dbgp_flag_e {
                } \
        } while (0);
 
-#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
-#define MAC_ARG(x) \
-       ((u8 *)(x))[0], ((u8 *)(x))[1], ((u8 *)(x))[2],\
-       ((u8 *)(x))[3], ((u8 *)(x))[4], ((u8 *)(x))[5]
-
 void rtl_dbgp_flag_init(struct ieee80211_hw *hw);
 #endif
index 9e2a9e34a69996ca08ce0a72921495b7151504ad..a3deaefa788c1c30f630f57bdb12c6d09007d46d 100644 (file)
@@ -1592,7 +1592,7 @@ static void _rtl92ce_read_adapter_info(struct ieee80211_hw *hw)
        }
 
        RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
-                (MAC_FMT "\n", MAC_ARG(rtlefuse->dev_addr)));
+                ("%pM\n", rtlefuse->dev_addr));
 
        _rtl92ce_read_txpower_info_from_hwpg(hw,
                                             rtlefuse->autoload_failflag,
index 5a65bea4cb8f9ecb4a67e9e52c13cb6350a46b2f..0073cf106af269c92ed36484c1b9234444beb480 100644 (file)
@@ -1829,7 +1829,7 @@ static void _rtl92de_read_adapter_info(struct ieee80211_hw *hw)
        rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR,
                                      rtlefuse->dev_addr);
        RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
-                (MAC_FMT "\n", MAC_ARG(rtlefuse->dev_addr)));
+                ("%pM\n", rtlefuse->dev_addr));
        _rtl92de_read_txpower_info(hw, rtlefuse->autoload_failflag, hwinfo);
 
        /* Read Channel Plan */
index b1d0213dc60e6f3063cb38af148ea991a6ba6704..fe2b0b9d9145f8117b209255a26da18325f655ca 100644 (file)
@@ -1682,7 +1682,7 @@ static void _rtl92se_read_adapter_info(struct ieee80211_hw *hw)
                rtl_write_byte(rtlpriv, MACIDR0 + i, rtlefuse->dev_addr[i]);
 
        RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
-                (MAC_FMT "\n", MAC_ARG(rtlefuse->dev_addr)));
+                ("%pM\n", rtlefuse->dev_addr));
 
        /* Get Tx Power Level by Channel */
        /* Read Tx power of Channel 1 ~ 14 from EEPROM. */