diff options
author | Venkateswara Naralasetty <quic_vnaralas@quicinc.com> | 2021-11-09 12:05:55 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-11-17 09:29:34 +0200 |
commit | fb12305aff12e735e599c79514dde5dac40f5a59 (patch) | |
tree | 589b0dd280aa33ced0f5df834ec7a4227c329102 /drivers/net/wireless/ath/ath11k/debug.h | |
parent | 1ad6e4b00f29d017b196dda7ab96d1cfcbabd7d2 (diff) |
ath11k: add trace log support
This change is to add trace log support for,
* WMI events
* WMI commands
* ath11k_dbg messages
* ath11k_dbg_dump messages
* ath11k_log_info messages
* ath11k_log_warn messages
* ath11k_log_err messages
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-00652-QCAHKSWPL_SILICONZ-1
Signed-off-by: Venkateswara Naralasetty <quic_vnaralas@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1636439755-30419-1-git-send-email-quic_vnaralas@quicinc.com
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/debug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/debug.h b/drivers/net/wireless/ath/ath11k/debug.h index 659a275e2eb3..fbbd5fe02aa8 100644 --- a/drivers/net/wireless/ath/ath11k/debug.h +++ b/drivers/net/wireless/ath/ath11k/debug.h @@ -60,7 +60,8 @@ static inline void ath11k_dbg_dump(struct ath11k_base *ab, #define ath11k_dbg(ar, dbg_mask, fmt, ...) \ do { \ - if (ath11k_debug_mask & dbg_mask) \ + if ((ath11k_debug_mask & dbg_mask) || \ + trace_ath11k_log_dbg_enabled()) \ __ath11k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \ } while (0) |