summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/debug.c
diff options
context:
space:
mode:
authorKalle Valo <quic_kvalo@quicinc.com>2023-06-09 17:24:27 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2023-06-13 12:10:42 +0300
commit9a599e968f022e77519e5f13f421369699f95269 (patch)
tree674f4e61b293f800cd61d318ddef4dd928e79b0b /drivers/net/wireless/ath/ath11k/debug.c
parentd13936d57927574815db968f1e5f9026dade3370 (diff)
wifi: ath11k: print debug level in debug messages
To make it easier understand the context of a debug message print the debug level before the actual message. An example: [21867.231900] ath11k_pci 0000:06:00.0: wmi processed regulatory ext channel list The tracepoint call is not modified, it's better to userspace print the debug level if needed. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230609142440.24643-3-kvalo@kernel.org
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath11k/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c
index 958d87429062..f5c8a34c8802 100644
--- a/drivers/net/wireless/ath/ath11k/debug.c
+++ b/drivers/net/wireless/ath/ath11k/debug.c
@@ -66,7 +66,7 @@ void __ath11k_dbg(struct ath11k_base *ab, enum ath11k_debug_mask mask,
vaf.va = &args;
if (ath11k_debug_mask & mask)
- dev_printk(KERN_DEBUG, ab->dev, "%pV", &vaf);
+ dev_printk(KERN_DEBUG, ab->dev, "%s %pV", ath11k_dbg_str(mask), &vaf);
trace_ath11k_log_dbg(ab, mask, &vaf);