Skip to content

Commit

Permalink
iwlwifi: fix prints in iwl_rx_handle
Browse files Browse the repository at this point in the history
The debug prints were wrong and buggy. The HW pointer wasn't printed
correctly, it was mixed up with the pointer to the rxbuf.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Wey-Yi W Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Emmanuel Grumbach authored and John W. Linville committed Jun 5, 2012
1 parent ccf91bd commit 726f23f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static void iwl_rx_handle(struct iwl_trans *trans)

/* Rx interrupt, but nothing sent from uCode */
if (i == r)
IWL_DEBUG_RX(trans, "r = %d, i = %d\n", r, i);
IWL_DEBUG_RX(trans, "HW = SW = %d\n", r);

/* calculate total frames need to be restock after handling RX */
total_empty = r - rxq->write_actual;
Expand All @@ -513,8 +513,8 @@ static void iwl_rx_handle(struct iwl_trans *trans)
rxb = rxq->queue[i];
rxq->queue[i] = NULL;

IWL_DEBUG_RX(trans, "rxbuf: r = %d, i = %d (%p)\n", rxb);

IWL_DEBUG_RX(trans, "rxbuf: HW = %d, SW = %d (%p)\n",
r, i, rxb);
iwl_rx_handle_rxbuf(trans, rxb);

i = (i + 1) & RX_QUEUE_MASK;
Expand Down

0 comments on commit 726f23f

Please sign in to comment.