From b4fd609e03d9149c7ee37a163cb232437c216ec3 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Mon, 11 Jun 2018 15:39:13 -0700 Subject: [PATCH] qcacmn: Reduce excessive p2p logging during suspend Several bits of debug information are being logged to console from the p2p module, which is seen consistently during suspend/resume. Reduce the logging level of these debug logs to avoid spamming the console. Change-Id: I4cf63e88a9d0391fb366b11fa3eb14e9f2f69698 CRs-Fixed: 2258427 --- umac/p2p/core/src/wlan_p2p_off_chan_tx.c | 8 +++---- umac/p2p/core/src/wlan_p2p_roc.c | 30 ++++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/umac/p2p/core/src/wlan_p2p_off_chan_tx.c b/umac/p2p/core/src/wlan_p2p_off_chan_tx.c index c74c3a0f93f0..f50b0db93fb7 100644 --- a/umac/p2p/core/src/wlan_p2p_off_chan_tx.c +++ b/umac/p2p/core/src/wlan_p2p_off_chan_tx.c @@ -1654,8 +1654,8 @@ QDF_STATUS p2p_cleanup_tx_queue(struct p2p_soc_priv_obj *p2p_soc_obj) struct tx_action_context *curr_tx_ctx; qdf_list_node_t *p_node; - p2p_info("clean up tx queue wait for roc, size:%d", - qdf_list_size(&p2p_soc_obj->tx_q_roc)); + p2p_debug("clean up tx queue wait for roc, size:%d", + qdf_list_size(&p2p_soc_obj->tx_q_roc)); while (qdf_list_remove_front(&p2p_soc_obj->tx_q_roc, &p_node) == QDF_STATUS_SUCCESS) { @@ -1666,8 +1666,8 @@ QDF_STATUS p2p_cleanup_tx_queue(struct p2p_soc_priv_obj *p2p_soc_obj) qdf_mem_free(curr_tx_ctx); } - p2p_info("clean up tx queue wait for ack, size:%d", - qdf_list_size(&p2p_soc_obj->tx_q_ack)); + p2p_debug("clean up tx queue wait for ack, size:%d", + qdf_list_size(&p2p_soc_obj->tx_q_ack)); while (qdf_list_remove_front(&p2p_soc_obj->tx_q_ack, &p_node) == QDF_STATUS_SUCCESS) { curr_tx_ctx = qdf_container_of(p_node, diff --git a/umac/p2p/core/src/wlan_p2p_roc.c b/umac/p2p/core/src/wlan_p2p_roc.c index ff8a55c2ec3e..3650af9d73e5 100644 --- a/umac/p2p/core/src/wlan_p2p_roc.c +++ b/umac/p2p/core/src/wlan_p2p_roc.c @@ -658,20 +658,20 @@ QDF_STATUS p2p_cleanup_roc_queue(struct p2p_soc_priv_obj *p2p_soc_obj) qdf_list_node_t *p_node; QDF_STATUS status, ret; - p2p_info("clean up idle roc request, roc queue size:%d", - qdf_list_size(&p2p_soc_obj->roc_q)); + p2p_debug("clean up idle roc request, roc queue size:%d", + qdf_list_size(&p2p_soc_obj->roc_q)); status = qdf_list_peek_front(&p2p_soc_obj->roc_q, &p_node); while (QDF_IS_STATUS_SUCCESS(status)) { roc_ctx = qdf_container_of(p_node, struct p2p_roc_context, node); - p2p_info("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d", - roc_ctx->p2p_soc_obj, roc_ctx, - roc_ctx->vdev_id, roc_ctx->scan_id, - roc_ctx->tx_ctx, roc_ctx->chan, - roc_ctx->phy_mode, roc_ctx->duration, - roc_ctx->roc_type, roc_ctx->roc_state); + p2p_debug("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d", + roc_ctx->p2p_soc_obj, roc_ctx, + roc_ctx->vdev_id, roc_ctx->scan_id, + roc_ctx->tx_ctx, roc_ctx->chan, + roc_ctx->phy_mode, roc_ctx->duration, + roc_ctx->roc_type, roc_ctx->roc_state); status = qdf_list_peek_next(&p2p_soc_obj->roc_q, p_node, &p_node); if (roc_ctx->roc_state == ROC_STATE_IDLE) { @@ -686,18 +686,18 @@ QDF_STATUS p2p_cleanup_roc_queue(struct p2p_soc_priv_obj *p2p_soc_obj) } } - p2p_info("clean up started roc request, roc queue size:%d", - qdf_list_size(&p2p_soc_obj->roc_q)); + p2p_debug("clean up started roc request, roc queue size:%d", + qdf_list_size(&p2p_soc_obj->roc_q)); status = qdf_list_peek_front(&p2p_soc_obj->roc_q, &p_node); while (QDF_IS_STATUS_SUCCESS(status)) { roc_ctx = qdf_container_of(p_node, struct p2p_roc_context, node); - p2p_info("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx_ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d", - roc_ctx->p2p_soc_obj, roc_ctx, roc_ctx->vdev_id, - roc_ctx->scan_id, roc_ctx->tx_ctx, roc_ctx->chan, - roc_ctx->phy_mode, roc_ctx->duration, - roc_ctx->roc_type, roc_ctx->roc_state); + p2p_debug("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx_ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d", + roc_ctx->p2p_soc_obj, roc_ctx, roc_ctx->vdev_id, + roc_ctx->scan_id, roc_ctx->tx_ctx, roc_ctx->chan, + roc_ctx->phy_mode, roc_ctx->duration, + roc_ctx->roc_type, roc_ctx->roc_state); status = qdf_list_peek_next(&p2p_soc_obj->roc_q, p_node, &p_node);