Skip to content

Commit

Permalink
rtlwifi: extend debug_comp to u64
Browse files Browse the repository at this point in the history
The number of debugging conditions now exceeds the capabilities of a
32-bit word.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Ping-Ke Shih authored and Kalle Valo committed Jun 21, 2017
1 parent e332e2a commit 79b64ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/realtek/rtlwifi/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <linux/moduleparam.h>

#ifdef CONFIG_RTLWIFI_DEBUG
void _rtl_dbg_trace(struct rtl_priv *rtlpriv, int comp, int level,
void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *fmt, ...)
{
if (unlikely((comp & rtlpriv->cfg->mod_params->debug_mask) &&
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/realtek/rtlwifi/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ enum dbgp_flag_e {
struct rtl_priv;

__printf(4, 5)
void _rtl_dbg_trace(struct rtl_priv *rtlpriv, int comp, int level,
void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *fmt, ...);

__printf(4, 5)
Expand Down Expand Up @@ -198,7 +198,7 @@ struct rtl_priv;

__printf(4, 5)
static inline void RT_TRACE(struct rtl_priv *rtlpriv,
int comp, int level,
u64 comp, int level,
const char *fmt, ...)
{
}
Expand All @@ -211,7 +211,7 @@ static inline void RTPRINT(struct rtl_priv *rtlpriv,
}

static inline void RT_PRINT_DATA(struct rtl_priv *rtlpriv,
int comp, int level,
u64 comp, int level,
const char *titlestring,
const void *hexdata, size_t hexdatalen)
{
Expand Down

0 comments on commit 79b64ed

Please sign in to comment.