#ifndef LTE_ENB_PAL
if( evntSize > maxBlkSize)
{
- printf("\nNot Allocating memory for Event\n");
+ DU_LOG("\nERROR --> Not Allocating memory for Event\n");
#ifdef ALIGN_64BIT
- printf("eventSize [%d] greater than maxBlkSize [%d]\n",
+ DU_LOG("\nERROR --> eventSize [%d] greater than maxBlkSize [%d]\n",
evntSize, maxBlkSize);
#else
- printf("eventSize [%ld] greater than maxBlkSize [%ld]\n",
+ DU_LOG("\nERROR --> eventSize [%ld] greater than maxBlkSize [%ld]\n",
evntSize, maxBlkSize);
#endif
return RFAILED;
#include "cm_lte.h" /* Common LTE header file */
#include "cm_llist.h" /* Linked list header file */
#include "cm_tkns.h" /* Common tokens header file */
-
+#include "du_log.h"
/* header/extern include files (.x) */
if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
- printf("\n MBuf Allocation failed\n");
+ DU_LOG("\nERROR --> RLC : MBuf Allocation failed\n");
}
return (mBuf);
}
/* pack the address of the structure */
CMCHKPK(oduPackPointer,(PTR)macCellCfg, mBuf);
- DU_LOG("\nDU-APP : MAC CELL config sent");
+ DU_LOG("\nDEBUG --> DU-APP : MAC CELL config sent");
return ODU_POST_TASK(pst,mBuf);
}
return ROK;
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nDU APP : Memory allocation failed for cell start req pack");
+ DU_LOG("\nERROR --> DU APP : Memory allocation failed for cell start req pack");
return RFAILED;
}
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nDU APP : Memory allocation failed for cell stop req pack");
+ DU_LOG("\nERROR --> DU APP : Memory allocation failed for cell stop req pack");
return RFAILED;
}
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nDU APP : Memory allocation failed for packMacCellUpInd");
+ DU_LOG("\nERROR --> DU APP : Memory allocation failed for packMacCellUpInd");
return RFAILED;
}
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nDU APP : Memory allocation failed for stop Ind pack");
+ DU_LOG("\nERROR --> DU APP : Memory allocation failed for stop Ind pack");
return RFAILED;
}
if(pst->selector == ODU_SELECTOR_LC)
{
/*pack the payload here*/
- DU_LOG("\nDU APP : Packed CellId");
CMCHKPK(oduUnpackUInt16, cellId->cellId, mBuf);
CM_FREE_SHRABL_BUF(pst->region, pst->pool, cellId, sizeof(OduCellId));
cellId = NULL;
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC : Memory allocation failed at packMacUlCcchInd");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packMacUlCcchInd");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nMAC: Only LWLC supported for UL CCCH Ind ");
+ DU_LOG("\nERROR --> MAC: Only LWLC supported for UL CCCH Ind ");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\n Only LWLC supported for UL CCCH Ind ");
+ DU_LOG("\nERROR --> MAC : Only LWLC supported for UL CCCH Ind ");
ODU_PUT_MSG_BUF(mBuf);
}
return RFAILED;
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC : Memory allocation failed at packMacDlCcchInd");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packMacDlCcchInd");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nDU APP: Only LWLC supported for DL CCCH Ind ");
+ DU_LOG("\nERROR --> DU APP : Only LWLC supported for DL CCCH Ind ");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\n Only LWLC supported for DL CCCH Ind ");
+ DU_LOG("\nERROR --> DU APP : Only LWLC supported for DL CCCH Ind ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC : Memory allocation failed at packDuMacUeCreateReq");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packDuMacUeCreateReq");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nMAC: Only LWLC supported for packDuMacUeCreateReq");
+ DU_LOG("\nERROR --> MAC: Only LWLC supported for packDuMacUeCreateReq");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\n Only LWLC supported for UE Create Request ");
+ DU_LOG("\nERROR --> DU APP : Only LWLC supported for UE Create Request ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC : Memory allocation failed at packDuMacUeCfgRsp");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packDuMacUeCfgRsp");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nMAC: Only LWLC supported for packDuMacUeCfgRsp");
+ DU_LOG("\nERROR --> MAC: Only LWLC supported for packDuMacUeCfgRsp");
return RFAILED;
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC : Memory allocation failed at packDuMacUeReconfigReq");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packDuMacUeReconfigReq");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nMAC: Only LWLC supported for packDuMacUeReconfigReq");
+ DU_LOG("\nERROR --> MAC: Only LWLC supported for packDuMacUeReconfigReq");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\n Only LWLC supported for UE Create Request ");
+ DU_LOG("\nERROR --> DU APP : Only LWLC supported for UE Create Request ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packDuRlcUeCreateReq");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packDuRlcUeCreateReq");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packDuRlcUeCreateReq");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packDuRlcUeCreateReq");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UE Create Request ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UE Create Request ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcDuUeCfgRsp");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDuUeCfgRsp");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRlcDuUeCfgRsp");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRlcDuUeCfgRsp");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UE Cfg Response ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UE Cfg Response ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcUlRrcMsgToDu");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcUlRrcMsgToDu");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRlcUlRrcMsgToDu");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRlcUlRrcMsgToDu");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UL RRC Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UL RRC Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcDlRrcMsgToRlc");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDlRrcMsgToRlc");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packDlRrcMsgToRlc");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packDlRrcMsgToRlc");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UL RRC Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UL RRC Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
return RFAILED;
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRrcDeliveryReportToDu");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRrcDeliveryReportToDu");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRrcDeliveryReportToDu");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRrcDeliveryReportToDu");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for RRC delivery Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for RRC delivery Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packDuRlcUeReconfigReq");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packDuRlcUeReconfigReq");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packDuRlcUeReconfigReq");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packDuRlcUeReconfigReq");
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for UE Create Request ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for UE Create Request ");
ODU_PUT_MSG_BUF(mBuf);
}
return RFAILED;
{
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC : Memory allocation failed at packRlcDlRrcMsgRspToDu");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDlRrcMsgRspToDu");
return RFAILED;
}
/* pack the address of the structure */
}
else
{
- DU_LOG("\nRLC: Only LWLC supported for packRlcDlRrcMsgRspToDu");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for packRlcDlRrcMsgRspToDu");
}
return RFAILED;
}
else
{
/* Nothing to do for other selectors */
- DU_LOG("\nRLC: Only LWLC supported for DL RRC Message transfer ");
+ DU_LOG("\nERROR --> RLC: Only LWLC supported for DL RRC Message transfer ");
ODU_PUT_MSG_BUF(mBuf);
}
return RFAILED;
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC: Memory allocation failed at packBOStatus");
+ DU_LOG("\nERROR --> RLC: Memory allocation failed at packBOStatus");
return RFAILED;
}
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC: Memory allocation failed at packSchResultRep");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packSchResultRep");
return RFAILED;
}
if (pst->selector == ODU_SELECTOR_LWLC)
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nRLC: Memory allocation failed at packRlcDlData");
+ DU_LOG("\nERROR --> RLC : Memory allocation failed at packRlcDlData");
return RFAILED;
}
if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- DU_LOG("\nMAC : Memory allocation failed at packRlcUlData");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed at packRlcUlData");
return RFAILED;
}