aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorEster Kummer <ester.kummer@intel.com>2008-05-05 23:05:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-14 16:29:47 -0400
commitf3d67999348776638644fd0035ee465261cc8c68 (patch)
treef4742e2dcceb5a33d4bc407d86868561c3176cc9 /drivers/net/wireless/iwlwifi/iwl4965-base.c
parent8cf769c6dcb7b83d380f20d2873ac20ec7a734b1 (diff)
iwlwifi: update levels of debug prints
This patch updates the levels of debug prints, leaving only one level in each debug print. It was anoying and caused unnecessary prints on hot path. Signed-off-by: Ester Kummer <ester.kummer@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 7902d90d58c0..901d9cf9ad78 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -2715,8 +2715,8 @@ static void iwl4965_rx_spectrum_measure_notif(struct iwl_priv *priv,
2715 struct iwl4965_spectrum_notification *report = &(pkt->u.spectrum_notif); 2715 struct iwl4965_spectrum_notification *report = &(pkt->u.spectrum_notif);
2716 2716
2717 if (!report->state) { 2717 if (!report->state) {
2718 IWL_DEBUG(IWL_DL_11H | IWL_DL_INFO, 2718 IWL_DEBUG(IWL_DL_11H,
2719 "Spectrum Measure Notification: Start\n"); 2719 "Spectrum Measure Notification: Start\n");
2720 return; 2720 return;
2721 } 2721 }
2722 2722
@@ -3100,7 +3100,7 @@ void iwl_rx_handle(struct iwl_priv *priv)
3100 3100
3101 /* Rx interrupt, but nothing sent from uCode */ 3101 /* Rx interrupt, but nothing sent from uCode */
3102 if (i == r) 3102 if (i == r)
3103 IWL_DEBUG(IWL_DL_RX | IWL_DL_ISR, "r = %d, i = %d\n", r, i); 3103 IWL_DEBUG(IWL_DL_RX, "r = %d, i = %d\n", r, i);
3104 3104
3105 if (iwl_rx_queue_space(rxq) > (RX_QUEUE_SIZE / 2)) 3105 if (iwl_rx_queue_space(rxq) > (RX_QUEUE_SIZE / 2))
3106 fill_rx = 1; 3106 fill_rx = 1;
@@ -3137,13 +3137,12 @@ void iwl_rx_handle(struct iwl_priv *priv)
3137 * handle those that need handling via function in 3137 * handle those that need handling via function in
3138 * rx_handlers table. See iwl4965_setup_rx_handlers() */ 3138 * rx_handlers table. See iwl4965_setup_rx_handlers() */
3139 if (priv->rx_handlers[pkt->hdr.cmd]) { 3139 if (priv->rx_handlers[pkt->hdr.cmd]) {
3140 IWL_DEBUG(IWL_DL_HOST_COMMAND | IWL_DL_RX | IWL_DL_ISR, 3140 IWL_DEBUG(IWL_DL_RX, "r = %d, i = %d, %s, 0x%02x\n", r,
3141 "r = %d, i = %d, %s, 0x%02x\n", r, i, 3141 i, get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd);
3142 get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd);
3143 priv->rx_handlers[pkt->hdr.cmd] (priv, rxb); 3142 priv->rx_handlers[pkt->hdr.cmd] (priv, rxb);
3144 } else { 3143 } else {
3145 /* No handling needed */ 3144 /* No handling needed */
3146 IWL_DEBUG(IWL_DL_HOST_COMMAND | IWL_DL_RX | IWL_DL_ISR, 3145 IWL_DEBUG(IWL_DL_RX,
3147 "r %d i %d No handler needed for %s, 0x%02x\n", 3146 "r %d i %d No handler needed for %s, 0x%02x\n",
3148 r, i, get_cmd_string(pkt->hdr.cmd), 3147 r, i, get_cmd_string(pkt->hdr.cmd),
3149 pkt->hdr.cmd); 3148 pkt->hdr.cmd);
@@ -3562,7 +3561,7 @@ static void iwl4965_irq_handle_error(struct iwl_priv *priv)
3562 clear_bit(STATUS_READY, &priv->status); 3561 clear_bit(STATUS_READY, &priv->status);
3563 3562
3564 if (!test_bit(STATUS_EXIT_PENDING, &priv->status)) { 3563 if (!test_bit(STATUS_EXIT_PENDING, &priv->status)) {
3565 IWL_DEBUG(IWL_DL_INFO | IWL_DL_FW_ERRORS, 3564 IWL_DEBUG(IWL_DL_FW_ERRORS,
3566 "Restarting adapter due to uCode error.\n"); 3565 "Restarting adapter due to uCode error.\n");
3567 3566
3568 if (iwl_is_associated(priv)) { 3567 if (iwl_is_associated(priv)) {
@@ -3670,8 +3669,7 @@ static void iwl4965_irq_tasklet(struct iwl_priv *priv)
3670 CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW)) 3669 CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW))
3671 hw_rf_kill = 1; 3670 hw_rf_kill = 1;
3672 3671
3673 IWL_DEBUG(IWL_DL_INFO | IWL_DL_RF_KILL | IWL_DL_ISR, 3672 IWL_DEBUG(IWL_DL_RF_KILL, "RF_KILL bit toggled to %s.\n",
3674 "RF_KILL bit toggled to %s.\n",
3675 hw_rf_kill ? "disable radio":"enable radio"); 3673 hw_rf_kill ? "disable radio":"enable radio");
3676 3674
3677 /* Queue restart only if RF_KILL switch was set to "kill" 3675 /* Queue restart only if RF_KILL switch was set to "kill"
@@ -4516,7 +4514,7 @@ static void iwl4965_bg_rf_kill(struct work_struct *work)
4516 mutex_lock(&priv->mutex); 4514 mutex_lock(&priv->mutex);
4517 4515
4518 if (!iwl_is_rfkill(priv)) { 4516 if (!iwl_is_rfkill(priv)) {
4519 IWL_DEBUG(IWL_DL_INFO | IWL_DL_RF_KILL, 4517 IWL_DEBUG(IWL_DL_RF_KILL,
4520 "HW and/or SW RF Kill no longer active, restarting " 4518 "HW and/or SW RF Kill no longer active, restarting "
4521 "device\n"); 4519 "device\n");
4522 if (!test_bit(STATUS_EXIT_PENDING, &priv->status)) 4520 if (!test_bit(STATUS_EXIT_PENDING, &priv->status))
@@ -4570,9 +4568,9 @@ static void iwl4965_bg_scan_check(struct work_struct *data)
4570 mutex_lock(&priv->mutex); 4568 mutex_lock(&priv->mutex);
4571 if (test_bit(STATUS_SCANNING, &priv->status) || 4569 if (test_bit(STATUS_SCANNING, &priv->status) ||
4572 test_bit(STATUS_SCAN_ABORTING, &priv->status)) { 4570 test_bit(STATUS_SCAN_ABORTING, &priv->status)) {
4573 IWL_DEBUG(IWL_DL_INFO | IWL_DL_SCAN, 4571 IWL_DEBUG(IWL_DL_SCAN, "Scan completion watchdog resetting "
4574 "Scan completion watchdog resetting adapter (%dms)\n", 4572 "adapter (%dms)\n",
4575 jiffies_to_msecs(IWL_SCAN_CHECK_WATCHDOG)); 4573 jiffies_to_msecs(IWL_SCAN_CHECK_WATCHDOG));
4576 4574
4577 if (!test_bit(STATUS_EXIT_PENDING, &priv->status)) 4575 if (!test_bit(STATUS_EXIT_PENDING, &priv->status))
4578 iwl4965_send_scan_abort(priv); 4576 iwl4965_send_scan_abort(priv);
@@ -4973,7 +4971,7 @@ static void iwl4965_bg_scan_completed(struct work_struct *work)
4973 struct iwl_priv *priv = 4971 struct iwl_priv *priv =
4974 container_of(work, struct iwl_priv, scan_completed); 4972 container_of(work, struct iwl_priv, scan_completed);
4975 4973
4976 IWL_DEBUG(IWL_DL_INFO | IWL_DL_SCAN, "SCAN complete scan\n"); 4974 IWL_DEBUG(IWL_DL_SCAN, "SCAN complete scan\n");
4977 4975
4978 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) 4976 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
4979 return; 4977 return;
@@ -6830,7 +6828,6 @@ static int __init iwl4965_init(void)
6830 return ret; 6828 return ret;
6831 6829
6832#ifdef CONFIG_IWLWIFI_DEBUG 6830#ifdef CONFIG_IWLWIFI_DEBUG
6833error_debug:
6834 pci_unregister_driver(&iwl_driver); 6831 pci_unregister_driver(&iwl_driver);
6835#endif 6832#endif
6836error_register: 6833error_register: