diff options
| author | Srinivas Girigowda <sgirigow@qca.qualcomm.com> | 2016-06-14 11:45:11 -0700 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-16 15:40:45 +0530 |
| commit | 4f2c8d81ea0686df13609bd812fad685e53975a9 (patch) | |
| tree | 586f3970a6b29459273cf749a48a03ee0e953817 | |
| parent | 749f0bd02284a57ab7eb0f600ff2d7d8eb6d9037 (diff) | |
qcacld-2.0: Logging enhancement
Add or Change log levels to error level.
Change-Id: Ib8803cca6e8fce60d1be97764065e50cb84235da
CRs-Fixed: 1013264
| -rw-r--r-- | CORE/SERVICES/HTC/htc_send.c | 13 | ||||
| -rw-r--r-- | CORE/SERVICES/WMI/wmi_unified.c | 4 |
2 files changed, 8 insertions, 9 deletions
diff --git a/CORE/SERVICES/HTC/htc_send.c b/CORE/SERVICES/HTC/htc_send.c index c67f17366c4d..3f9f8addb9c6 100644 --- a/CORE/SERVICES/HTC/htc_send.c +++ b/CORE/SERVICES/HTC/htc_send.c @@ -645,11 +645,9 @@ static A_STATUS HTCIssuePackets(HTC_TARGET *target, target->CE_send_cnt++; if (adf_os_unlikely(A_FAILED(status))) { - if (status != A_NO_RESOURCE) { - /* TODO : if more than 1 endpoint maps to the same PipeID it is possible - * to run out of resources in the HIF layer. Don't emit the error */ - AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("HIFSend Failed status:%d \n",status)); - } + /* TODO : if more than 1 endpoint maps to the same PipeID it is possible + * to run out of resources in the HIF layer. Don't emit the error */ + AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("HIFSend Failed status: %d\n", status)); LOCK_HTC_TX(target); target->CE_send_cnt--; pEndpoint->ul_outstanding_cnt--; @@ -963,6 +961,7 @@ static HTC_SEND_QUEUE_RESULT HTCTrySend(HTC_TARGET *target, if (HTC_QUEUE_EMPTY(pCallersSendQueue)) { /* empty queue */ OL_ATH_HTC_PKT_ERROR_COUNT_INCR(target,HTC_PKT_Q_EMPTY); + AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Empty queue\n")); result = HTC_SEND_QUEUE_DROP; break; } @@ -1181,7 +1180,7 @@ A_STATUS HTCSendPktsMultiple(HTC_HANDLE HTCHandle, HTC_PACKET_QUEUE *pPktQueue) pPacket = HTC_GET_PKT_AT_HEAD(pPktQueue); if (NULL == pPacket) { OL_ATH_HTC_PKT_ERROR_COUNT_INCR(target,GET_HTC_PKT_Q_FAIL); - AR_DEBUG_PRINTF(ATH_DEBUG_SEND, ("-HTCSendPktsMultiple \n")); + AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("-HTCSendPktsMultiple \n")); return A_EINVAL; } @@ -1189,7 +1188,7 @@ A_STATUS HTCSendPktsMultiple(HTC_HANDLE HTCHandle, HTC_PACKET_QUEUE *pPktQueue) pEndpoint = &target->EndPoint[pPacket->Endpoint]; if (!pEndpoint->ServiceID) { - AR_DEBUG_PRINTF(ATH_DEBUG_SEND, ("%s: ServiceID is invalid\n", + AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("%s: ServiceID is invalid\n", __func__)); return A_EINVAL; } diff --git a/CORE/SERVICES/WMI/wmi_unified.c b/CORE/SERVICES/WMI/wmi_unified.c index b371ed06b251..2154a8688321 100644 --- a/CORE/SERVICES/WMI/wmi_unified.c +++ b/CORE/SERVICES/WMI/wmi_unified.c @@ -851,9 +851,9 @@ dont_tag: HTC_dump_counter_info(wmi_handle->htc_handle); //dump_CE_register(scn); //dump_CE_debug_register(scn->hif_sc); + pr_err("%s: WMI Pending cmds: %d reached MAX: %d\n", + __func__, adf_os_atomic_read(&wmi_handle->pending_cmds), WMI_MAX_CMDS); adf_os_atomic_dec(&wmi_handle->pending_cmds); - pr_err("%s: MAX %d WMI Pending cmds reached.\n", - __func__, WMI_MAX_CMDS); VOS_BUG(0); return -EBUSY; } |
