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
/
mac_slot_ind.c
diff --git
a/src/5gnrmac/mac_slot_ind.c
b/src/5gnrmac/mac_slot_ind.c
index
6bc961b
..
2ea5be9
100644
(file)
--- a/
src/5gnrmac/mac_slot_ind.c
+++ b/
src/5gnrmac/mac_slot_ind.c
@@
-157,7
+157,7
@@
void fillMsg4Pdu(uint16_t cellId, DlMsgAlloc *msg4Alloc)
}
else
{
}
else
{
- DU_LOG("\nMAC: Failed allocating memory for msg4TxPdu");
+ DU_LOG("\n
ERROR -->
MAC: Failed allocating memory for msg4TxPdu");
}
/* Free memory allocated */
MAC_FREE(msg4DlData.pduInfo[0].dlPdu, macCb.macCell[cellIdx]->macRaCb[ueIdx].msg4PduLen);
}
/* Free memory allocated */
MAC_FREE(msg4DlData.pduInfo[0].dlPdu, macCb.macCell[cellIdx]->macRaCb[ueIdx].msg4PduLen);
@@
-177,7
+177,7
@@
void fillMsg4Pdu(uint16_t cellId, DlMsgAlloc *msg4Alloc)
}
else
{
}
else
{
- DU_LOG("\nMAC: Failed at macMuxPdu()");
+ DU_LOG("\n
ERROR -->
MAC: Failed at macMuxPdu()");
}
}
}
}
@@
-264,7
+264,7
@@
int sendCellUpIndMacToDuApp(uint16_t cellId)
MAC_ALLOC_SHRABL_BUF(oduCellId, sizeof(OduCellId));
if(!oduCellId)
{
MAC_ALLOC_SHRABL_BUF(oduCellId, sizeof(OduCellId));
if(!oduCellId)
{
- DU_LOG("\nMAC : Memory allocation failed for cell up indication");
+ DU_LOG("\n
ERROR -->
MAC : Memory allocation failed for cell up indication");
return RFAILED;
}
oduCellId->cellId = cellId;
return RFAILED;
}
oduCellId->cellId = cellId;
@@
-275,7
+275,7
@@
int sendCellUpIndMacToDuApp(uint16_t cellId)
ret = MacDuAppCellUpInd(&pst, oduCellId);
if(ret != ROK)
{
ret = MacDuAppCellUpInd(&pst, oduCellId);
if(ret != ROK)
{
- DU_LOG("\nMAC: Failed to send cell up indication to DU APP");
+ DU_LOG("\n
ERROR -->
MAC: Failed to send cell up indication to DU APP");
MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, oduCellId, sizeof(OduCellId));
}
MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, oduCellId, sizeof(OduCellId));
}
@@
-299,7
+299,7
@@
int sendCellUpIndMacToDuApp(uint16_t cellId)
* ****************************************************************/
uint8_t macProcSlotInd(SlotIndInfo slotInd)
{
* ****************************************************************/
uint8_t macProcSlotInd(SlotIndInfo slotInd)
{
- uint16_t cellIdx;
+ uint16_t cellIdx
= 0
;
GET_CELL_IDX(slotInd.cellId, cellIdx);
GET_CELL_IDX(slotInd.cellId, cellIdx);
@@
-345,7
+345,7
@@
uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd)
volatile uint32_t startTime=0;
#ifdef ODU_SLOT_IND_DEBUG_LOG
volatile uint32_t startTime=0;
#ifdef ODU_SLOT_IND_DEBUG_LOG
- DU_LOG("\nMAC : Slot Indication received");
+ DU_LOG("\n
DEBUG -->
MAC : Slot Indication received");
#endif
/*starting Task*/
ODU_START_TASK(&startTime, PID_MAC_TTI_IND);
#endif
/*starting Task*/
ODU_START_TASK(&startTime, PID_MAC_TTI_IND);
@@
-358,7
+358,7
@@
uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd)
ret = sendSlotIndMacToSch(slotInd);
if(ret != ROK)
{
ret = sendSlotIndMacToSch(slotInd);
if(ret != ROK)
{
- DU_LOG("\nMAC : Sending of slot ind msg from MAC to SCH failed");
+ DU_LOG("\n
ERROR -->
MAC : Sending of slot ind msg from MAC to SCH failed");
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
@@
-366,7
+366,7
@@
uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd)
ret = macProcSlotInd(*slotInd);
if(ret != ROK)
{
ret = macProcSlotInd(*slotInd);
if(ret != ROK)
{
- DU_LOG("\nMAC : macProcSlotInd failed");
+ DU_LOG("\n
ERROR -->
MAC : macProcSlotInd failed");
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
@@
-378,7
+378,7
@@
uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd)
ret = sendCellUpIndMacToDuApp(slotInd->cellId);
if(ret != ROK)
{
ret = sendCellUpIndMacToDuApp(slotInd->cellId);
if(ret != ROK)
{
- DU_LOG("\nMAC :Sending of slot ind msg from MAC to DU APP failed");
+ DU_LOG("\n
ERROR -->
MAC :Sending of slot ind msg from MAC to DU APP failed");
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}