Skip to contentSkip to conversation

ath10k: add missing '\n' to warning and error messages

PATCH In review Kalle Valo 1 participant 2 messages Oct 6, 2014 – Oct 21, 2014 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

PATCH 1/1 ath10k: add missing '\n' to warning and error messages

All warning and error messages should end with '\n', fix that.

---
 drivers/net/wireless/ath/ath10k/core.c   |   10 +++++-----
 drivers/net/wireless/ath/ath10k/debug.c  |    2 +-
 drivers/net/wireless/ath/ath10k/htc.c    |    4 ++--
 drivers/net/wireless/ath/ath10k/htt_tx.c |    2 +-
 drivers/net/wireless/ath/ath10k/pci.c    |    2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)
drivers/net/wireless/ath/ath10k/core.c +5 -5
index 37e31665628c..dce2eeaa20c8 100644
@@ -251,7 +251,7 @@ static int ath10k_download_and_run_otp(struct ath10k *ar)
 	ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot otp execute result %d\n", result);
 
 	if (result != 0) {
-		ath10k_err(ar, "otp calibration failed: %d", result);
+		ath10k_err(ar, "otp calibration failed: %d\n", result);
 		return -EINVAL;
 	}
 
@@ -331,7 +331,7 @@ static int ath10k_core_fetch_firmware_api_1(struct ath10k *ar)
 	}
 
 	if (ar->hw_params.fw.board == NULL) {
-		ath10k_err(ar, "board data file not defined");
+		ath10k_err(ar, "board data file not defined\n");
 		return -EINVAL;
 	}
 
@@ -525,14 +525,14 @@ static int ath10k_core_fetch_firmware_api_n(struct ath10k *ar, const char *name)
 
 	if (test_bit(ATH10K_FW_FEATURE_WMI_10_2, ar->fw_features) &&
 	    !test_bit(ATH10K_FW_FEATURE_WMI_10X, ar->fw_features)) {
-		ath10k_err(ar, "feature bits corrupted: 10.2 feature requires 10.x feature to be set as well");
+		ath10k_err(ar, "feature bits corrupted: 10.2 feature requires 10.x feature to be set as well\n");
 		ret = -EINVAL;
 		goto err;
 	}
 
 	/* now fetch the board file */
 	if (ar->hw_params.fw.board == NULL) {
-		ath10k_err(ar, "board data file not defined");
+		ath10k_err(ar, "board data file not defined\n");
 		ret = -EINVAL;
 		goto err;
 	}
@@ -809,7 +809,7 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode)
 	if (mode == ATH10K_FIRMWARE_MODE_NORMAL) {
 		status = ath10k_wmi_wait_for_service_ready(ar);
 		if (status <= 0) {
-			ath10k_warn(ar, "wmi service ready event not received");
+			ath10k_warn(ar, "wmi service ready event not received\n");
 			status = -ETIMEDOUT;
 			goto err_hif_stop;
 		}
drivers/net/wireless/ath/ath10k/debug.c +1 -1
index 0d94febbb360..e1cb150353c8 100644
@@ -1392,7 +1392,7 @@ int ath10k_debug_start(struct ath10k *ar)
 		ret = ath10k_wmi_dbglog_cfg(ar, ar->debug.fw_dbglog_mask);
 		if (ret)
 			/* not serious */
-			ath10k_warn(ar, "failed to enable dbglog during start: %d",
+			ath10k_warn(ar, "failed to enable dbglog during start: %d\n",
 				    ret);
 	}
 
drivers/net/wireless/ath/ath10k/htc.c +2 -2
index 676bd4ed969b..2394d9901957 100644
@@ -227,7 +227,7 @@ ath10k_htc_process_credit_report(struct ath10k_htc *htc,
 	int i, n_reports;
 
 	if (len % sizeof(*report))
-		ath10k_warn(ar, "Uneven credit report len %d", len);
+		ath10k_warn(ar, "Uneven credit report len %d\n", len);
 
 	n_reports = len / sizeof(*report);
 
@@ -716,7 +716,7 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc,
 	if ((message_id != ATH10K_HTC_MSG_CONNECT_SERVICE_RESP_ID) ||
 	    (htc->control_resp_len < sizeof(msg->hdr) +
 	     sizeof(msg->connect_service_response))) {
-		ath10k_err(ar, "Invalid resp message ID 0x%x", message_id);
+		ath10k_err(ar, "Invalid resp message ID 0x%x\n", message_id);
 		return -EPROTO;
 	}
 
drivers/net/wireless/ath/ath10k/htt_tx.c +1 -1
index fdfb1713b173..1524ff447e8b 100644
@@ -222,7 +222,7 @@ int ath10k_htt_h2t_stats_req(struct ath10k_htt *htt, u8 mask, u64 cookie)
 
 	ret = ath10k_htc_send(&htt->ar->htc, htt->eid, skb);
 	if (ret) {
-		ath10k_warn(ar, "failed to send htt type stats request: %d",
+		ath10k_warn(ar, "failed to send htt type stats request: %d\n",
 			    ret);
 		dev_kfree_skb_any(skb);
 		return ret;
drivers/net/wireless/ath/ath10k/pci.c +1 -1
index 8a04904cccee..8a3f4df83523 100644
@@ -862,7 +862,7 @@ static void ath10k_pci_ce_recv_data(struct ath10k_ce_pipe *ce_state)
 				 max_nbytes, DMA_FROM_DEVICE);
 
 		if (unlikely(max_nbytes < nbytes)) {
-			ath10k_warn(ar, "rxed more than expected (nbytes %d, max %d)",
+			ath10k_warn(ar, "rxed more than expected (nbytes %d, max %d)\n",
 				    nbytes, max_nbytes);
 			dev_kfree_skb_any(skb);
 			continue;
author
#1 lore raw
Quoted 3 lines · Kalle Valo

All warning and error messages should end with '\n', fix that.

Joe pointed out that I had missed a few, will send v2.

Signature · 1 line
Kalle Valo