Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289928
b: refs/heads/master
c: 481b960
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and John W. Linville committed Jan 24, 2012
1 parent 2e2593f commit 10785f6
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f56e7eb4dd3124d53a5200ff093bc6bcbae671e9
refs/heads/master: 481b9606ec7276401c7f746fe37873855c49d1b8
5 changes: 5 additions & 0 deletions trunk/drivers/net/wireless/rtlwifi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ config RTLWIFI
depends on RTL8192CE || RTL8192CU || RTL8192SE || RTL8192DE
default m

config RTLWIFI_DEBUG
tristate "Additional debugging output"
depends on RTL8192CE || RTL8192CU || RTL8192SE || RTL8192DE
default y

config RTL8192C_COMMON
tristate
depends on RTL8192CE || RTL8192CU
Expand Down
34 changes: 34 additions & 0 deletions trunk/drivers/net/wireless/rtlwifi/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ enum dbgp_flag_e {
DBGP_TYPE_MAX
};

#ifdef CONFIG_RTLWIFI_DEBUG

#define RT_ASSERT(_exp, fmt, ...) \
do { \
if (!(_exp)) { \
Expand Down Expand Up @@ -195,5 +197,37 @@ do { \
} \
} while (0)

#else

struct rtl_priv;

__printf(2, 3)
static inline void RT_ASSERT(int exp, const char *fmt, ...)
{
}

__printf(4, 5)
static inline void RT_TRACE(struct rtl_priv *rtlpriv,
int comp, int level,
const char *fmt, ...)
{
}

__printf(4, 5)
static inline void RTPRINT(struct rtl_priv *rtlpriv,
int dbgtype, int dbgflag,
const char *fmt, ...)
{
}

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

#endif

void rtl_dbgp_flag_init(struct ieee80211_hw *hw);
#endif

0 comments on commit 10785f6

Please sign in to comment.