X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2F5gnrmac%2Flwr_mac_phy.c;fp=src%2F5gnrmac%2Flwr_mac_phy.c;h=519de20fd2699a4377f6bcf09e0431d2127edb41;hb=525b67cf153ba66b8901989cbba11347bebf13f7;hp=c1aa4dbb3f47d235c8782907bc6da6a5223f90e1;hpb=d0d5d7b78e2a24af16003322cfd1c78bcd8d7664;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_phy.c b/src/5gnrmac/lwr_mac_phy.c index c1aa4dbb3..519de20fd 100644 --- a/src/5gnrmac/lwr_mac_phy.c +++ b/src/5gnrmac/lwr_mac_phy.c @@ -63,7 +63,7 @@ void LwrMacStartWlsRcvr() Pst pst; Buffer *mBuf; - DU_LOG("\nLWR MAC: Requesting to start WLS receiver thread"); + DU_LOG("\nINFO --> LWR MAC : Requesting to start WLS receiver thread"); /* Filling post */ memset(&pst, 0, sizeof(Pst)); @@ -71,7 +71,7 @@ void LwrMacStartWlsRcvr() if (ODU_GET_MSG_BUF(pst.region, pst.pool, &mBuf) != ROK) { - DU_LOG("\nLWR MAC : Memory allocation failed for LwrMacStartWlsRcvr"); + DU_LOG("\nERROR --> LWR MAC : Memory allocation failed for LwrMacStartWlsRcvr"); return; } @@ -227,7 +227,7 @@ void LwrMacRecvPhyMsg() continue; } - printf("\nLWR_MAC: numMsgToGet %d", numMsgToGet); + DU_LOG("\nDEBUG --> LWR_MAC : numMsgToGet %d", numMsgToGet); while(numMsgToGet--) { currElem = NULLP; @@ -286,7 +286,7 @@ uint8_t LwrMacSendToL1(void *msg) addWlsBlockToFree(currMsg, msgLen, (slotIndIdx-1)); if(currMsg->p_next == NULLP) { - DU_LOG("\nThere cannot be only one block to send"); + DU_LOG("\nERROR --> LWR MAC : There cannot be only one block to send"); return RFAILED; } @@ -294,7 +294,7 @@ uint8_t LwrMacSendToL1(void *msg) ret = WLS_Put(wlsHdlr, WLS_VA2PA(wlsHdlr, currMsg), msgLen, currMsg->msg_type, WLS_SG_FIRST); if(ret != 0) { - DU_LOG("\nFailure in sending message to PHY"); + DU_LOG("\nERROR --> LWR MAC : Failure in sending message to PHY"); return RFAILED; } currMsg = currMsg->p_next; @@ -309,7 +309,7 @@ uint8_t LwrMacSendToL1(void *msg) ret = WLS_Put(wlsHdlr, WLS_VA2PA(wlsHdlr, currMsg), msgLen, currMsg->msg_type, WLS_SG_NEXT); if(ret != 0) { - DU_LOG("\nFailure in sending message to PHY"); + DU_LOG("\nERROR --> LWR MAC : Failure in sending message to PHY"); return RFAILED; } currMsg = currMsg->p_next; @@ -320,7 +320,7 @@ uint8_t LwrMacSendToL1(void *msg) ret = WLS_Put(wlsHdlr, WLS_VA2PA(wlsHdlr, currMsg), msgLen, currMsg->msg_type, WLS_SG_LAST); if(ret != 0) { - DU_LOG("\nFailure in sending message to PHY"); + DU_LOG("\nERROR --> LWR MAC : Failure in sending message to PHY"); return RFAILED; } currMsg = NULLP;