aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/spectral.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-08-25 12:09:38 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2014-08-26 19:04:48 +0300
commit7aa7a72a23679abf1cea9b3b65a8921244e769a7 (patch)
tree1fae909aa0300aff481db6fe53e5bd09c696d57b /drivers/net/wireless/ath/ath10k/spectral.c
parent61e9aab7a1930ae031d1b9d948837b5ffd8e3f5e (diff)
ath10k: improve logging to include dev id
This makes it a lot easier to log and debug messages if there's more than 1 ath10k device on a system. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/spectral.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/spectral.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/spectral.c b/drivers/net/wireless/ath/ath10k/spectral.c
index a53afc23864f..3e1454b74e00 100644
--- a/drivers/net/wireless/ath/ath10k/spectral.c
+++ b/drivers/net/wireless/ath/ath10k/spectral.c
@@ -237,7 +237,7 @@ static int ath10k_spectral_scan_config(struct ath10k *ar,
WMI_SPECTRAL_TRIGGER_CMD_CLEAR,
WMI_SPECTRAL_ENABLE_CMD_DISABLE);
if (res < 0) {
- ath10k_warn("failed to enable spectral scan: %d\n", res);
+ ath10k_warn(ar, "failed to enable spectral scan: %d\n", res);
return res;
}
@@ -271,7 +271,7 @@ static int ath10k_spectral_scan_config(struct ath10k *ar,
res = ath10k_wmi_vdev_spectral_conf(ar, &arg);
if (res < 0) {
- ath10k_warn("failed to configure spectral scan: %d\n", res);
+ ath10k_warn(ar, "failed to configure spectral scan: %d\n", res);
return res;
}
@@ -332,12 +332,12 @@ static ssize_t write_file_spec_scan_ctl(struct file *file,
res = ath10k_spectral_scan_config(ar,
ar->spectral.mode);
if (res < 0) {
- ath10k_warn("failed to reconfigure spectral scan: %d\n",
+ ath10k_warn(ar, "failed to reconfigure spectral scan: %d\n",
res);
}
res = ath10k_spectral_scan_trigger(ar);
if (res < 0) {
- ath10k_warn("failed to trigger spectral scan: %d\n",
+ ath10k_warn(ar, "failed to trigger spectral scan: %d\n",
res);
}
} else {