diff options
author | Zhu Yi <yi.zhu@intel.com> | 2007-09-26 23:27:39 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:24 -0400 |
commit | 588263515fecd926ea82950e5b7752b8696b595c (patch) | |
tree | 5702516260eb9b00f49acb8e31f312ad83721332 | |
parent | 5ae212c9273deb417bcc458d1dfb54ef880e5516 (diff) |
[PATCH] iwlwifi: limit printouts on hot path
This patch change printouts on TX path to the net_ratelimit version.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index e3a0ccaf71fe..b9d7ad8b70e5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -622,7 +622,7 @@ static void rs_tx_status(void *priv_rate, | |||
622 | u16 fc = le16_to_cpu(hdr->frame_control); | 622 | u16 fc = le16_to_cpu(hdr->frame_control); |
623 | s32 tpt = 0; | 623 | s32 tpt = 0; |
624 | 624 | ||
625 | IWL_DEBUG_RATE("get frame ack response, update rate scale window\n"); | 625 | IWL_DEBUG_RATE_LIMIT("get frame ack response, update rate scale window\n"); |
626 | 626 | ||
627 | if (!ieee80211_is_data(fc) || is_multicast_ether_addr(hdr->addr1)) | 627 | if (!ieee80211_is_data(fc) || is_multicast_ether_addr(hdr->addr1)) |
628 | return; | 628 | return; |
@@ -1717,7 +1717,7 @@ static struct ieee80211_rate *rs_get_rate(void *priv_rate, | |||
1717 | struct iwl_priv *priv = (struct iwl_priv *)priv_rate; | 1717 | struct iwl_priv *priv = (struct iwl_priv *)priv_rate; |
1718 | struct iwl_rate_scale_priv *lq; | 1718 | struct iwl_rate_scale_priv *lq; |
1719 | 1719 | ||
1720 | IWL_DEBUG_RATE("rate scale calculate new rate for skb\n"); | 1720 | IWL_DEBUG_RATE_LIMIT("rate scale calculate new rate for skb\n"); |
1721 | 1721 | ||
1722 | memset(extra, 0, sizeof(*extra)); | 1722 | memset(extra, 0, sizeof(*extra)); |
1723 | 1723 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index b704fe7fca27..b41addf2056a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -184,7 +184,7 @@ u8 iwl_hw_find_station(struct iwl_priv *priv, const u8 *addr) | |||
184 | goto out; | 184 | goto out; |
185 | } | 185 | } |
186 | 186 | ||
187 | IWL_DEBUG_ASSOC("can not find STA %s total %d\n", | 187 | IWL_DEBUG_ASSOC_LIMIT("can not find STA " MAC_FMT " total %d\n", |
188 | print_mac(mac, addr), priv->num_stations); | 188 | print_mac(mac, addr), priv->num_stations); |
189 | 189 | ||
190 | out: | 190 | out: |
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index abd344c549aa..72318d78957e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h | |||
@@ -136,8 +136,11 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...) | |||
136 | #define IWL_DEBUG_TXPOWER(f, a...) IWL_DEBUG(IWL_DL_TXPOWER, f, ## a) | 136 | #define IWL_DEBUG_TXPOWER(f, a...) IWL_DEBUG(IWL_DL_TXPOWER, f, ## a) |
137 | #define IWL_DEBUG_IO(f, a...) IWL_DEBUG(IWL_DL_IO, f, ## a) | 137 | #define IWL_DEBUG_IO(f, a...) IWL_DEBUG(IWL_DL_IO, f, ## a) |
138 | #define IWL_DEBUG_RATE(f, a...) IWL_DEBUG(IWL_DL_RATE, f, ## a) | 138 | #define IWL_DEBUG_RATE(f, a...) IWL_DEBUG(IWL_DL_RATE, f, ## a) |
139 | #define IWL_DEBUG_RATE_LIMIT(f, a...) IWL_DEBUG_LIMIT(IWL_DL_RATE, f, ## a) | ||
139 | #define IWL_DEBUG_NOTIF(f, a...) IWL_DEBUG(IWL_DL_NOTIF, f, ## a) | 140 | #define IWL_DEBUG_NOTIF(f, a...) IWL_DEBUG(IWL_DL_NOTIF, f, ## a) |
140 | #define IWL_DEBUG_ASSOC(f, a...) IWL_DEBUG(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) | 141 | #define IWL_DEBUG_ASSOC(f, a...) IWL_DEBUG(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) |
142 | #define IWL_DEBUG_ASSOC_LIMIT(f, a...) \ | ||
143 | IWL_DEBUG_LIMIT(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) | ||
141 | #define IWL_DEBUG_HT(f, a...) IWL_DEBUG(IWL_DL_HT, f, ## a) | 144 | #define IWL_DEBUG_HT(f, a...) IWL_DEBUG(IWL_DL_HT, f, ## a) |
142 | #define IWL_DEBUG_STATS(f, a...) IWL_DEBUG(IWL_DL_STATS, f, ## a) | 145 | #define IWL_DEBUG_STATS(f, a...) IWL_DEBUG(IWL_DL_STATS, f, ## a) |
143 | #define IWL_DEBUG_TX_REPLY(f, a...) IWL_DEBUG(IWL_DL_TX_REPLY, f, ## a) | 146 | #define IWL_DEBUG_TX_REPLY(f, a...) IWL_DEBUG(IWL_DL_TX_REPLY, f, ## a) |