提交 26470b07 编写于 作者: J Johannes Berg 提交者: Wey-Yi Guy

iwlwifi: move iwl_have_debug_level

This function belongs into the debugging framework.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
上级 0e9f6aca
...@@ -32,6 +32,12 @@ ...@@ -32,6 +32,12 @@
#include "iwl-shared.h" #include "iwl-shared.h"
#include "iwl-devtrace.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, void __iwl_err(struct device *dev, bool rfkill_prefix, bool only_trace,
const char *fmt, ...); const char *fmt, ...);
void __iwl_warn(struct device *dev, const char *fmt, ...); void __iwl_warn(struct device *dev, const char *fmt, ...);
......
...@@ -121,9 +121,4 @@ struct iwl_mod_params { ...@@ -121,9 +121,4 @@ struct iwl_mod_params {
bool auto_agg; bool auto_agg;
}; };
static inline bool iwl_have_debug_level(u32 level)
{
return iwlagn_mod_params.debug_level & level;
}
#endif /* #__iwl_shared_h__ */ #endif /* #__iwl_shared_h__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册