X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_upr_inf.c;h=1dc79bdcc0c7cac4515b23218e64315698a3e72f;hb=de6a435729e3cad9d4a66329080b8206a64f452c;hp=9b92d6af85e45b8b28dee686e8c8dc4964fab385;hpb=9634ca974c4418c0800090e33d37ef1fe7e8cb30;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_upr_inf.c b/src/5gnrmac/lwr_mac_upr_inf.c index 9b92d6af8..1dc79bdcc 100644 --- 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) { - printf("\nLWR_MAC: Memory allocation failed in packCrcInd"); + DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in packCrcInd"); 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) { - printf("\nLWR_MAC: Memory allocation failed in packRxDataInd"); + DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in packRxDataInd"); 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) { - printf("\nLWR_MAC: Memory allocation failed in packRachInd"); + DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in packRachInd"); return RFAILED; } CMCHKPK(oduPackPointer,(PTR)rachInd, mBuf); @@ -229,14 +229,14 @@ uint8_t unpackRachInd(RachIndFunc func, Pst *pst, Buffer *mBuf) * RFAILED - failure * * ****************************************************************/ -uint8_t packSlotInd (Pst *pst, SlotIndInfo *slotInd) +uint8_t packSlotInd (Pst *pst, SlotTimingInfo *slotInd) { if(pst->selector == ODU_SELECTOR_LWLC) { Buffer *mBuf = NULLP; if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { - printf("\nLWR_MAC: Memory allocation failed in packSlotInd"); + DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in packSlotInd"); 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) { - SlotIndInfo *slotInd = NULLP; + SlotTimingInfo *slotInd = NULLP; /* 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) { - printf("\nLWR_MAC: Memory allocation failed in packStopInd"); + DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in packStopInd"); 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) { - printf("\nLWR_MAC: Memory allocation failed in packUciInd"); + DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in packUciInd"); return RFAILED; } CMCHKPK(oduPackPointer,(PTR)uciInd, mBuf);