ath10k: add ATH10K_DBG_WMI_PRINT debug level
authorBen Greear <greearb@candelatech.com>
Tue, 23 Sep 2014 21:17:19 +0000 (14:17 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 24 Nov 2014 14:14:53 +0000 (16:14 +0200)
There are not many of these messages producted by the
firmware, but they are generally fairly useful, so make it easy to print them
with a separate debug level.

kvalo: fix commit log, rename debug level

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/debug.h
drivers/net/wireless/ath/ath10k/wmi.c

index 0c934a8378dba315489df956626b284027f1a585..815d325ab9305a49a1e45059cb6096389d8ad0be 100644 (file)
@@ -35,6 +35,7 @@ enum ath10k_debug_mask {
        ATH10K_DBG_BMI          = 0x00000400,
        ATH10K_DBG_REGULATORY   = 0x00000800,
        ATH10K_DBG_TESTMODE     = 0x00001000,
+       ATH10K_DBG_WMI_PRINT    = 0x00002000,
        ATH10K_DBG_ANY          = 0xffffffff,
 };
 
index c2bc8282f6cb169f7d13db32fe62a00aa1d3b10a..c300a53ed6b0c455502b5c92d6a39fc1f082038e 100644 (file)
@@ -2261,7 +2261,7 @@ static void ath10k_wmi_event_debug_print(struct ath10k *ar,
        /* the last byte is always reserved for the null character */
        buf[i] = '\0';
 
-       ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi event debug print '%s'\n", buf);
+       ath10k_dbg(ar, ATH10K_DBG_WMI_PRINT, "wmi print '%s'\n", buf);
 }
 
 static void ath10k_wmi_event_pdev_qvit(struct ath10k *ar, struct sk_buff *skb)