diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-02 14:54:16 +0200 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-23 14:21:24 -0700 |
commit | 26470b075a68c0bb31f114f6b9c4544b597e64eb (patch) | |
tree | 08559aeeb0008cab7f202df8725903fe46df1a06 /drivers/net/wireless/iwlwifi/iwl-debug.h | |
parent | 0e9f6aca344f457ac5c1b747e171d7db72e773fd (diff) | |
download | linux-26470b075a68c0bb31f114f6b9c4544b597e64eb.tar.gz linux-26470b075a68c0bb31f114f6b9c4544b597e64eb.tar.bz2 linux-26470b075a68c0bb31f114f6b9c4544b597e64eb.zip |
iwlwifi: move iwl_have_debug_level
This function belongs into the debugging framework.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debug.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index d3e1783b1500..a7f3f339c48e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h @@ -32,6 +32,12 @@ #include "iwl-shared.h" #include "iwl-devtrace.h" + +static inline bool iwl_have_debug_level(u32 level) +{ + return iwlagn_mod_params.debug_level & level; +} + void __iwl_err(struct device *dev, bool rfkill_prefix, bool only_trace, const char *fmt, ...); void __iwl_warn(struct device *dev, const char *fmt, ...); |