diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-05-06 15:18:41 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-13 13:45:12 -0400 |
commit | d73e4923d1b3311dda4cd1bd5d3596d75af1d1c3 (patch) | |
tree | 344ffa513e8d5774589976f77a417b287841684c /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 5a2a780cb142f16f33c948af5f3d588099b59df6 (diff) |
iwlwifi: split debug and debugfs options
It may be desirable in some systems to have
insight into the driver via debugfs, but not
affect its operation via the debug logging
code that is inserted everywhere when DEBUG
is configured.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index f91024616822..5bfa7b310c1a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1465,7 +1465,12 @@ bool iwl_good_ack_health(struct iwl_priv *priv, | |||
1465 | " expected_ack_cnt = %d\n", | 1465 | " expected_ack_cnt = %d\n", |
1466 | actual_ack_cnt_delta, expected_ack_cnt_delta); | 1466 | actual_ack_cnt_delta, expected_ack_cnt_delta); |
1467 | 1467 | ||
1468 | #ifdef CONFIG_IWLWIFI_DEBUG | 1468 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
1469 | /* | ||
1470 | * This is ifdef'ed on DEBUGFS because otherwise the | ||
1471 | * statistics aren't available. If DEBUGFS is set but | ||
1472 | * DEBUG is not, these will just compile out. | ||
1473 | */ | ||
1469 | IWL_DEBUG_RADIO(priv, "rx_detected_cnt delta = %d\n", | 1474 | IWL_DEBUG_RADIO(priv, "rx_detected_cnt delta = %d\n", |
1470 | priv->_agn.delta_statistics.tx.rx_detected_cnt); | 1475 | priv->_agn.delta_statistics.tx.rx_detected_cnt); |
1471 | IWL_DEBUG_RADIO(priv, | 1476 | IWL_DEBUG_RADIO(priv, |