aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-09-26 07:32:13 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-10-16 10:30:15 -0400
commit2a79e45eed79c9bf0ff4f93f57f6271d7d1bdb19 (patch)
tree0f5e11f538911291aa2af3e0dd90f84ff3d631db /drivers
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
iwlwifi: improve oversized command warning
When warning about a command that is too large, print out the command name/ID to help figure out which place is attempting to send a command that is too large. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/tx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c
index 105e3af3c621..b50d1b4a4fcf 100644
--- a/drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/iwlwifi/pcie/tx.c
@@ -549,7 +549,10 @@ static int iwl_enqueue_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd)
549 * allocated into separate TFDs, then we will need to 549 * allocated into separate TFDs, then we will need to
550 * increase the size of the buffers. 550 * increase the size of the buffers.
551 */ 551 */
552 if (WARN_ON(copy_size > TFD_MAX_PAYLOAD_SIZE)) 552 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE,
553 "Command %s (%#x) is too large (%d bytes)\n",
554 trans_pcie_get_cmd_string(trans_pcie, cmd->id),
555 cmd->id, copy_size))
553 return -EINVAL; 556 return -EINVAL;
554 557
555 spin_lock_bh(&txq->lock); 558 spin_lock_bh(&txq->lock);