aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-12-15 17:55:53 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-19 14:35:31 -0500
commitd2182b69dcb6a68b1ef6070b2efd094e13dea3f1 (patch)
tree92da8da22d48540d9f28b1e91ba0d1befbac5fe9 /drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
parenta85e1d55974646a442d95911e3f7d7a891ea9ac5 (diff)
ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO
Add ATH_DBG_ to macros to shorten the uses and reduce the line count. Coalesce ath_dbg formats. Add missing spaces to coalesced formats. Add missing newline terminations to ath_dbg formats. Align ath_dbg arguments where appropriate. Standardize ath_dbg formats without periods. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_txrx.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index 2d81c700e201..3e40a6461512 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
@@ -355,7 +355,7 @@ int ath9k_htc_tx_start(struct ath9k_htc_priv *priv,
355 vif_idx = avp->index; 355 vif_idx = avp->index;
356 } else { 356 } else {
357 if (!priv->ah->is_monitoring) { 357 if (!priv->ah->is_monitoring) {
358 ath_dbg(ath9k_hw_common(priv->ah), ATH_DBG_XMIT, 358 ath_dbg(ath9k_hw_common(priv->ah), XMIT,
359 "VIF is null, but no monitor interface !\n"); 359 "VIF is null, but no monitor interface !\n");
360 return -EINVAL; 360 return -EINVAL;
361 } 361 }
@@ -620,8 +620,7 @@ static struct sk_buff* ath9k_htc_tx_get_packet(struct ath9k_htc_priv *priv,
620 } 620 }
621 spin_unlock_irqrestore(&epid_queue->lock, flags); 621 spin_unlock_irqrestore(&epid_queue->lock, flags);
622 622
623 ath_dbg(common, ATH_DBG_XMIT, 623 ath_dbg(common, XMIT, "No matching packet for cookie: %d, epid: %d\n",
624 "No matching packet for cookie: %d, epid: %d\n",
625 txs->cookie, epid); 624 txs->cookie, epid);
626 625
627 return NULL; 626 return NULL;
@@ -705,8 +704,7 @@ static inline bool check_packet(struct ath9k_htc_priv *priv, struct sk_buff *skb
705 if (time_after(jiffies, 704 if (time_after(jiffies,
706 tx_ctl->timestamp + 705 tx_ctl->timestamp +
707 msecs_to_jiffies(ATH9K_HTC_TX_TIMEOUT_INTERVAL))) { 706 msecs_to_jiffies(ATH9K_HTC_TX_TIMEOUT_INTERVAL))) {
708 ath_dbg(common, ATH_DBG_XMIT, 707 ath_dbg(common, XMIT, "Dropping a packet due to TX timeout\n");
709 "Dropping a packet due to TX timeout\n");
710 return true; 708 return true;
711 } 709 }
712 710
@@ -753,7 +751,7 @@ void ath9k_htc_tx_cleanup_timer(unsigned long data)
753 751
754 skb = ath9k_htc_tx_get_packet(priv, &event->txs); 752 skb = ath9k_htc_tx_get_packet(priv, &event->txs);
755 if (skb) { 753 if (skb) {
756 ath_dbg(common, ATH_DBG_XMIT, 754 ath_dbg(common, XMIT,
757 "Found packet for cookie: %d, epid: %d\n", 755 "Found packet for cookie: %d, epid: %d\n",
758 event->txs.cookie, 756 event->txs.cookie,
759 MS(event->txs.ts_rate, ATH9K_HTC_TXSTAT_EPID)); 757 MS(event->txs.ts_rate, ATH9K_HTC_TXSTAT_EPID));
@@ -1167,8 +1165,7 @@ void ath9k_htc_rxep(void *drv_priv, struct sk_buff *skb,
1167 spin_unlock(&priv->rx.rxbuflock); 1165 spin_unlock(&priv->rx.rxbuflock);
1168 1166
1169 if (rxbuf == NULL) { 1167 if (rxbuf == NULL) {
1170 ath_dbg(common, ATH_DBG_ANY, 1168 ath_dbg(common, ANY, "No free RX buffer\n");
1171 "No free RX buffer\n");
1172 goto err; 1169 goto err;
1173 } 1170 }
1174 1171