summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoddar, Siddarth <siddpodd@codeaurora.org>2017-03-14 19:39:43 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-03-24 19:07:30 -0700
commitcff48c8a8a33530b72d542aeb70c4bcada426106 (patch)
tree1f36010dbcf48d10bac3ee5440b8caf76950e9e2
parent1b7ca62e1d67772a103e9e7f24742717465c2ecc (diff)
qcacld-3.0: HTT: Reduce the log spam in Kmsg
Move the logs to appropriate log levels to reduce the log spam in kmsg. CRs-Fixed: 2019261 Change-Id: I7e7d8c6f90f8f9feefbfb72217886fcd812cf39c
-rw-r--r--core/dp/htt/htt.c26
-rw-r--r--core/dp/htt/htt_h2t.c21
-rw-r--r--core/dp/htt/htt_internal.h8
-rw-r--r--core/dp/htt/htt_rx.c58
-rw-r--r--core/dp/htt/htt_t2h.c15
-rw-r--r--core/dp/htt/htt_tx.c14
6 files changed, 81 insertions, 61 deletions
diff --git a/core/dp/htt/htt.c b/core/dp/htt/htt.c
index fefcc9f5eb12..64535c240f47 100644
--- a/core/dp/htt/htt.c
+++ b/core/dp/htt/htt.c
@@ -359,14 +359,14 @@ htt_pdev_alloc(ol_txrx_pdev_handle txrx_pdev,
pdev->cfg.is_full_reorder_offload =
ol_cfg_is_full_reorder_offload(pdev->ctrl_pdev);
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
- "is_full_reorder_offloaded? %d\n",
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "is_full_reorder_offloaded? %d",
(int)pdev->cfg.is_full_reorder_offload);
pdev->cfg.ce_classify_enabled =
ol_cfg_is_ce_classify_enabled(ctrl_pdev);
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
- "ce_classify_enabled? %d\n",
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "ce_classify_enabled? %d",
pdev->cfg.ce_classify_enabled);
if (pdev->cfg.is_high_latency) {
@@ -505,7 +505,8 @@ htt_attach(struct htt_pdev_t *pdev, int desc_pool_size)
} else if (frm_type == wlan_frm_fmt_802_3) {
pdev->download_len = HTT_TX_HDR_SIZE_ETHERNET;
} else {
- qdf_print("Unexpected frame type spec: %d\n", frm_type);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "Unexpected frame type spec: %d", frm_type);
HTT_ASSERT0(0);
}
@@ -637,7 +638,8 @@ int htt_update_endpoint(struct htt_pdev_t *pdev,
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
if (qdf_unlikely(NULL == hif_ctx)) {
QDF_ASSERT(NULL != hif_ctx);
- qdf_print("%s:%d: assuming non-tx service.",
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s:%d: assuming non-tx service.",
__func__, __LINE__);
} else {
ul = dl = 0xff;
@@ -645,7 +647,8 @@ int htt_update_endpoint(struct htt_pdev_t *pdev,
hif_map_service_to_pipe(hif_ctx, service_id,
&ul, &dl,
&ul_polled, &dl_polled))
- qdf_print("%s:%d: assuming non-tx srv.",
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "%s:%d: assuming non-tx srv.",
__func__, __LINE__);
else
tx_service = (ul != 0xff);
@@ -755,7 +758,8 @@ int htt_ipa_uc_attach(struct htt_pdev_t *pdev)
ol_cfg_ipa_uc_tx_max_buf_cnt(pdev->ctrl_pdev),
ol_cfg_ipa_uc_tx_partition_base(pdev->ctrl_pdev));
if (error) {
- qdf_print("HTT IPA UC TX attach fail code %d\n", error);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "HTT IPA UC TX attach fail code %d", error);
HTT_ASSERT0(0);
return error;
}
@@ -764,7 +768,8 @@ int htt_ipa_uc_attach(struct htt_pdev_t *pdev)
error = htt_rx_ipa_uc_attach(
pdev, qdf_get_pwr2(pdev->rx_ring.fill_level));
if (error) {
- qdf_print("HTT IPA UC RX attach fail code %d\n", error);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "HTT IPA UC RX attach fail code %d", error);
htt_tx_ipa_uc_detach(pdev);
HTT_ASSERT0(0);
return error;
@@ -885,7 +890,8 @@ void htt_mark_first_wakeup_packet(htt_pdev_handle pdev,
uint8_t value)
{
if (!pdev) {
- qdf_print("%s: htt pdev is NULL", __func__);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s: htt pdev is NULL", __func__);
return;
}
diff --git a/core/dp/htt/htt_h2t.c b/core/dp/htt/htt_h2t.c
index 6669ed851afe..269cd220b060 100644
--- a/core/dp/htt/htt_h2t.c
+++ b/core/dp/htt/htt_h2t.c
@@ -307,7 +307,7 @@ QDF_STATUS htt_h2t_rx_ring_rfs_cfg_msg_ll(struct htt_pdev_t *pdev)
qdf_nbuf_t msg;
uint32_t *msg_word;
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"Receive flow steering configuration, disable gEnableFlowSteering(=0) in ini if FW doesnot support it\n");
pkt = htt_htc_pkt_alloc(pdev);
if (!pkt)
@@ -343,10 +343,10 @@ QDF_STATUS htt_h2t_rx_ring_rfs_cfg_msg_ll(struct htt_pdev_t *pdev)
HTT_H2T_MSG_TYPE_SET(*msg_word, HTT_H2T_MSG_TYPE_RFS_CONFIG);
if (ol_cfg_is_flow_steering_enabled(pdev->ctrl_pdev)) {
HTT_RX_RFS_CONFIG_SET(*msg_word, 1);
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"Enable Rx flow steering\n");
} else {
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"Disable Rx flow steering\n");
}
@@ -370,7 +370,7 @@ QDF_STATUS htt_h2t_rx_ring_rfs_cfg_msg_ll(struct htt_pdev_t *pdev)
*/
QDF_STATUS htt_h2t_rx_ring_rfs_cfg_msg_ll(struct htt_pdev_t *pdev)
{
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"Doesnot support receive flow steering configuration\n");
return QDF_STATUS_SUCCESS;
}
@@ -447,7 +447,7 @@ QDF_STATUS htt_h2t_rx_ring_cfg_msg_ll(struct htt_pdev_t *pdev)
tmp = qdf_get_upper_32_bits(pdev->rx_ring.base_paddr);
if (tmp & 0xfffffe0) {
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"%s:%d paddr > 37 bits!. Trimmed.",
__func__, __LINE__);
tmp &= 0x01f;
@@ -480,10 +480,10 @@ QDF_STATUS htt_h2t_rx_ring_cfg_msg_ll(struct htt_pdev_t *pdev)
enable_hdr = 1;
enable_ppdu_start = 1;
enable_ppdu_end = 1;
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"%s : %d Pkt log is enabled\n", __func__, __LINE__);
} else {
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"%s : %d Pkt log is disabled\n", __func__, __LINE__);
enable_ctrl_data = 0;
enable_mgmt_data = 0;
@@ -511,7 +511,7 @@ QDF_STATUS htt_h2t_rx_ring_cfg_msg_ll(struct htt_pdev_t *pdev)
enable_ppdu_start = 1;
enable_ppdu_end = 1;
/* Disable ASPM for monitor mode */
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"%s : %d Monitor mode is enabled\n", __func__, __LINE__);
}
@@ -736,7 +736,7 @@ htt_h2t_rx_ring_cfg_msg_hl(struct htt_pdev_t *pdev)
*/
QDF_STATUS htt_h2t_rx_ring_rfs_cfg_msg_hl(struct htt_pdev_t *pdev)
{
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"Doesnot support Receive flow steering configuration\n");
return QDF_STATUS_SUCCESS;
}
@@ -758,8 +758,7 @@ htt_h2t_dbg_stats_get(struct htt_pdev_t *pdev,
if (stats_type_upload_mask >= 1 << HTT_DBG_NUM_STATS ||
stats_type_reset_mask >= 1 << HTT_DBG_NUM_STATS) {
- /* FIX THIS - add more details? */
- QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
"%#x %#x stats not supported\n",
stats_type_upload_mask, stats_type_reset_mask);
htt_htc_pkt_free(pdev, pkt);
diff --git a/core/dp/htt/htt_internal.h b/core/dp/htt/htt_internal.h
index 0020e419c221..d230c3241431 100644
--- a/core/dp/htt/htt_internal.h
+++ b/core/dp/htt/htt_internal.h
@@ -675,8 +675,8 @@ static inline int htt_display_rx_buf_debug(struct htt_pdev_t *pdev)
buf = pdev->rx_buff_list;
for (i = 0; i < HTT_RX_RING_BUFF_DBG_LIST; i++) {
if (buf[i].posted != 0)
- QDF_TRACE(QDF_MODULE_ID_TXRX,
- QDF_TRACE_LEVEL_ERROR,
+ QDF_TRACE(QDF_MODULE_ID_HTT,
+ QDF_TRACE_LEVEL_INFO,
"[%d][0x%x] %p %lu %p %llu %llu",
i, buf[i].cpu,
buf[i].nbuf_data,
@@ -686,14 +686,14 @@ static inline int htt_display_rx_buf_debug(struct htt_pdev_t *pdev)
buf[i].recved);
}
- QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"rxbuf_idx %d all_posted: %d all_recvd: %d recv_err: %d",
pdev->rx_buff_index,
pdev->rx_buff_posted_cum,
pdev->rx_buff_recvd_cum,
pdev->rx_buff_recvd_err);
- QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
"timer kicks :%d actual :%d restarts:%d debtors: %d fill_n: %d",
pdev->refill_retry_timer_starts,
pdev->refill_retry_timer_calls,
diff --git a/core/dp/htt/htt_rx.c b/core/dp/htt/htt_rx.c
index 3f3152e56f7c..2635f32a52ea 100644
--- a/core/dp/htt/htt_rx.c
+++ b/core/dp/htt/htt_rx.c
@@ -260,16 +260,16 @@ htt_rx_mpdu_desc_pn_hl(
*(word_ptr + 0) = rx_desc->pn_31_0;
break;
default:
- qdf_print(
- "Error: invalid length spec (%d bits) for PN\n",
- pn_len_bits);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "Error: invalid length spec (%d bits) for PN",
+ pn_len_bits);
qdf_assert(0);
break;
};
} else {
/* not first msdu, no pn info */
- qdf_print(
- "Error: get pn from a not-first msdu.\n");
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "Error: get pn from a not-first msdu.");
qdf_assert(0);
}
}
@@ -377,7 +377,8 @@ htt_rx_paddr_unmark_high_bits(qdf_dma_addr_t paddr)
* padded (with 0b0) to 8 bits
*/
if ((markings & 0xFFFF0000) != RX_PADDR_MAGIC_PATTERN) {
- qdf_print("%s: paddr not marked correctly: 0x%p!\n",
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s: paddr not marked correctly: 0x%p!",
__func__, (void *)paddr);
HTT_ASSERT_ALWAYS(0);
}
@@ -491,8 +492,9 @@ moretofill:
if (pdev->cfg.is_full_reorder_offload) {
if (qdf_unlikely(htt_rx_hash_list_insert(
pdev, (uint32_t)paddr, rx_netbuf))) {
- qdf_print("%s: hash insert failed!\n",
- __func__);
+ QDF_TRACE(QDF_MODULE_ID_HTT,
+ QDF_TRACE_LEVEL_ERROR,
+ "%s: hash insert failed!", __func__);
#ifdef DEBUG_DMA_DONE
qdf_nbuf_unmap(pdev->osdev, rx_netbuf,
QDF_DMA_BIDIRECTIONAL);
@@ -780,7 +782,8 @@ htt_rx_mpdu_desc_pn_ll(htt_pdev_handle pdev,
((uint64_t) rx_desc->msdu_end.ext_wapi_pn_127_96) << 32;
break;
default:
- qdf_print("Error: invalid length spec (%d bits) for PN\n",
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "Error: invalid length spec (%d bits) for PN",
pn_len_bits);
};
}
@@ -1159,7 +1162,8 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
int dbg_iter = MAX_DONE_BIT_CHECK_ITER;
- qdf_print("malformed frame\n");
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "malformed frame");
while (dbg_iter &&
(!((*(uint32_t *) &rx_desc->attention) &
@@ -1170,8 +1174,9 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
(void *)((char *)rx_desc +
HTT_RX_STD_DESC_RESERVATION));
- qdf_print("debug iter %d success %d\n",
- dbg_iter,
+ QDF_TRACE(QDF_MODULE_ID_HTT,
+ QDF_TRACE_LEVEL_INFO,
+ "debug iter %d success %d", dbg_iter,
pdev->rx_ring.dbg_sync_success);
dbg_iter--;
@@ -1181,7 +1186,10 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
& RX_ATTENTION_0_MSDU_DONE_MASK))) {
#ifdef HTT_RX_RESTORE
- qdf_print("RX done bit error detected!\n");
+ QDF_TRACE(QDF_MODULE_ID_HTT,
+ QDF_TRACE_LEVEL_ERROR,
+ "RX done bit error detected!");
+
qdf_nbuf_set_next(msdu, NULL);
*tail_msdu = msdu;
pdev->rx_ring.rx_reset = 1;
@@ -1193,7 +1201,8 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
#endif
}
pdev->rx_ring.dbg_sync_success++;
- qdf_print("debug iter %d success %d\n", dbg_iter,
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "debug iter %d success %d", dbg_iter,
pdev->rx_ring.dbg_sync_success);
}
#else
@@ -1435,8 +1444,9 @@ htt_rx_offload_msdu_pop_hl(htt_pdev_handle pdev,
if (msdu_len <= qdf_nbuf_len(buf)) {
qdf_nbuf_set_pktlen(buf, msdu_len);
} else {
- qdf_print("%s: drop frame with invalid msdu len %d %d\n",
- __FUNCTION__, msdu_len, (int)qdf_nbuf_len(buf));
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s: drop frame with invalid msdu len %d %d",
+ __func__, msdu_len, (int)qdf_nbuf_len(buf));
qdf_nbuf_free(offload_deliver_msg);
ret = -1;
}
@@ -1519,8 +1529,9 @@ htt_rx_offload_paddr_msdu_pop_ll(htt_pdev_handle pdev,
if (HTT_RX_IN_ORD_PADDR_IND_MSDU_INFO_GET(*(curr_msdu + 1)) &
FW_MSDU_INFO_FIRST_WAKEUP_M) {
qdf_nbuf_mark_wakeup_frame(buf);
- qdf_print("%s: First packet after WOW Wakeup rcvd\n",
- __func__);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "%s: First packet after WOW Wakeup rcvd",
+ __func__);
}
}
@@ -1592,7 +1603,7 @@ int htt_mon_rx_handle_amsdu_packet(qdf_nbuf_t msdu, htt_pdev_handle pdev,
qdf_nbuf_trim_tail(frag_nbuf, HTT_RX_BUF_SIZE - len);
HTT_PKT_DUMP(qdf_trace_hex_dump(QDF_MODULE_ID_TXRX,
- QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE_LEVEL_INFO_HIGH,
qdf_nbuf_data(frag_nbuf),
qdf_nbuf_len(frag_nbuf)));
prev_frag_nbuf = frag_nbuf;
@@ -1615,7 +1626,7 @@ int htt_mon_rx_handle_amsdu_packet(qdf_nbuf_t msdu, htt_pdev_handle pdev,
amsdu_len -= len;
qdf_nbuf_trim_tail(frag_nbuf, HTT_RX_BUF_SIZE - len);
HTT_PKT_DUMP(qdf_trace_hex_dump(QDF_MODULE_ID_TXRX,
- QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE_LEVEL_INFO_HIGH,
qdf_nbuf_data(frag_nbuf),
qdf_nbuf_len(frag_nbuf)));
@@ -1896,7 +1907,7 @@ static int htt_rx_mon_amsdu_rx_in_order_pop_ll(htt_pdev_handle pdev,
msg_word = (uint32_t *)rx_ind_data;
HTT_PKT_DUMP(qdf_trace_hex_dump(QDF_MODULE_ID_TXRX,
- QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE_LEVEL_INFO_HIGH,
(void *)rx_ind_data,
(int)qdf_nbuf_len(rx_ind_msg)));
@@ -1956,7 +1967,7 @@ static int htt_rx_mon_amsdu_rx_in_order_pop_ll(htt_pdev_handle pdev,
HTT_PKT_DUMP(qdf_trace_hex_dump(QDF_MODULE_ID_TXRX,
- QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE_LEVEL_INFO_HIGH,
qdf_nbuf_data(msdu),
qdf_nbuf_len(msdu)));
last_frag = ((struct htt_rx_in_ord_paddr_ind_msdu_t *)
@@ -3387,7 +3398,8 @@ int htt_rx_attach(struct htt_pdev_t *pdev)
htt_rx_ring_fill_n(pdev, pdev->rx_ring.fill_level);
if (pdev->cfg.is_full_reorder_offload) {
- qdf_print("HTT: full reorder offload enabled\n");
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "HTT: full reorder offload enabled");
htt_rx_amsdu_pop = htt_rx_amsdu_rx_in_order_pop_ll;
htt_rx_frag_pop = htt_rx_amsdu_rx_in_order_pop_ll;
htt_rx_mpdu_desc_list_next =
diff --git a/core/dp/htt/htt_t2h.c b/core/dp/htt/htt_t2h.c
index c948f9aa62aa..e4e14cc8fc65 100644
--- a/core/dp/htt/htt_t2h.c
+++ b/core/dp/htt/htt_t2h.c
@@ -375,7 +375,8 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
htc_pm_runtime_put(pdev->htc_pdev);
HTT_TX_SCHED(pdev);
} else {
- qdf_print("Ignoring HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND indication");
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "Ignoring HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND indication");
}
break;
}
@@ -567,9 +568,10 @@ static void htt_t2h_rx_in_order_indication_handler(
frag_ind = HTT_RX_IN_ORD_PADDR_IND_FRAG_GET(msg_word);
#if defined(HELIUMPLUS_DEBUG)
- qdf_print("%s %d: peerid %d tid %d offloadind %d fragind %d\n",
- __func__, __LINE__, peer_id, tid, offload_ind,
- frag_ind);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "%s %d: peerid %d tid %d offloadind %d fragind %d",
+ __func__, __LINE__, peer_id, tid, offload_ind, frag_ind);
+
#endif
if (qdf_unlikely(frag_ind)) {
ol_rx_frag_indication_handler(pdev,
@@ -618,8 +620,9 @@ void htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
msg_type = HTT_T2H_MSG_TYPE_GET(*msg_word);
#if defined(HELIUMPLUS_DEBUG)
- qdf_print("%s %d: msg_word 0x%x msg_type %d",
- __func__, __LINE__, *msg_word, msg_type);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "%s %d: msg_word 0x%x msg_type %d", __func__, __LINE__,
+ *msg_word, msg_type);
#endif
switch (msg_type) {
diff --git a/core/dp/htt/htt_tx.c b/core/dp/htt/htt_tx.c
index 15863f2a7b11..09a239a3df61 100644
--- a/core/dp/htt/htt_tx.c
+++ b/core/dp/htt/htt_tx.c
@@ -1137,9 +1137,9 @@ static int htt_tx_ipa_uc_wdi_tx_buf_alloc(struct htt_pdev_t *pdev,
tx_buffer_count_pwr2 = qdf_rounddown_pow_of_two(tx_buffer_count + 1)
- 1;
if (tx_buffer_count > tx_buffer_count_pwr2) {
- qdf_print(
- "%s: Allocated Tx buffer count %d is rounded down to %d",
- __func__, tx_buffer_count, tx_buffer_count_pwr2);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "%s: Allocated Tx buffer count %d is rounded down to %d",
+ __func__, tx_buffer_count, tx_buffer_count_pwr2);
/* Free over allocated buffers below power of 2 */
for (idx = tx_buffer_count_pwr2; idx < tx_buffer_count; idx++) {
@@ -1227,9 +1227,9 @@ static int htt_tx_ipa_uc_wdi_tx_buf_alloc(struct htt_pdev_t *pdev,
tx_buffer_count_pwr2 = qdf_rounddown_pow_of_two(tx_buffer_count + 1)
- 1;
if (tx_buffer_count > tx_buffer_count_pwr2) {
- qdf_print(
- "%s: Allocated Tx buffer count %d is rounded down to %d",
- __func__, tx_buffer_count, tx_buffer_count_pwr2);
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO,
+ "%s: Allocated Tx buffer count %d is rounded down to %d",
+ __func__, tx_buffer_count, tx_buffer_count_pwr2);
/* Free over allocated buffers below power of 2 */
for (idx = tx_buffer_count_pwr2; idx < tx_buffer_count; idx++) {
@@ -1693,7 +1693,7 @@ htt_tx_desc_init(htt_pdev_handle pdev,
ce_pkt_type = htt_to_ce_pkt_type[pkt_type];
if (0xffffffff == ce_pkt_type) {
- QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG,
+ QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO_HIGH,
"Invalid HTT pkt type %d\n", pkt_type);
return QDF_STATUS_E_INVAL;
}