diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-12-18 21:37:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:15 -0500 |
commit | 978785a3892b34448446e8c8a17f48454f1bdd6a (patch) | |
tree | 76d50b34bc166d9400c99335c533a4681ff8887a /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | 146846aed534aa0eb1fb0a8e6c0394190e5c1ad7 (diff) |
iwlwifi: clean up printing
Use IWL_ macros where possible to unify debug output usage.
Define new unconditional printouts IWL_ERR, IWL_WARN, IWL_INFO,
and IWL_CRIT which don't use hidden priv pointer.
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index b0ee86c62685..13aad392b1b5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -802,7 +802,7 @@ static void iwl_tx_cmd_build_hwcrypto(struct iwl_priv *priv, | |||
802 | break; | 802 | break; |
803 | 803 | ||
804 | default: | 804 | default: |
805 | printk(KERN_ERR "Unknown encode alg %d\n", keyconf->alg); | 805 | IWL_ERR(priv, "Unknown encode alg %d\n", keyconf->alg); |
806 | break; | 806 | break; |
807 | } | 807 | } |
808 | } | 808 | } |
@@ -1334,7 +1334,7 @@ int iwl_tx_agg_start(struct iwl_priv *priv, const u8 *ra, u16 tid, u16 *ssn) | |||
1334 | return ret; | 1334 | return ret; |
1335 | 1335 | ||
1336 | if (tid_data->tfds_in_queue == 0) { | 1336 | if (tid_data->tfds_in_queue == 0) { |
1337 | printk(KERN_ERR "HW queue is empty\n"); | 1337 | IWL_ERR(priv, "HW queue is empty\n"); |
1338 | tid_data->agg.state = IWL_AGG_ON; | 1338 | tid_data->agg.state = IWL_AGG_ON; |
1339 | ieee80211_start_tx_ba_cb_irqsafe(priv->hw, ra, tid); | 1339 | ieee80211_start_tx_ba_cb_irqsafe(priv->hw, ra, tid); |
1340 | } else { | 1340 | } else { |