iwlwifi: debug print in tx_queue_set_status is more clear
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 19 Jan 2012 06:27:03 +0000 (08:27 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 2 Feb 2012 22:37:58 +0000 (14:37 -0800)
The message was misleading when a queue is deactivated. The fifo
number is irrelevant then, so don't print it.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c

index 5e095ac5076901fac3a3c63139afe579c94d0588..08e0a7da48a93466481bfd314b98adfcc810dded 100644 (file)
@@ -431,9 +431,12 @@ void iwl_trans_tx_queue_set_status(struct iwl_trans *trans,
 
        txq->sched_retry = scd_retry;
 
-       IWL_DEBUG_TX_QUEUES(trans, "%s %s Queue %d on FIFO %d\n",
-                      active ? "Activate" : "Deactivate",
-                      scd_retry ? "BA" : "AC/CMD", txq_id, tx_fifo_id);
+       if (active)
+               IWL_DEBUG_TX_QUEUES(trans, "Activate %s Queue %d on FIFO %d\n",
+                       scd_retry ? "BA" : "AC/CMD", txq_id, tx_fifo_id);
+       else
+               IWL_DEBUG_TX_QUEUES(trans, "Deactivate %s Queue %d\n",
+                       scd_retry ? "BA" : "AC/CMD", txq_id);
 }
 
 static inline int get_fifo_from_tid(struct iwl_trans_pcie *trans_pcie,
This page took 0.044153 seconds and 5 git commands to generate.