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
[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-527] Implementation of E2 Node Configuration...
[o-du/l2.git]
/
src
/
5gnrmac
/
lwr_mac_upr_inf.c
diff --git
a/src/5gnrmac/lwr_mac_upr_inf.c
b/src/5gnrmac/lwr_mac_upr_inf.c
index
9b92d6a
..
1dc79bd
100644
(file)
--- a/
src/5gnrmac/lwr_mac_upr_inf.c
+++ b/
src/5gnrmac/lwr_mac_upr_inf.c
@@
-42,7
+42,7
@@
uint8_t packCrcInd(Pst *pst, CrcInd *crcInd)
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
LWR_MAC: Memory allocation failed in packCrcInd");
+
DU_LOG("\nERROR -->
LWR_MAC: Memory allocation failed in packCrcInd");
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)crcInd, mBuf);
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)crcInd, mBuf);
@@
-107,7
+107,7
@@
uint8_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd)
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
LWR_MAC: Memory allocation failed in packRxDataInd");
+
DU_LOG("\nERROR -->
LWR_MAC: Memory allocation failed in packRxDataInd");
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)rxDataInd, mBuf);
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)rxDataInd, mBuf);
@@
-172,7
+172,7
@@
uint8_t packRachInd(Pst *pst, RachInd *rachInd)
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
LWR_MAC: Memory allocation failed in packRachInd");
+
DU_LOG("\nERROR -->
LWR_MAC: Memory allocation failed in packRachInd");
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)rachInd, mBuf);
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)rachInd, mBuf);
@@
-229,14
+229,14
@@
uint8_t unpackRachInd(RachIndFunc func, Pst *pst, Buffer *mBuf)
* RFAILED - failure
*
* ****************************************************************/
* RFAILED - failure
*
* ****************************************************************/
-uint8_t packSlotInd (Pst *pst, Slot
Ind
Info *slotInd)
+uint8_t packSlotInd (Pst *pst, Slot
Timing
Info *slotInd)
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
LWR_MAC: Memory allocation failed in packSlotInd");
+
DU_LOG("\nERROR -->
LWR_MAC: Memory allocation failed in packSlotInd");
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)slotInd, mBuf);
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)slotInd, mBuf);
@@
-266,7
+266,7
@@
uint8_t unpackSlotInd(SlotIndFunc func, Pst *pst, Buffer *mBuf)
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
- Slot
Ind
Info *slotInd = NULLP;
+ Slot
Timing
Info *slotInd = NULLP;
/* unpack the address of the structure */
CMCHKUNPK(oduUnpackPointer, (PTR *)&slotInd, mBuf);
/* unpack the address of the structure */
CMCHKUNPK(oduUnpackPointer, (PTR *)&slotInd, mBuf);
@@
-300,7
+300,7
@@
uint8_t packStopInd(Pst *pst, uint16_t *cellId)
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
LWR_MAC: Memory allocation failed in packStopInd");
+
DU_LOG("\nERROR -->
LWR_MAC: Memory allocation failed in packStopInd");
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)cellId, mBuf);
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)cellId, mBuf);
@@
-363,7
+363,7
@@
uint8_t packUciInd(Pst *pst, UciInd *uciInd)
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
Buffer *mBuf = NULLP;
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
LWR_MAC: Memory allocation failed in packUciInd");
+
DU_LOG("\nERROR -->
LWR_MAC: Memory allocation failed in packUciInd");
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)uciInd, mBuf);
return RFAILED;
}
CMCHKPK(oduPackPointer,(PTR)uciInd, mBuf);