}
else
{
- printf("\nLWR_MAC: Memory allocation failed in procSlotInd");
+ DU_LOG("\nERROR --> LWR_MAC: Memory allocation failed in procSlotInd");
ret = RFAILED;
}
MAC_ALLOC_SHRABL_BUF(cellId, sizeof(uint16_t));
if(!cellId)
{
- printf("\nLWR_MAC: Memory Allocation failed in procStopInd");
+ DU_LOG("\nERROR --> LWR_MAC: Memory Allocation failed in procStopInd");
return RFAILED;
}
*cellId = lwrMacCb.cellCb[0].cellId;
lwrMacCb.phyState = PHY_STATE_CONFIGURED;
lwrMacCb.cellCb[0].state = PHY_STATE_CONFIGURED;
- DU_LOG("\nLWR_MAC: PHY has moved to configured state");
+ DU_LOG("\nINFO --> LWR_MAC: PHY has moved to configured state");
FILL_PST_LWR_MAC_TO_MAC(pst, EVENT_STOP_IND_TO_MAC);
return (*sendStopIndOpts[pst.selector])(&pst, cellId);
MAC_ALLOC_SHRABL_BUF(rachInd, sizeof(RachInd));
if(!rachInd)
{
- printf("\nLWR_MAC: Memory Allocation failed in procRachInd");
+ DU_LOG("\nERROR --> LWR_MAC: Memory Allocation failed in procRachInd");
return RFAILED;
}
MAC_ALLOC_SHRABL_BUF(crcInd, sizeof(CrcInd));
if(!crcInd)
{
- printf("\nLWR_MAC: Memory Allocation failed in procCrcInd");
+ DU_LOG("\nERROR --> LWR_MAC: Memory Allocation failed in procCrcInd");
return RFAILED;
}
MAC_ALLOC_SHRABL_BUF(rxDataInd, sizeof(RxDataInd));
if(!rxDataInd)
{
- printf("\nLWR_MAC: Memory Allocation failed in procRxDataInd");
+ DU_LOG("\nERROR --> LWR_MAC: Memory Allocation failed in procRxDataInd");
return RFAILED;
}
MAC_ALLOC_SHRABL_BUF(macUciInd, sizeof(UciInd));
if(!macUciInd)
{
- printf("\nLWR_MAC: Memory Allocation failed in procUciInd");
+ DU_LOG("\nERROR --> LWR_MAC: Memory Allocation failed in procUciInd");
return RFAILED;
}
+ DU_LOG("\nDEBUG --> LWR_MAC: Processing UCI Indication");
memset(macUciInd, 0, sizeof(UciInd));
macUciInd->cellId = lwrMacCb.cellCb[0].cellId;
macUciInd->slotInd.sfn = fapiUciInd->sfn;
case UCI_IND_PUCCH_F2F3F4:
break;
default:
- DU_LOG("\nLWR_MAC: Invalid Pdu Type %d at procmacUciInd()", macUciInd->pdus[pduIdx].pduType);
+ DU_LOG("\nERROR --> LWR_MAC: Invalid Pdu Type %d at procmacUciInd()", macUciInd->pdus[pduIdx].pduType);
ret = RFAILED;
break;
}
}
else
{
- DU_LOG("\nLWR_MAC: Failed sending UCI Ind to MAC");
+ DU_LOG("\nERROR --> LWR_MAC: Failed sending UCI Ind to MAC");
}
return ret;
}
#ifdef INTEL_TIMER_MODE
case FAPI_VENDOR_EXT_UL_IQ_SAMPLES:
{
- printf("\nLWR_MAC: Received FAPI_VENDOR_EXT_UL_IQ_SAMPLES");
+ DU_LOG("\nDEBUG --> LWR_MAC: Received FAPI_VENDOR_EXT_UL_IQ_SAMPLES");
//send config req
uint16_t cellId = 1;
sendToLowerMac(CONFIG_REQUEST, 0, (void *)&cellId);
{
if(lwrMacCb.phyState == PHY_STATE_CONFIGURED)
{
- DU_LOG("\nLWR_MAC: PHY has moved to running state");
+ DU_LOG("\nINFO --> LWR_MAC: PHY has moved to running state");
lwrMacCb.phyState = PHY_STATE_RUNNING;
lwrMacCb.cellCb[0].state = PHY_STATE_RUNNING;
}
}
case FAPI_STOP_INDICATION:
{
- DU_LOG("\nLWR_MAC: Handling Stop Indication");
+ DU_LOG("\nINFO --> LWR_MAC: Handling Stop Indication");
procStopInd();
break;
}
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);
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);
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);
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);
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);
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);