Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Part -5 Separation of log [JIRA-ID ODUHIGH-275]
[o-du/l2.git]
/
src
/
5gnrmac
/
lwr_mac_phy.c
diff --git
a/src/5gnrmac/lwr_mac_phy.c
b/src/5gnrmac/lwr_mac_phy.c
index
a02195c
..
519de20
100644
(file)
--- a/
src/5gnrmac/lwr_mac_phy.c
+++ b/
src/5gnrmac/lwr_mac_phy.c
@@
-63,7
+63,7
@@
void LwrMacStartWlsRcvr()
Pst pst;
Buffer *mBuf;
Pst pst;
Buffer *mBuf;
- DU_LOG("\n
LWR MAC
: Requesting to start WLS receiver thread");
+ DU_LOG("\n
INFO --> LWR MAC
: Requesting to start WLS receiver thread");
/* Filling post */
memset(&pst, 0, sizeof(Pst));
/* Filling post */
memset(&pst, 0, sizeof(Pst));
@@
-71,7
+71,7
@@
void LwrMacStartWlsRcvr()
if (ODU_GET_MSG_BUF(pst.region, pst.pool, &mBuf) != ROK)
{
if (ODU_GET_MSG_BUF(pst.region, pst.pool, &mBuf) != ROK)
{
- DU_LOG("\nLWR MAC : Memory allocation failed for LwrMacStartWlsRcvr");
+ DU_LOG("\n
ERROR -->
LWR MAC : Memory allocation failed for LwrMacStartWlsRcvr");
return;
}
return;
}
@@
-137,8
+137,8
@@
void LwrMacEnqueueWlsBlock()
* ****************************************************************/
void addWlsBlockToFree(void *msg, uint32_t msgLen, uint8_t idx)
{
* ****************************************************************/
void addWlsBlockToFree(void *msg, uint32_t msgLen, uint8_t idx)
{
- CmLList *node;
- WlsBlockToFree *block;
+ CmLList *node
= NULLP
;
+ WlsBlockToFree *block
= NULLP
;
MAC_ALLOC(block, sizeof(WlsBlockToFree));
if(block)
{
MAC_ALLOC(block, sizeof(WlsBlockToFree));
if(block)
{
@@
-215,7
+215,6
@@
void LwrMacRecvPhyMsg()
uint16_t msgType;
uint16_t flag = 0;
p_fapi_api_queue_elem_t currElem = NULLP;
uint16_t msgType;
uint16_t flag = 0;
p_fapi_api_queue_elem_t currElem = NULLP;
- struct timeval time;
mtGetWlsHdl(&wlsHdlr);
if(WLS_Ready(wlsHdlr) == 0)
mtGetWlsHdl(&wlsHdlr);
if(WLS_Ready(wlsHdlr) == 0)
@@
-228,7
+227,7
@@
void LwrMacRecvPhyMsg()
continue;
}
continue;
}
-
printf("\nLWR_MAC
: numMsgToGet %d", numMsgToGet);
+
DU_LOG("\nDEBUG --> LWR_MAC
: numMsgToGet %d", numMsgToGet);
while(numMsgToGet--)
{
currElem = NULLP;
while(numMsgToGet--)
{
currElem = NULLP;
@@
-273,7
+272,7
@@
uint8_t LwrMacSendToL1(void *msg)
{
uint8_t ret = ROK;
#ifdef INTEL_FAPI
{
uint8_t ret = ROK;
#ifdef INTEL_FAPI
- uint16_t msgLen;
+ uint16_t msgLen
=0
;
p_fapi_api_queue_elem_t currMsg = NULLP;
#ifdef INTEL_WLS_MEM
p_fapi_api_queue_elem_t currMsg = NULLP;
#ifdef INTEL_WLS_MEM
@@
-287,7
+286,7
@@
uint8_t LwrMacSendToL1(void *msg)
addWlsBlockToFree(currMsg, msgLen, (slotIndIdx-1));
if(currMsg->p_next == NULLP)
{
addWlsBlockToFree(currMsg, msgLen, (slotIndIdx-1));
if(currMsg->p_next == NULLP)
{
- DU_LOG("\nThere cannot be only one block to send");
+ DU_LOG("\n
ERROR --> LWR MAC :
There cannot be only one block to send");
return RFAILED;
}
return RFAILED;
}
@@
-295,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)
{
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("\n
ERROR --> LWR MAC :
Failure in sending message to PHY");
return RFAILED;
}
currMsg = currMsg->p_next;
return RFAILED;
}
currMsg = currMsg->p_next;
@@
-310,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)
{
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("\n
ERROR --> LWR MAC :
Failure in sending message to PHY");
return RFAILED;
}
currMsg = currMsg->p_next;
return RFAILED;
}
currMsg = currMsg->p_next;
@@
-321,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)
{
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("\n
ERROR --> LWR MAC :
Failure in sending message to PHY");
return RFAILED;
}
currMsg = NULLP;
return RFAILED;
}
currMsg = NULLP;