diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-05 14:24:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:10 -0500 |
commit | a8bceb392a739321ec20d03a91a86ebdde9c07bb (patch) | |
tree | aa3257edba10f5358bd0d96c38ab39546e9af034 /drivers/net/wireless/iwlwifi/iwl-debug.c | |
parent | fb5fe5b9da167f25fd44818327338eeec20c2a5a (diff) |
iwlwifi: remove per-device debug level
There's no need for the per-device debug
level that we expose in debugfs since the
module parameter is writable in sysfs.
At the same time, simplify code by changing
iwl_get_debug_level(shrd) & IWL_DL_ISR)
to
iwl_have_debug_level(IWL_DL_ISR)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debug.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.c b/drivers/net/wireless/iwlwifi/iwl-debug.c index 4bc2e70051d6..059efabda184 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.c +++ b/drivers/net/wireless/iwlwifi/iwl-debug.c | |||
@@ -104,7 +104,7 @@ void __iwl_err(struct device *dev, bool rfkill_prefix, bool trace_only, | |||
104 | } | 104 | } |
105 | 105 | ||
106 | #if defined(CONFIG_IWLWIFI_DEBUG) || defined(CONFIG_IWLWIFI_DEVICE_TRACING) | 106 | #if defined(CONFIG_IWLWIFI_DEBUG) || defined(CONFIG_IWLWIFI_DEVICE_TRACING) |
107 | void __iwl_dbg(struct iwl_shared *shared, struct device *dev, | 107 | void __iwl_dbg(struct device *dev, |
108 | u32 level, bool limit, const char *function, | 108 | u32 level, bool limit, const char *function, |
109 | const char *fmt, ...) | 109 | const char *fmt, ...) |
110 | { | 110 | { |
@@ -116,7 +116,7 @@ void __iwl_dbg(struct iwl_shared *shared, struct device *dev, | |||
116 | va_start(args, fmt); | 116 | va_start(args, fmt); |
117 | vaf.va = &args; | 117 | vaf.va = &args; |
118 | #ifdef CONFIG_IWLWIFI_DEBUG | 118 | #ifdef CONFIG_IWLWIFI_DEBUG |
119 | if (iwl_get_debug_level(shared) & level && | 119 | if (iwl_have_debug_level(level) && |
120 | (!limit || net_ratelimit())) | 120 | (!limit || net_ratelimit())) |
121 | dev_err(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U', | 121 | dev_err(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U', |
122 | function, &vaf); | 122 | function, &vaf); |