diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-07-20 09:34:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-20 15:04:38 -0400 |
commit | 1d15b5f2d380186761d49588de27b2a6538afacb (patch) | |
tree | 79df19259d6f2e54e84bd772ad5bb483f986b763 /drivers/net/wireless | |
parent | a401d2bb363d942245acdd81c5b5a754011696ee (diff) |
wireless: rtlwifi: throw away MAC_FMT and use %pM instead
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rtlwifi/base.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/cam.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/core.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/debug.h | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/hw.c | 2 |
7 files changed, 13 insertions, 19 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c index bc13533a5418..5f46efd6ec68 100644 --- a/drivers/net/wireless/rtlwifi/base.c +++ b/drivers/net/wireless/rtlwifi/base.c | |||
@@ -756,18 +756,17 @@ bool rtl_action_proc(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx) | |||
756 | return false; | 756 | return false; |
757 | 757 | ||
758 | RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, | 758 | RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, |
759 | ("%s ACT_ADDBAREQ From :" MAC_FMT "\n", | 759 | ("%s ACT_ADDBAREQ From :%pM\n", |
760 | is_tx ? "Tx" : "Rx", MAC_ARG(hdr->addr2))); | 760 | is_tx ? "Tx" : "Rx", hdr->addr2)); |
761 | break; | 761 | break; |
762 | case ACT_ADDBARSP: | 762 | case ACT_ADDBARSP: |
763 | RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, | 763 | RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, |
764 | ("%s ACT_ADDBARSP From :" MAC_FMT "\n", | 764 | ("%s ACT_ADDBARSP From :%pM\n", |
765 | is_tx ? "Tx" : "Rx", MAC_ARG(hdr->addr2))); | 765 | is_tx ? "Tx" : "Rx", hdr->addr2)); |
766 | break; | 766 | break; |
767 | case ACT_DELBA: | 767 | case ACT_DELBA: |
768 | RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, | 768 | RT_TRACE(rtlpriv, (COMP_SEND | COMP_RECV), DBG_DMESG, |
769 | ("ACT_ADDBADEL From :" MAC_FMT "\n", | 769 | ("ACT_ADDBADEL From :%pM\n", hdr->addr2)); |
770 | MAC_ARG(hdr->addr2))); | ||
771 | break; | 770 | break; |
772 | } | 771 | } |
773 | break; | 772 | break; |
diff --git a/drivers/net/wireless/rtlwifi/cam.c b/drivers/net/wireless/rtlwifi/cam.c index 7295af0536b7..66588c239eb8 100644 --- a/drivers/net/wireless/rtlwifi/cam.c +++ b/drivers/net/wireless/rtlwifi/cam.c | |||
@@ -131,9 +131,9 @@ u8 rtl_cam_add_one_entry(struct ieee80211_hw *hw, u8 *mac_addr, | |||
131 | 131 | ||
132 | RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, | 132 | RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, |
133 | ("EntryNo:%x, ulKeyId=%x, ulEncAlg=%x, " | 133 | ("EntryNo:%x, ulKeyId=%x, ulEncAlg=%x, " |
134 | "ulUseDK=%x MacAddr" MAC_FMT "\n", | 134 | "ulUseDK=%x MacAddr %pM\n", |
135 | ul_entry_idx, ul_key_id, ul_enc_alg, | 135 | ul_entry_idx, ul_key_id, ul_enc_alg, |
136 | ul_default_key, MAC_ARG(mac_addr))); | 136 | ul_default_key, mac_addr)); |
137 | 137 | ||
138 | if (ul_key_id == TOTAL_CAM_ENTRY) { | 138 | if (ul_key_id == TOTAL_CAM_ENTRY) { |
139 | RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, | 139 | RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, |
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index 03ce69660b26..1bdc1aa305c0 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c | |||
@@ -456,7 +456,7 @@ static int rtl_op_sta_add(struct ieee80211_hw *hw, | |||
456 | sta_entry->wireless_mode = WIRELESS_MODE_G; | 456 | sta_entry->wireless_mode = WIRELESS_MODE_G; |
457 | 457 | ||
458 | RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG, | 458 | RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG, |
459 | ("Add sta addr is "MAC_FMT"\n", MAC_ARG(sta->addr))); | 459 | ("Add sta addr is %pM\n", sta->addr)); |
460 | rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0); | 460 | rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0); |
461 | } | 461 | } |
462 | return 0; | 462 | return 0; |
@@ -469,7 +469,7 @@ static int rtl_op_sta_remove(struct ieee80211_hw *hw, | |||
469 | struct rtl_sta_info *sta_entry; | 469 | struct rtl_sta_info *sta_entry; |
470 | if (sta) { | 470 | if (sta) { |
471 | RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG, | 471 | RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG, |
472 | ("Remove sta addr is "MAC_FMT"\n", MAC_ARG(sta->addr))); | 472 | ("Remove sta addr is %pM\n", sta->addr)); |
473 | sta_entry = (struct rtl_sta_info *) sta->drv_priv; | 473 | sta_entry = (struct rtl_sta_info *) sta->drv_priv; |
474 | sta_entry->wireless_mode = 0; | 474 | sta_entry->wireless_mode = 0; |
475 | sta_entry->ratr_index = 0; | 475 | sta_entry->ratr_index = 0; |
@@ -678,7 +678,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, | |||
678 | (u8 *) bss_conf->bssid); | 678 | (u8 *) bss_conf->bssid); |
679 | 679 | ||
680 | RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG, | 680 | RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG, |
681 | (MAC_FMT "\n", MAC_ARG(bss_conf->bssid))); | 681 | ("%pM\n", bss_conf->bssid)); |
682 | 682 | ||
683 | mac->vendor = PEER_UNKNOWN; | 683 | mac->vendor = PEER_UNKNOWN; |
684 | memcpy(mac->bssid, bss_conf->bssid, 6); | 684 | memcpy(mac->bssid, bss_conf->bssid, 6); |
diff --git a/drivers/net/wireless/rtlwifi/debug.h b/drivers/net/wireless/rtlwifi/debug.h index e4aa8687408c..160dd0685213 100644 --- a/drivers/net/wireless/rtlwifi/debug.h +++ b/drivers/net/wireless/rtlwifi/debug.h | |||
@@ -204,10 +204,5 @@ enum dbgp_flag_e { | |||
204 | } \ | 204 | } \ |
205 | } while (0); | 205 | } while (0); |
206 | 206 | ||
207 | #define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x" | ||
208 | #define MAC_ARG(x) \ | ||
209 | ((u8 *)(x))[0], ((u8 *)(x))[1], ((u8 *)(x))[2],\ | ||
210 | ((u8 *)(x))[3], ((u8 *)(x))[4], ((u8 *)(x))[5] | ||
211 | |||
212 | void rtl_dbgp_flag_init(struct ieee80211_hw *hw); | 207 | void rtl_dbgp_flag_init(struct ieee80211_hw *hw); |
213 | #endif | 208 | #endif |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c b/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c index 9e2a9e34a699..a3deaefa788c 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c | |||
@@ -1592,7 +1592,7 @@ static void _rtl92ce_read_adapter_info(struct ieee80211_hw *hw) | |||
1592 | } | 1592 | } |
1593 | 1593 | ||
1594 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, | 1594 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, |
1595 | (MAC_FMT "\n", MAC_ARG(rtlefuse->dev_addr))); | 1595 | ("%pM\n", rtlefuse->dev_addr)); |
1596 | 1596 | ||
1597 | _rtl92ce_read_txpower_info_from_hwpg(hw, | 1597 | _rtl92ce_read_txpower_info_from_hwpg(hw, |
1598 | rtlefuse->autoload_failflag, | 1598 | rtlefuse->autoload_failflag, |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c index 5a65bea4cb8f..0073cf106af2 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c | |||
@@ -1829,7 +1829,7 @@ static void _rtl92de_read_adapter_info(struct ieee80211_hw *hw) | |||
1829 | rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, | 1829 | rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, |
1830 | rtlefuse->dev_addr); | 1830 | rtlefuse->dev_addr); |
1831 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, | 1831 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, |
1832 | (MAC_FMT "\n", MAC_ARG(rtlefuse->dev_addr))); | 1832 | ("%pM\n", rtlefuse->dev_addr)); |
1833 | _rtl92de_read_txpower_info(hw, rtlefuse->autoload_failflag, hwinfo); | 1833 | _rtl92de_read_txpower_info(hw, rtlefuse->autoload_failflag, hwinfo); |
1834 | 1834 | ||
1835 | /* Read Channel Plan */ | 1835 | /* Read Channel Plan */ |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c index b1d0213dc60e..fe2b0b9d9145 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c | |||
@@ -1682,7 +1682,7 @@ static void _rtl92se_read_adapter_info(struct ieee80211_hw *hw) | |||
1682 | rtl_write_byte(rtlpriv, MACIDR0 + i, rtlefuse->dev_addr[i]); | 1682 | rtl_write_byte(rtlpriv, MACIDR0 + i, rtlefuse->dev_addr[i]); |
1683 | 1683 | ||
1684 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, | 1684 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, |
1685 | (MAC_FMT "\n", MAC_ARG(rtlefuse->dev_addr))); | 1685 | ("%pM\n", rtlefuse->dev_addr)); |
1686 | 1686 | ||
1687 | /* Get Tx Power Level by Channel */ | 1687 | /* Get Tx Power Level by Channel */ |
1688 | /* Read Tx power of Channel 1 ~ 14 from EEPROM. */ | 1688 | /* Read Tx power of Channel 1 ~ 14 from EEPROM. */ |