From 082b269b31990bb7ddc3b387e921bf7c68bf4292 Mon Sep 17 00:00:00 2001 From: sphoorthi Date: Fri, 8 Jan 2021 19:00:09 +0530 Subject: [PATCH] Separation of logs in based on error, info, debug Change-Id: I5e7be33e9c987f47b3deae8b01cf89733afe1812 Signed-off-by: sphoorthi --- src/du_app/du_cell_mgr.c | 16 +- src/du_app/du_cfg.c | 16 +- src/du_app/du_e2ap_msg_hdl.c | 105 ++++----- src/du_app/du_egtp.c | 74 ++++--- src/du_app/du_f1ap_msg_hdl.c | 516 +++++++++++++++++++++---------------------- src/du_app/du_mgr_ex_ms.c | 12 +- src/du_app/du_mgr_main.c | 36 +-- src/du_app/du_msg_hdl.c | 94 ++++---- src/du_app/du_sctp.c | 78 +++---- src/du_app/du_sys_info_hdl.c | 186 ++++++++-------- src/du_app/du_ue_mgr.c | 142 ++++++------ 11 files changed, 638 insertions(+), 637 deletions(-) diff --git a/src/du_app/du_cell_mgr.c b/src/du_app/du_cell_mgr.c index cbb092b44..a2208db39 100644 --- a/src/du_app/du_cell_mgr.c +++ b/src/du_app/du_cell_mgr.c @@ -65,7 +65,7 @@ uint8_t duProcCellsToBeActivated(uint8_t *plmnStr, uint16_t nci, uint16_t nRPci) } else { - DU_LOG("\nDU APP : No Cell found for NCI %d", nci); + DU_LOG("\nERROR --> DU APP : No Cell found for NCI %d", nci); return RFAILED; } } @@ -77,7 +77,7 @@ uint8_t duProcCellsToBeActivated(uint8_t *plmnStr, uint16_t nci, uint16_t nRPci) if(duBuildAndSendMacCellCfg(cellCb->cellId) != ROK) { - DU_LOG("\nDU APP : macCellCfg build and send failed"); + DU_LOG("\nERROR --> DU APP : macCellCfg build and send failed"); /* Delete cell from actvCellList */ duCb.actvCellLst[--(duCb.numActvCells)] = NULLP; ret = RFAILED; @@ -102,7 +102,7 @@ uint8_t duProcCellsToBeActivated(uint8_t *plmnStr, uint16_t nci, uint16_t nRPci) ******************************************************************/ void duProcF1SetupRsp() { - DU_LOG("\nDU_APP : F1 Setup Response received"); + DU_LOG("\nINFO --> DU_APP : F1 Setup Response received"); duCb.f1Status = TRUE; //Set F1 status as true } @@ -123,7 +123,7 @@ void duProcF1SetupRsp() ******************************************************************/ void duProcGnbDuCfgUpdAckMsg() { - DU_LOG("\nDU APP: GNB-DU config update Ack received "); + DU_LOG("\nINFO --> DU APP: GNB-DU config update Ack received "); } /******************************************************************* * @@ -152,7 +152,7 @@ uint8_t duGetCellCb(uint16_t cellId, DuCellCb **cellCb) if(!*cellCb) { - DU_LOG("\nDU APP : Cell Id %d not found in DU APP", cellId); + DU_LOG("\nERROR --> DU APP : Cell Id %d not found in DU APP", cellId); return RFAILED; } @@ -182,7 +182,7 @@ uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId) if(cellId->cellId <=0 || cellId->cellId > MAX_NUM_CELL) { - DU_LOG("\nDU APP : Invalid Cell Id %d in duHandleCellUpInd()", cellId->cellId); + DU_LOG("\nERROR --> DU APP : Invalid Cell Id %d in duHandleCellUpInd()", cellId->cellId); return RFAILED; } @@ -191,11 +191,11 @@ uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId) if((cellCb != NULL) && (cellCb->cellStatus == ACTIVATION_IN_PROGRESS)) { - DU_LOG("\nDU APP : 5G-NR Cell %d is UP", cellId->cellId); + DU_LOG("\nINFO --> DU APP : 5G-NR Cell %d is UP", cellId->cellId); cellCb->cellStatus = ACTIVATED; #ifdef O1_ENABLE - DU_LOG("\nDU APP : Raise cell UP alarm for cell id=%d", cellId->cellId); + DU_LOG("\nINFO --> DU APP : Raise cell UP alarm for cell id=%d", cellId->cellId); raiseCellAlrm(CELL_UP_ALARM_ID, cellId->cellId); #endif } diff --git a/src/du_app/du_cfg.c b/src/du_app/du_cfg.c index 18032e708..a596fdf2b 100644 --- a/src/du_app/du_cfg.c +++ b/src/du_app/du_cfg.c @@ -177,7 +177,7 @@ uint8_t readMacCfg() duCfgParam.macCellCfg.ssbCfg.ssbMask[1] = 0; if(BuildMibPdu() != ROK) { - DU_LOG("\nFailed to build MIB PDU"); + DU_LOG("\nERROR --> Failed to build MIB PDU"); memset(&duCfgParam.macCellCfg.ssbCfg.mibPdu, 0, 3*sizeof(uint8_t)); } else @@ -210,7 +210,7 @@ uint8_t readMacCfg() NUM_UNUSED_ROOT_SEQ * sizeof(uint8_t)); if(duCfgParam.macCellCfg.prachCfg.fdm[0].unsuedRootSeq == NULLP) { - DU_LOG("\nDU_APP : Memory allocation failed"); + DU_LOG("\nERROR --> DU_APP : Memory allocation failed at readMacCfg"); return RFAILED; } *(duCfgParam.macCellCfg.prachCfg.fdm[0].unsuedRootSeq) = UNUSED_ROOT_SEQ; @@ -714,7 +714,7 @@ uint8_t readCfg() strlen(encBuf)); if(!(duCfgParam.srvdCellLst[i].duSysInfo.mibMsg)) { - DU_LOG("\nDU_APP: Memory allocation failure"); + DU_LOG("\nERROR --> DU APP : Memory allocation failure at readCfg"); return RFAILED; } strcpy((char *)duCfgParam.srvdCellLst[i].duSysInfo.mibMsg, encBuf); @@ -726,7 +726,7 @@ uint8_t readCfg() encBufSize); if(!(duCfgParam.srvdCellLst[i].duSysInfo.sib1Msg)) { - DU_LOG("\nDU_APP: Memory allocation failure"); + DU_LOG("\nERROR --> DU APP : Memory allocation failure at readCfg"); return RFAILED; } memcpy(duCfgParam.srvdCellLst[i].duSysInfo.sib1Msg,\ @@ -737,7 +737,7 @@ uint8_t readCfg() if(readMacCfg() != ROK) { - DU_LOG("\nDU_APP : Failed while reading MAC config"); + DU_LOG("\nERROR --> DU_APP : Failed while reading MAC config"); return RFAILED; } @@ -770,7 +770,7 @@ uint8_t duReadCfg() //Read configs into duCfgParams if(readCfg() != ROK) { - DU_LOG("\nDU_APP : Reading configuration failed"); + DU_LOG("\nERROR --> DU_APP : Reading configuration failed"); return RFAILED; } @@ -789,13 +789,13 @@ uint8_t duReadCfg() if(ODU_GET_MSG_BUF(DFLT_REGION, DU_POOL, &mBuf) != ROK) { - DU_LOG("\nDU_APP : Memory allocation failed in duReadCfg"); + DU_LOG("\nERROR --> DU_APP : Memory allocation failed in duReadCfg"); return RFAILED; } if (ODU_POST_TASK(&pst, mBuf) != ROK) { - DU_LOG("\nDU_APP : ODU_POST_TASK failed in duReadCfg"); + DU_LOG("\nERROR --> DU_APP : ODU_POST_TASK failed in duReadCfg"); return RFAILED; } diff --git a/src/du_app/du_e2ap_msg_hdl.c b/src/du_app/du_e2ap_msg_hdl.c index a25c8d8e0..ce659bc84 100644 --- a/src/du_app/du_e2ap_msg_hdl.c +++ b/src/du_app/du_e2ap_msg_hdl.c @@ -63,7 +63,7 @@ uint8_t BuildGlobalgNBId(GlobalE2node_gNB_ID_t *gNbId) DU_ALLOC(gNbId->global_gNB_ID.plmn_id.buf , gNbId->global_gNB_ID.plmn_id.size); if(gNbId->global_gNB_ID.plmn_id.buf == NULLP) { - DU_LOG("\nE2AP: Memory allocation failed for Plmn buffer"); + DU_LOG("\nERROR --> E2AP: Memory allocation failed for Plmn buffer"); ret = RFAILED; } else @@ -79,7 +79,7 @@ uint8_t BuildGlobalgNBId(GlobalE2node_gNB_ID_t *gNbId) gNbId->global_gNB_ID.gnb_id.choice.gnb_ID.size); if(gNbId->global_gNB_ID.gnb_id.choice.gnb_ID.buf == NULLP) { - DU_LOG("\nE2AP: Memory allocation failed for gnb buffer"); + DU_LOG("\nERROR --> E2AP: Memory allocation failed for gnb buffer"); ret = RFAILED; } else @@ -126,7 +126,7 @@ uint8_t fillE2SetupReq(E2setupRequest_t **e2SetupReq, uint8_t *idx) (*e2SetupReq)->protocolIEs.list.size); if((*e2SetupReq)->protocolIEs.list.array == NULLP) { - DU_LOG("\nE2AP : Memory allocation failed for array elements"); + DU_LOG("\nERROR --> E2AP : Memory allocation failed for array elements"); ret = RFAILED; } else @@ -137,7 +137,7 @@ uint8_t fillE2SetupReq(E2setupRequest_t **e2SetupReq, uint8_t *idx) sizeof(E2setupRequestIEs_t)); if((*e2SetupReq)->protocolIEs.list.array[*idx] == NULLP) { - DU_LOG("\nE2AP : Memory allocation failed for arrayidx [%d]", *idx); + DU_LOG("\nERROR --> E2AP : Memory allocation failed for arrayidx [%d]", *idx); ret = RFAILED; } else @@ -157,7 +157,7 @@ uint8_t fillE2SetupReq(E2setupRequest_t **e2SetupReq, uint8_t *idx) if((*e2SetupReq)->protocolIEs.list.array[idx2]->value.choice.\ GlobalE2node_ID.choice.gNB == NULLP) { - DU_LOG("\nE2AP : Memory allocation failed for gNbId"); + DU_LOG("\nERROR --> E2AP : Memory allocation failed for gNbId"); ret = RFAILED; } else @@ -177,7 +177,7 @@ uint8_t fillE2SetupReq(E2setupRequest_t **e2SetupReq, uint8_t *idx) else { ret = RFAILED; - DU_LOG("\nE2AP : Passed e2SetupReq is NULL"); + DU_LOG("\nERROR --> E2AP : received e2SetupReq is NULL"); } return ret; } @@ -205,20 +205,20 @@ uint8_t BuildAndSendE2SetupReq() E2setupRequest_t *e2SetupReq = NULLP; asn_enc_rval_t encRetVal; /* Encoder return value */ - DU_LOG("\nE2AP : Building E2 Setup Request\n"); + DU_LOG("\nINFO --> E2AP : Building E2 Setup Request\n"); do { DU_ALLOC(e2apMsg, sizeof(E2AP_PDU_t)); if(e2apMsg == NULLP) { - DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for E2AP-PDU failed"); break; } e2apMsg->present = E2AP_PDU_PR_initiatingMessage; DU_ALLOC(e2apMsg->choice.initiatingMessage, sizeof(InitiatingMessageE2_t)); if(e2apMsg->choice.initiatingMessage == NULLP) { - DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for E2AP-PDU failed"); DU_FREE(e2apMsg, sizeof(E2AP_PDU_t)); return RFAILED; } @@ -230,7 +230,7 @@ uint8_t BuildAndSendE2SetupReq() ret = fillE2SetupReq(&e2SetupReq, &idx); if(ret != ROK) { - DU_LOG("\nE2AP : fillE2SetupReq() failed"); + DU_LOG("\nERROR --> E2AP : fillE2SetupReq() failed"); break; } /* Prints the Msg formed */ @@ -242,13 +242,13 @@ uint8_t BuildAndSendE2SetupReq() encBuf); if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG("\nE2AP : Could not encode E2SetupRequest structure (at %s)\n",\ + DU_LOG("\nERROR --> E2AP : Could not encode E2SetupRequest structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nE2AP : Created APER encoded buffer for E2SetupRequest\n"); + DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for E2SetupRequest\n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -256,7 +256,7 @@ uint8_t BuildAndSendE2SetupReq() } if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nE2AP : Sending E2 Setup request failed"); + DU_LOG("\nERROR --> E2AP : Sending E2 Setup request failed"); } break; @@ -327,7 +327,7 @@ uint8_t deAllocateE2SetupReqMsg(E2AP_PDU_t *e2apMsg, \ break; } default: - DU_LOG("\n E2AP: Invalid event at e2SetupRequet %ld ",\ + DU_LOG("\nERROR --> E2AP: Invalid event at e2SetupRequet %ld ",\ (e2SetupReq->protocolIEs.list.array[idx2]->id)); break; } @@ -426,7 +426,7 @@ uint8_t BuildRicAdmitList(RICaction_Admitted_List_t *admitListPtr) if(admitListPtr == NULLP) { - DU_LOG("\nE2AP : Memory allocation for RIC Admit List failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RIC Admit List failed"); ret = RFAILED; } else @@ -436,7 +436,7 @@ uint8_t BuildRicAdmitList(RICaction_Admitted_List_t *admitListPtr) DU_ALLOC(admitListPtr->list.array, admitListPtr->list.size); if(admitListPtr->list.array == NULLP) { - DU_LOG("\nE2AP : Memory allocation for RIC Admit List failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RIC Admit List failed"); ret = RFAILED; } else @@ -565,7 +565,7 @@ uint8_t FillRicSubscriptionRsp(RICsubscriptionResponse_t *ricSubscriptionRsp ) ricSubscriptionRsp->protocolIEs.list.size); if(ricSubscriptionRsp->protocolIEs.list.array == NULLP) { - DU_LOG("\nE2AP : Memory allocation for FillRicSubscriptionRsp failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for FillRicSubscriptionRsp failed"); ret = RFAILED; } else @@ -644,19 +644,19 @@ uint8_t BuildAndSendRicSubscriptionRsp() while(true) { - DU_LOG("\nE2AP : Building RIC Subscription Response\n"); + DU_LOG("\nINFO --> E2AP : Building RIC Subscription Response\n"); DU_ALLOC(e2apRicMsg, sizeof(E2AP_PDU_t)); if(e2apRicMsg == NULLP) { - DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for E2AP-PDU failed"); break; } e2apRicMsg->present = E2AP_PDU_PR_successfulOutcome; DU_ALLOC(e2apRicMsg->choice.successfulOutcome, sizeof(SuccessfulOutcomeE2_t)); if(e2apRicMsg->choice.successfulOutcome == NULLP) { - DU_LOG("\nE2AP : Memory allocation for Ric subscription Response failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RIC subscription Response failed"); break; } @@ -669,7 +669,7 @@ uint8_t BuildAndSendRicSubscriptionRsp() FillRicricSubscriptionRspret = FillRicSubscriptionRsp(ricSubscriptionRsp); if(FillRicricSubscriptionRspret != ROK) { - DU_LOG("\nE2AP : Memory allocation for RICsubscriptionResponseIE failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RICsubscriptionResponseIE failed"); break; } @@ -682,13 +682,13 @@ uint8_t BuildAndSendRicSubscriptionRsp() encBuf); if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG("\nE2AP : Could not encode RIC Subscription Response structure (at %s)\n",\ + DU_LOG("\nERROR --> E2AP : Could not encode RIC Subscription Response structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nE2AP : Created APER encoded buffer for RIC subscription response \n"); + DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for RIC subscription response \n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -697,7 +697,7 @@ uint8_t BuildAndSendRicSubscriptionRsp() if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nE2AP : Sending RIC Subscription Response failed"); + DU_LOG("\nERROR --> E2AP : Sending RIC Subscription Response failed"); break; } @@ -730,7 +730,7 @@ uint8_t procE2SetupRsp(E2AP_PDU_t *e2apMsg) uint32_t recvBufLen; E2setupResponse_t *e2SetRspMsg; - DU_LOG("\nE2AP : E2 Setup Response received"); + DU_LOG("\nINFO --> E2AP : E2 Setup Response received"); duCb.e2Status = TRUE; //Set E2 status as true e2SetRspMsg = &e2apMsg->choice.successfulOutcome->value.choice.E2setupResponse; @@ -759,7 +759,7 @@ uint8_t procE2SetupRsp(E2AP_PDU_t *e2apMsg) break; } default: - DU_LOG("\nE2AP : Invalid IE received in E2SetupRsp:%ld", + DU_LOG("\nERROR --> E2AP : Invalid IE received in E2SetupRsp:%ld", e2SetRspMsg->protocolIEs.list.array[idx]->id); break; } @@ -794,7 +794,7 @@ uint8_t procRicSubsReq(E2AP_PDU_t *e2apMsg) RICsubscriptionRequest_t *ricSubsReq; RICaction_ToBeSetup_ItemIEs_t *actionItem; - DU_LOG("\nE2AP : Ric Subscription request received"); + DU_LOG("\nINFO --> E2AP : RIC Subscription request received"); ricSubsReq = &e2apMsg->choice.initiatingMessage->value.choice.RICsubscriptionRequest; for(idx=0; idxprotocolIEs.list.count; idx++) @@ -851,7 +851,7 @@ uint8_t procRicSubsReq(E2AP_PDU_t *e2apMsg) break; } default: - DU_LOG("\nE2AP : Invalid IE received in RicSetupLst:%ld",actionItem->id); + DU_LOG("\nERROR --> E2AP : Invalid IE received in RicSetupLst:%ld",actionItem->id); break; } free(actionItem); @@ -863,7 +863,7 @@ uint8_t procRicSubsReq(E2AP_PDU_t *e2apMsg) } default: - DU_LOG("\nE2AP : Invalid IE received in Ric SubsReq:%ld", + DU_LOG("\nERROR --> E2AP : Invalid IE received in RIC SubsReq:%ld", ricSubsReq->protocolIEs.list.array[idx]->id); break; } @@ -977,7 +977,7 @@ uint8_t FillRicIndication(RICindication_t *ricIndicationMsg) ricIndicationMsg->protocolIEs.list.size); if(ricIndicationMsg->protocolIEs.list.array == NULLP) { - DU_LOG("\nE2AP : Memory allocation for RICindicationIEs failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RICindicationIEs failed"); ret = RFAILED; } else @@ -988,7 +988,7 @@ uint8_t FillRicIndication(RICindication_t *ricIndicationMsg) sizeof(RICindication_IEs_t)); if(ricIndicationMsg->protocolIEs.list.array[idx] == NULLP) { - DU_LOG("\nE2AP : Memory allocation for RICindicationIEs failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RICindicationIEs failed"); ret = RFAILED; } } @@ -1040,7 +1040,7 @@ uint8_t FillRicIndication(RICindication_t *ricIndicationMsg) ricIndicationMsg->protocolIEs.list.array[idx]->value.choice.RICindicationHeader.size); if(ricIndicationMsg->protocolIEs.list.array[idx]->value.choice.RICindicationHeader.buf == NULLP) { - DU_LOG("\nE2AP : Memory allocation for RICindicationIEs failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RICindicationIEs failed"); ret = RFAILED; } else @@ -1060,7 +1060,7 @@ uint8_t FillRicIndication(RICindication_t *ricIndicationMsg) ricIndicationMsg->protocolIEs.list.array[idx]->value.choice.RICindicationMessage.size); if(ricIndicationMsg->protocolIEs.list.array[idx]->value.choice.RICindicationMessage.buf == NULLP) { - DU_LOG("\nE2AP : Memory allocation for RICindicationIEs failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for RICindicationIEs failed"); ret = RFAILED; } else @@ -1099,12 +1099,12 @@ uint8_t BuildAndSendRicIndication() while(true) { - DU_LOG("\nE2AP : Building Ric Indication Message\n"); + DU_LOG("\nINFO --> E2AP : Building RIC Indication Message\n"); DU_ALLOC(e2apMsg, sizeof(E2AP_PDU_t)); if(e2apMsg == NULLP) { - DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for E2AP-PDU failed"); break; } @@ -1112,7 +1112,7 @@ uint8_t BuildAndSendRicIndication() DU_ALLOC(e2apMsg->choice.initiatingMessage, sizeof(InitiatingMessageE2_t)); if(e2apMsg->choice.initiatingMessage == NULLP) { - DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation for E2AP-PDU failed"); break; } e2apMsg->choice.initiatingMessage->procedureCode = ProcedureCodeE2_id_RICindication; @@ -1134,13 +1134,13 @@ uint8_t BuildAndSendRicIndication() encBuf); if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG("\nE2AP : Could not encode RIC Indication Message (at %s)\n",\ + DU_LOG("\nERROR --> E2AP : Could not encode RIC Indication Message (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nE2AP : Created APER encoded buffer for RIC Indication Message \n"); + DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for RIC Indication Message \n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -1149,7 +1149,7 @@ uint8_t BuildAndSendRicIndication() if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nE2AP : Sending RIC Indication Message"); + DU_LOG("\nINFO --> E2AP : Sending RIC Indication Message"); } ret = ROK; @@ -1188,14 +1188,14 @@ uint8_t SendE2APMsg(Region region, Pool pool) if(sctpSend(mBuf, E2_INTERFACE) != ROK) { - DU_LOG("\nE2AP : SCTP Send for E2 failed"); + DU_LOG("\nERROR --> E2AP : SCTP Send for E2 failed"); ODU_PUT_MSG_BUF(mBuf); return RFAILED; } } else { - DU_LOG("\nE2AP : ODU_ADD_POST_MSG_MULT failed"); + DU_LOG("\nERROR --> E2AP : ODU_ADD_POST_MSG_MULT failed"); ODU_PUT_MSG_BUF(mBuf); return RFAILED; } @@ -1203,7 +1203,7 @@ uint8_t SendE2APMsg(Region region, Pool pool) } else { - DU_LOG("\nE2AP : Failed to allocate memory"); + DU_LOG("\nERROR --> E2AP : Failed to allocate memory"); return RFAILED; } @@ -1237,7 +1237,7 @@ void E2APMsgHdlr(Buffer *mBuf) asn_dec_rval_t rval ={0}; /* Decoder return value */ E2AP_PDU_t e2apasnmsg={0} ; - DU_LOG("\nE2AP : Received E2AP message buffer"); + DU_LOG("\nDEBUG --> E2AP : Received E2AP message buffer"); ODU_PRINT_MSG(mBuf, 0,0); /* Copy mBuf into char array to decode it */ @@ -1246,16 +1246,16 @@ void E2APMsgHdlr(Buffer *mBuf) if(recvBuf == NULLP) { - DU_LOG("\nE2AP : Memory allocation failed"); + DU_LOG("\nERROR --> E2AP : Memory allocation failed"); return; } if(ODU_COPY_MSG_TO_FIX_BUF(mBuf, 0, recvBufLen, (Data *)recvBuf, ©Cnt) != ROK) { - DU_LOG("\nE2AP : Failed while copying %d", copyCnt); + DU_LOG("\nERROR --> E2AP : Failed while copying %d", copyCnt); return; } - printf("\nE2AP : Received flat buffer to be decoded : "); + printf("\nDEBUG --> E2AP : Received flat buffer to be decoded : "); for(i=0; i< recvBufLen; i++) { printf("%x",recvBuf[i]); @@ -1270,7 +1270,7 @@ void E2APMsgHdlr(Buffer *mBuf) if(rval.code == RC_FAIL || rval.code == RC_WMORE) { - DU_LOG("\nE2AP : ASN decode failed"); + DU_LOG("\nERROR --> E2AP : ASN decode failed"); return; } printf("\n"); @@ -1286,14 +1286,15 @@ void E2APMsgHdlr(Buffer *mBuf) { if(!duCb.e2Status) { - DU_LOG("\nE2AP : Store E2 setup response Params"); + DU_LOG("\nDEBUG --> E2AP : Store E2 setup response Params"); procE2SetupRsp(e2apMsg); } break; } default: { - DU_LOG("\nE2AP : Invalid type of sucessful message [%d]", e2apMsg->choice.successfulOutcome->value.present); + DU_LOG("\nERROR --> E2AP : Invalid type of E2AP_PDU_PR_successfulOutcome [%d]",\ + e2apMsg->choice.successfulOutcome->value.present); return; } }/* End of switch(successfulOutcome) */ @@ -1306,7 +1307,6 @@ void E2APMsgHdlr(Buffer *mBuf) { case InitiatingMessageE2__value_PR_RICsubscriptionRequest: { - DU_LOG("\nE2AP : Calling RIC Subscription Response"); if(procRicSubsReq(e2apMsg) == ROK) { BuildAndSendRicIndication(); @@ -1315,7 +1315,8 @@ void E2APMsgHdlr(Buffer *mBuf) } default: { - DU_LOG("\nE2AP : Invalid type of intiating message [%d]", e2apMsg->choice.initiatingMessage->value.present); + DU_LOG("\nERROR --> E2AP : Invalid type of E2AP_PDU_PR_initiatingMessage [%d]",\ + e2apMsg->choice.initiatingMessage->value.present); return; } }/* End of switch(initiatingMessage) */ @@ -1324,7 +1325,7 @@ void E2APMsgHdlr(Buffer *mBuf) } default: { - DU_LOG("\nE2AP : Invalid type of e2apMsg->present [%d]",e2apMsg->present); + DU_LOG("\nERROR --> E2AP : Invalid type of e2apMsg->present [%d]",e2apMsg->present); return; } free(e2apMsg); diff --git a/src/du_app/du_egtp.c b/src/du_app/du_egtp.c index 830b2df4f..657a46ca1 100644 --- a/src/du_app/du_egtp.c +++ b/src/du_app/du_egtp.c @@ -54,7 +54,7 @@ EgtpGlobalCb egtpCb; ***************************************************************************/ uint8_t egtpActvInit(Ent entity, Inst inst, Region region, Reason reason) { - DU_LOG("\n\nEGTP : Initializing"); + DU_LOG("\n\nDEBUG --> EGTP : Initializing"); memset (&egtpCb, 0, sizeof(EgtpGlobalCb)); protType = CM_INET_PROTO_UDP; @@ -109,7 +109,7 @@ uint8_t egtpActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nEGTP : Invalid event %d", pst->event); + DU_LOG("\nERROR --> EGTP : Invalid event %d", pst->event); ODU_PUT_MSG_BUF(mBuf); ret = RFAILED; } @@ -122,14 +122,14 @@ uint8_t egtpActvTsk(Pst *pst, Buffer *mBuf) { case EVTSTARTPOLL: { - DU_LOG("\nEGTP : Starting Socket Polling"); + DU_LOG("\nDEBUG --> EGTP : Starting Socket Polling"); egtpRecvMsg(); ODU_PUT_MSG_BUF(mBuf); break; } default: { - DU_LOG("\nEGTP : Invalid event %d", pst->event); + DU_LOG("\nERROR --> EGTP : Invalid event %d", pst->event); ODU_PUT_MSG_BUF(mBuf); ret = RFAILED; } @@ -147,7 +147,7 @@ uint8_t egtpActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nEGTP : Invalid event %d", pst->event); + DU_LOG("\nERROR --> EGTP : Invalid event %d", pst->event); ret = RFAILED; } } @@ -155,7 +155,7 @@ uint8_t egtpActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nEGTP : Invalid source entity %d", pst->srcEnt); + DU_LOG("\nERROR --> EGTP : Invalid source entity %d", pst->srcEnt); ret = RFAILED; } } @@ -198,13 +198,13 @@ uint8_t egtpCfgReq(Pst *pst, EgtpConfig egtpCfg) if(ret != ROK) { - DU_LOG("\nEGTP : TeId hash list initialization failed"); + DU_LOG("\nERROR --> EGTP : TeId hash list initialization failed"); cfgCfm.status = LCM_PRIM_NOK; cfgCfm.reason = LCM_REASON_HASHING_FAILED; } else { - DU_LOG("\nEGTP : EGTP configuration successful"); + DU_LOG("\nDEBUG --> EGTP : EGTP configuration successful"); cfgCfm.status = LCM_PRIM_OK; cfgCfm.reason = LCM_REASON_NOT_APPL; } @@ -275,25 +275,26 @@ uint8_t egtpSrvOpenReq(Pst *pst) CmStatus cfm; /* Confirmation status */ uint8_t sockType; /* Socket type */ - DU_LOG("\nEGTP : Received EGTP open server request"); + DU_LOG("\nDEBUG --> EGTP : Received EGTP open server request"); sockType = CM_INET_DGRAM; ret = egtpSrvOpenPrc(sockType, &(egtpCb.recvTptSrvr)); /* Opening and Binding receiver socket */ if(ret != ROK) { - DU_LOG("\nEGTP : Failed while opening receiver transport server"); + DU_LOG("\nERROR --> EGTP : Failed while opening receiver transport server"); return ret; } /* Opening and Binding sender socket */ ret = egtpSrvOpenPrc(sockType, &(egtpCb.dstCb.sendTptSrvr)); if(ret != ROK) { - DU_LOG("\nEGTP : Failed while opening sender transport server"); + DU_LOG("\nERROR --> EGTP : Failed while opening sender transport server"); return ret; } - DU_LOG("\nEGTP : Receiver socket[%d] and Sender socket[%d] open", egtpCb.recvTptSrvr.sockFd.fd, egtpCb.dstCb.sendTptSrvr.sockFd.fd); + DU_LOG("\nDEBUG --> EGTP : Receiver socket[%d] and Sender socket[%d] open", egtpCb.recvTptSrvr.sockFd.fd,\ + egtpCb.dstCb.sendTptSrvr.sockFd.fd); /* Start Socket polling */ memset(&egtpPst, 0, sizeof(egtpPst)); @@ -342,13 +343,13 @@ uint8_t egtpSrvOpenPrc(uint8_t sockType, EgtpTptSrvr *server) ret = cmInetSocket(sockType, &(server->sockFd), protType); if(ret != ROK) { - DU_LOG("\nEGTP : Failed to open UDP socket"); + DU_LOG("\nERROR --> EGTP : Failed to open UDP socket"); return ret; } ret = cmInetBind(&(server->sockFd), &(server->addr)); if(ret != ROK) { - DU_LOG("\nEGTP : Failed to bind socket"); + DU_LOG("\nERROR --> EGTP : Failed to bind socket"); return ret; } @@ -375,7 +376,7 @@ uint8_t egtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt) { S8 ret; - DU_LOG("\nEGTP : Received tunnel management request"); + DU_LOG("\nDEBUG --> EGTP : Received tunnel management request"); switch(tnlEvt.action) { case EGTP_TNL_MGMT_ADD: @@ -395,7 +396,7 @@ uint8_t egtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt) } default: { - DU_LOG("\nEGTP : Invalid tunnel management action[%d]", tnlEvt.action); + DU_LOG("\nERROR --> EGTP : Invalid tunnel management action[%d]", tnlEvt.action); ret = LCM_REASON_INVALID_ACTION; } } @@ -411,7 +412,7 @@ uint8_t egtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt) tnlEvt.cfmStatus.reason = ret; } - DU_LOG("\nEGTP : Sending Tunnel management confirmation"); + DU_LOG("\nDEBUG --> EGTP : Sending Tunnel management confirmation"); duHdlEgtpTnlMgmtCfm(tnlEvt); return ROK; @@ -438,12 +439,12 @@ uint8_t egtpTnlAdd(EgtpTnlEvt tnlEvt) EgtpTeIdCb *teidCb; /* Tunnel endpoint control block */ EgtpMsgHdr preDefHdr; /* pre-define header for this tunnel */ - DU_LOG("\nEGTP : Tunnel addition : LocalTeid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid); + DU_LOG("\nINFO --> EGTP : Tunnel addition : LocalTeid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid); DU_ALLOC(teidCb, sizeof(EgtpTeIdCb)); if(teidCb == NULLP) { - DU_LOG("\nEGTP : Memory allocation failed"); + DU_LOG("\nERROR --> EGTP : Memory allocation failed"); return LCM_REASON_MEM_NOAVAIL; } @@ -454,7 +455,7 @@ uint8_t egtpTnlAdd(EgtpTnlEvt tnlEvt) ret = cmHashListInsert(&(egtpCb.dstCb.teIdLst), (PTR)teidCb, (uint8_t *)&(teidCb->teId), sizeof(uint32_t)); if(ret != ROK) { - DU_LOG("\nEGTP : Failed to insert in hash list"); + DU_LOG("\nERROR --> EGTP : Failed to insert in hash list"); DU_FREE(teidCb, sizeof(EgtpTeIdCb)); return LCM_REASON_HASHING_FAILED; } @@ -494,16 +495,17 @@ uint8_t egtpTnlMod(EgtpTnlEvt tnlEvt) uint8_t ret; EgtpTeIdCb *teidCb = NULLP; - printf("\nTunnel modification : LocalTeid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid); + DU_LOG("\nINFO --> Tunnel modification : LocalTeid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid); cmHashListFind(&(egtpCb.dstCb.teIdLst), (uint8_t *)&(tnlEvt.teId), sizeof(uint32_t), 0, (PTR *)&teidCb); if(teidCb == NULLP) { - printf("\nTunnel id not found"); + DU_LOG("\nERROR --> Tunnel id not found"); return RFAILED; } teidCb->teId = tnlEvt.lclTeid; + DU_LOG("\nINFO --> Tunnel id is" , teidCb->teId); teidCb->remTeId = tnlEvt.remTeid; #endif return ROK; @@ -528,12 +530,12 @@ uint8_t egtpTnlDel(EgtpTnlEvt tnlEvt) { EgtpTeIdCb *teidCb = NULLP; - DU_LOG("\nEGTP : Tunnel deletion : Local Teid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid); + DU_LOG("\nINFO --> EGTP : Tunnel deletion : Local Teid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid); cmHashListFind(&(egtpCb.dstCb.teIdLst), (uint8_t *)&(tnlEvt.lclTeid), sizeof(uint32_t), 0, (PTR *)&teidCb); if(teidCb == NULLP) { - DU_LOG("\nEGTP : Tunnel id[%d] not configured", tnlEvt.lclTeid); + DU_LOG("\nERROR --> EGTP : Tunnel id[%d] not configured", tnlEvt.lclTeid); return LCM_REASON_INVALID_PAR_VAL; } @@ -569,12 +571,12 @@ uint8_t egtpHdlDatInd(EgtpMsg egtpMsg) uint32_t msgLen; EgtpMsgHdr *msgHdr; - DU_LOG("\nEGTP : Received Data Indication"); + DU_LOG("\nDEBUG --> EGTP : Received Data Indication"); cmHashListFind(&(egtpCb.dstCb.teIdLst), (uint8_t *)&(egtpMsg.msgHdr.teId), sizeof(uint32_t), 0, (PTR *)&teidCb); if(teidCb == NULLP) { - DU_LOG("\nEGTP : Tunnel id[%d] not configured", egtpMsg.msgHdr.teId); + DU_LOG("\nERROR --> EGTP : Tunnel id[%d] not configured", egtpMsg.msgHdr.teId); return LCM_REASON_INVALID_PAR_VAL; } @@ -619,13 +621,13 @@ uint8_t egtpHdlDatInd(EgtpMsg egtpMsg) teidCb->preEncodedHdr.hdr[EGTP_MAX_HDR_LEN - 1] &= ~(EGTP_MASK_BIT2); } - DU_LOG("\nEGTP : UL Data buffer before encoding header"); + DU_LOG("\nDEBUG --> EGTP : UL Data buffer before encoding header"); ODU_PRINT_MSG(egtpMsg.msg, 0, 0); ODU_ADD_PRE_MSG_MULT(&teidCb->preEncodedHdr.hdr[hdrLen], (EGTP_MAX_HDR_LEN - hdrLen), egtpMsg.msg); - DU_LOG("\nEGTP : UL Data buffer after encoding header"); + DU_LOG("\nDEBUG --> EGTP : UL Data buffer after encoding header"); ODU_PRINT_MSG(egtpMsg.msg, 0, 0); /* Send over UDP */ @@ -780,11 +782,11 @@ uint8_t egtpSendMsg(Buffer *mBuf) mBuf, (int16_t *)&txLen, CM_INET_NO_FLAG); if(ret != ROK && ret != RWOULDBLOCK) { - DU_LOG("\nEGTP : Failed sending the message"); + DU_LOG("\nERROR --> EGTP : Failed sending the message"); return RFAILED; } - DU_LOG("\nEGTP : Message Sent"); + DU_LOG("\nDEBUG --> EGTP : Message Sent"); return ROK; } @@ -829,7 +831,7 @@ uint8_t egtpRecvMsg() &recvBuf, (int16_t *)&bufLen, CM_INET_NO_FLAG); if(ret == ROK && recvBuf != NULLP) { - DU_LOG("\nEGTP : Received DL Message[%d]\n", nMsg+1); + DU_LOG("\nDEBUG --> EGTP : Received DL Message[%d]\n", nMsg+1); ODU_PRINT_MSG(recvBuf, 0 ,0); egtpHdlRecvData(recvBuf); } @@ -900,11 +902,11 @@ uint8_t egtpDecodeHdr(Buffer *mBuf, EgtpMsg *egtpMsg) /* Extracting version fro 1st byte */ version = tmpByte[0] >> 5; - DU_LOG("\nEGTP : Version %d", version); + DU_LOG("\nDEBUG --> EGTP : Version %d", version); /* Decode message type */ ODU_REM_PRE_MSG((Data*)&(egtpMsg->msgHdr.msgType), mBuf); - DU_LOG("\nEGTP : msgType %d", egtpMsg->msgHdr.msgType); + DU_LOG("\nDEBUG --> EGTP : msgType %d", egtpMsg->msgHdr.msgType); /**************************************************************************** * Message length param is 2 bytes. So decode next 2 bytes from msg hdr and @@ -913,7 +915,7 @@ uint8_t egtpDecodeHdr(Buffer *mBuf, EgtpMsg *egtpMsg) ODU_REM_PRE_MSG(&tmpByte[1], mBuf); ODU_REM_PRE_MSG(&tmpByte[2], mBuf); msgLen = (tmpByte[1] << 8) | tmpByte[2]; - DU_LOG("\nEGTP : msgLen %d", msgLen); + DU_LOG("\nDEBUG --> EGTP : msgLen %d", msgLen); /**************************************************************************** @@ -925,7 +927,7 @@ uint8_t egtpDecodeHdr(Buffer *mBuf, EgtpMsg *egtpMsg) ODU_REM_PRE_MSG(&tmpByte[3], mBuf); ODU_REM_PRE_MSG(&tmpByte[4], mBuf); egtpMsg->msgHdr.teId = (tmpByte[1] << 24) | (tmpByte[2] << 16) | (tmpByte[3] << 8) | tmpByte[4]; - DU_LOG("\nEGTP : teId %d",egtpMsg->msgHdr.teId); + DU_LOG("\nDEBUG --> EGTP : teId %d",egtpMsg->msgHdr.teId); /* If any one of S, E or PN flag is set, set extension present as true. */ @@ -1037,7 +1039,7 @@ uint8_t egtpDecodeHdr(Buffer *mBuf, EgtpMsg *egtpMsg) egtpMsg->msg = mBuf; - DU_LOG("\nEGTP : DL Data Buffer after decoding header "); + DU_LOG("\nDEBUG --> EGTP : DL Data Buffer after decoding header "); ODU_PRINT_MSG(mBuf, 0, 0); /* Forward the data to duApp/RLC */ diff --git a/src/du_app/du_f1ap_msg_hdl.c b/src/du_app/du_f1ap_msg_hdl.c index f51bc3c46..0c316052c 100644 --- a/src/du_app/du_f1ap_msg_hdl.c +++ b/src/du_app/du_f1ap_msg_hdl.c @@ -725,14 +725,14 @@ uint8_t SendF1APMsg(Region region, Pool pool) if(sctpSend(mBuf, F1_INTERFACE) != ROK) { - DU_LOG("\nF1AP : SCTP Send failed"); + DU_LOG("\nERROR --> F1AP : SCTP Send failed"); ODU_PUT_MSG_BUF(mBuf); return RFAILED; } } else { - DU_LOG("\nF1AP : ODU_ADD_POST_MSG_MULT failed"); + DU_LOG("\nERROR --> F1AP : ODU_ADD_POST_MSG_MULT failed"); ODU_PUT_MSG_BUF(mBuf); return RFAILED; } @@ -740,7 +740,7 @@ uint8_t SendF1APMsg(Region region, Pool pool) } else { - DU_LOG("\nF1AP : Failed to allocate memory"); + DU_LOG("\nERROR --> F1AP : Failed to allocate memory"); return RFAILED; } return ROK; @@ -1011,7 +1011,7 @@ void FreeF1SetupReq(F1AP_PDU_t *f1apMsg) FreeRrcVer(&f1SetupReq->protocolIEs.list.array[ieIdx]->value.choice.RRC_Version); break; default: - DU_LOG("\nInvalid Event Type %ld", f1SetupReq->protocolIEs.list.array[ieIdx]->id); + DU_LOG("\nERROR --> Invalid Event Type %ld", f1SetupReq->protocolIEs.list.array[ieIdx]->id); break; } } @@ -1053,7 +1053,7 @@ uint8_t BuildAndSendF1SetupReq() asn_enc_rval_t encRetVal; /* Encoder return value */ ret= RFAILED; - DU_LOG("\nF1AP : Building F1 Setup Request\n"); + DU_LOG("\nINFO --> F1AP : Building F1 Setup Request\n"); do { DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); @@ -1182,13 +1182,13 @@ uint8_t BuildAndSendF1SetupReq() /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG("\nF1AP : Could not encode F1SetupRequest structure (at %s)\n",\ + DU_LOG("\nERROR --> F1AP : Could not encode F1SetupRequest structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nF1AP : Created APER encoded buffer for F1SetupRequest\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for F1SetupRequest\n"); for(ieIdx=0; ieIdx< encBufSize; ieIdx++) { printf("%x",encBuf[ieIdx]); @@ -1198,7 +1198,7 @@ uint8_t BuildAndSendF1SetupReq() /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nF1AP : Sending F1 Setup request failed"); + DU_LOG("\nERROR --> F1AP : Sending F1 Setup request failed"); break; } @@ -1896,12 +1896,12 @@ uint8_t BuildAndSendDUConfigUpdate() while(true) { - DU_LOG("\nF1AP : Building DU config update\n"); + DU_LOG("\nINFO --> F1AP : Building DU config update\n"); /* Allocate the memory for F1DuCfg */ DU_ALLOC(f1apDuCfg, sizeof(F1AP_PDU_t)); if(f1apDuCfg == NULLP) { - DU_LOG("\nF1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG("\nERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } @@ -1909,7 +1909,7 @@ uint8_t BuildAndSendDUConfigUpdate() DU_ALLOC(f1apDuCfg->choice.initiatingMessage,sizeof(InitiatingMessage_t)); if(f1apDuCfg->choice.initiatingMessage == NULLP) { - DU_LOG("\nF1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG("\nERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } @@ -1929,7 +1929,7 @@ uint8_t BuildAndSendDUConfigUpdate() DU_ALLOC(duCfgUpdate->protocolIEs.list.array,duCfgUpdate->protocolIEs.list.size); if(duCfgUpdate->protocolIEs.list.array == NULLP) { - DU_LOG("F1AP : Memory allocation for F1RequestIEs failed"); + DU_LOG("ERROR --> F1AP : Memory allocation for F1RequestIEs failed"); break; } for(ieIdx=0; ieIdxname : "unknown"); + DU_LOG("ERROR --> F1AP : Could not encode DUConfigUpdate structure (at %s)\n",\ + encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nF1AP : Created APER encoded buffer for DUConfigUpdate\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for DUConfigUpdate\n"); for(ieIdx =0; ieIdx < encBufSize; ieIdx++) { printf("%x",encBuf[ieIdx]); @@ -2000,7 +2001,7 @@ uint8_t BuildAndSendDUConfigUpdate() /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nF1AP : Sending GND-DU Config Update failed"); + DU_LOG("\nERROR --> F1AP : Sending GNB-DU Config Update failed"); break; } @@ -2093,19 +2094,19 @@ uint8_t BuildAndSendULRRCMessageTransfer(DuUeCb ueCb, uint8_t lcId, \ while(true) { - DU_LOG("\n F1AP : Building UL RRC Message Transfer Message\n"); + DU_LOG("\n INFO --> F1AP : Building UL RRC Message Transfer Message\n"); DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); if(f1apMsg == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->present = F1AP_PDU_PR_initiatingMessage; DU_ALLOC(f1apMsg->choice.initiatingMessage,sizeof(InitiatingMessage_t)); if(f1apMsg->choice.initiatingMessage == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->choice.initiatingMessage->procedureCode = ProcedureCode_id_ULRRCMessageTransfer; @@ -2123,7 +2124,7 @@ uint8_t BuildAndSendULRRCMessageTransfer(DuUeCb ueCb, uint8_t lcId, \ DU_ALLOC(ulRRCMsg->protocolIEs.list.array, ulRRCMsg->protocolIEs.list.size); if(ulRRCMsg->protocolIEs.list.array == NULLP) { - DU_LOG(" F1AP : Memory allocation for UL RRC MessageTransferIEs failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for UL RRC MessageTransferIEs failed"); break; } for(idx=0; idxprotocolIEs.list.array[idx1]->value.choice.RRCContainer.size) if(!ulRRCMsg->protocolIEs.list.array[idx1]->value.choice.RRCContainer.buf) { - DU_LOG(" F1AP : Memory allocation for BuildAndSendULRRCMessageTransfer failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for BuildAndSendULRRCMessageTransfer failed"); break; } memset(ulRRCMsg->protocolIEs.list.array[idx1]->value.choice.RRCContainer.buf, 0, msgLen); @@ -2188,13 +2189,13 @@ uint8_t BuildAndSendULRRCMessageTransfer(DuUeCb ueCb, uint8_t lcId, \ /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG( "\n F1AP : Could not encode ULRRCMessageTransfer structure (at %s)\n",\ + DU_LOG( "\nERROR --> F1AP : Could not encode ULRRCMessageTransfer structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\n F1AP : Created APER encoded buffer for ULRRCMessageTransfer\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for ULRRCMessageTransfer\n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -2204,7 +2205,7 @@ uint8_t BuildAndSendULRRCMessageTransfer(DuUeCb ueCb, uint8_t lcId, \ /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION,DU_POOL) != ROK) { - DU_LOG("\n F1AP : Sending UL RRC Message Transfer Failed"); + DU_LOG("\nERROR --> F1AP : Sending UL RRC Message Transfer Failed"); break; } ret = ROK; @@ -2241,7 +2242,7 @@ uint8_t BuildTagConfig(struct TAG_Config *tagConfig) DU_ALLOC(tagConfig->tag_ToAddModList, sizeof(struct TAG_Config__tag_ToAddModList)); if(!tagConfig->tag_ToAddModList) { - DU_LOG("\nF1AP : Memory allocation failure in BuildTagConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildTagConfig"); return RFAILED; } @@ -2254,7 +2255,7 @@ uint8_t BuildTagConfig(struct TAG_Config *tagConfig) DU_ALLOC(tagList->list.array, tagList->list.size); if(!tagList->list.array) { - DU_LOG("\nF1AP : Memory allocation failure in BuildTagConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildTagConfig"); return RFAILED; } @@ -2264,7 +2265,7 @@ uint8_t BuildTagConfig(struct TAG_Config *tagConfig) DU_ALLOC(tagList->list.array[idx], sizeof(struct TAG)); if(!tagList->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failure in BuildTagConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildTagConfig"); return RFAILED; } } @@ -2300,7 +2301,7 @@ uint8_t BuildPhrConfig(struct MAC_CellGroupConfig__phr_Config *phrConfig) DU_ALLOC(phrConfig->choice.setup, sizeof(struct PHR_Config)); if(!phrConfig->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failure in BuildPhrConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildPhrConfig"); return RFAILED; } @@ -2366,7 +2367,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque sizeof(struct SchedulingRequestConfig__schedulingRequestToAddModList)); if(!schedulingRequestConfig->schedulingRequestToAddModList) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSchedulingReqConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSchedulingReqConfig"); return RFAILED; } @@ -2379,7 +2380,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque DU_ALLOC(schReqList->list.array, schReqList->list.size); if(!schReqList->list.array) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSchedulingReqConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSchedulingReqConfig"); return RFAILED; } @@ -2389,7 +2390,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque DU_ALLOC(schReqList->list.array[idx], sizeof(struct SchedulingRequestToAddMod)); if(!schReqList->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSchedulingReqConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSchedulingReqConfig"); return RFAILED; } } @@ -2401,7 +2402,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque DU_ALLOC(schReqList->list.array[idx]->sr_ProhibitTimer, sizeof(long)); if(!schReqList->list.array[idx]->sr_ProhibitTimer) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSchedulingReqConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSchedulingReqConfig"); return RFAILED; } *(schReqList->list.array[idx]->sr_ProhibitTimer) = SR_PROHIBIT_TMR; @@ -2436,7 +2437,7 @@ uint8_t BuildRlcConfig(struct RLC_Config *rlcConfig) DU_ALLOC(rlcConfig->choice.am, sizeof(struct RLC_Config__am)); if(!rlcConfig->choice.am) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcConfig"); return RFAILED; } @@ -2445,7 +2446,7 @@ uint8_t BuildRlcConfig(struct RLC_Config *rlcConfig) DU_ALLOC(rlcConfig->choice.am->ul_AM_RLC.sn_FieldLength, sizeof(SN_FieldLengthAM_t)); if(!rlcConfig->choice.am->ul_AM_RLC.sn_FieldLength) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcConfig"); return RFAILED; } *(rlcConfig->choice.am->ul_AM_RLC.sn_FieldLength) = SN_FIELD_LEN; @@ -2459,7 +2460,7 @@ uint8_t BuildRlcConfig(struct RLC_Config *rlcConfig) DU_ALLOC(rlcConfig->choice.am->dl_AM_RLC.sn_FieldLength, sizeof(SN_FieldLengthAM_t)); if(!rlcConfig->choice.am->dl_AM_RLC.sn_FieldLength) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcConfig"); return RFAILED; } *(rlcConfig->choice.am->dl_AM_RLC.sn_FieldLength) = SN_FIELD_LEN; @@ -2492,7 +2493,7 @@ uint8_t BuildMacLCConfig(struct LogicalChannelConfig *macLcConfig) DU_ALLOC(macLcConfig->ul_SpecificParameters, sizeof(struct LogicalChannelConfig__ul_SpecificParameters)); if(!macLcConfig->ul_SpecificParameters) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacLCConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacLCConfig"); return RFAILED; } @@ -2508,7 +2509,7 @@ uint8_t BuildMacLCConfig(struct LogicalChannelConfig *macLcConfig) DU_ALLOC(macLcConfig->ul_SpecificParameters->logicalChannelGroup, sizeof(long)); if(!macLcConfig->ul_SpecificParameters->logicalChannelGroup) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacLCConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacLCConfig"); return RFAILED; } *(macLcConfig->ul_SpecificParameters->logicalChannelGroup) = LC_GRP; @@ -2517,7 +2518,7 @@ uint8_t BuildMacLCConfig(struct LogicalChannelConfig *macLcConfig) DU_ALLOC(macLcConfig->ul_SpecificParameters->schedulingRequestID, sizeof(SchedulingRequestId_t)); if(!macLcConfig->ul_SpecificParameters->schedulingRequestID) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacLCConfig"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacLCConfig"); return RFAILED; } *(macLcConfig->ul_SpecificParameters->schedulingRequestID) = SCH_REQ_ID; @@ -2557,7 +2558,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(rlcBearerList->list.array, rlcBearerList->list.size); if(!rlcBearerList->list.array) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcBearerToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcBearerToAddModList"); return RFAILED; } @@ -2567,7 +2568,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(rlcBearerList->list.array[idx], sizeof(struct RLC_BearerConfig)); if(!rlcBearerList->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcBearerToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcBearerToAddModList"); return RFAILED; } } @@ -2579,7 +2580,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod sizeof(struct RLC_BearerConfig__servedRadioBearer)); if(!rlcBearerList->list.array[idx]->servedRadioBearer) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcBearerToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcBearerToAddModList"); return RFAILED; } @@ -2593,13 +2594,13 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(rlcBearerList->list.array[idx]->rlc_Config, sizeof(struct RLC_Config)); if(!rlcBearerList->list.array[idx]->rlc_Config) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcBearerToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcBearerToAddModList"); return RFAILED; } if(BuildRlcConfig(rlcBearerList->list.array[idx]->rlc_Config) != ROK) { - DU_LOG("\nF1AP : BuildRlcConfig failed"); + DU_LOG("\nERROR --> F1AP : BuildRlcConfig failed"); return RFAILED; } @@ -2608,13 +2609,13 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod sizeof(struct LogicalChannelConfig)); if(!rlcBearerList->list.array[idx]->mac_LogicalChannelConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildRlcBearerToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildRlcBearerToAddModList"); return RFAILED; } if(BuildMacLCConfig(rlcBearerList->list.array[idx]->mac_LogicalChannelConfig) != ROK) { - DU_LOG("\nF1AP : BuildMacLCConfig failed"); + DU_LOG("\nERROR --> F1AP : BuildMacLCConfig failed"); return RFAILED; } @@ -2660,7 +2661,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(controlRSetList->list.array, controlRSetList->list.size); if(!controlRSetList->list.array) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } @@ -2670,7 +2671,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(controlRSetList->list.array[idx], sizeof(struct ControlResourceSet)); if(!controlRSetList->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } } @@ -2693,7 +2694,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod controlRSet->frequencyDomainResources.size); if(!controlRSet->frequencyDomainResources.buf) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } @@ -2721,7 +2722,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod sizeof(struct ControlResourceSet__tci_StatesPDCCH_ToAddList)); if(!controlRset->tci_StatesPDCCH_ToAddList) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } @@ -2732,7 +2733,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod controlRset->tci_StatesPDCCH_ToAddList->list.size) if(!controlRset->tci_StatesPDCCH_ToAddList->list.array) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } @@ -2741,7 +2742,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(controlRset->tci_StatesPDCCH_ToAddList->list.array[tciStateIdx], sizeof(TCI_StateId_t)); if(!controlRset->tci_StatesPDCCH_ToAddList->list.array[tciStateIdx]) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } } @@ -2753,7 +2754,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(controlRset->tci_PresentInDCI, sizeof(long)); if(!controlRset->tci_PresentInDCI) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } /* TODO */ @@ -2764,7 +2765,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(controlRSet->pdcch_DMRS_ScramblingID, sizeof(long)); if(!controlRSet->pdcch_DMRS_ScramblingID) { - DU_LOG("\nF1AP : Memory allocation failed in BuildControlRSetToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildControlRSetToAddModList"); return RFAILED; } *(controlRSet->pdcch_DMRS_ScramblingID) = SCRAMBLING_ID; @@ -2807,7 +2808,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(searchSpcList->list.array, searchSpcList->list.size); if(!searchSpcList->list.array) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } @@ -2817,7 +2818,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(searchSpcList->list.array[idx], sizeof(struct SearchSpace)); if(!searchSpcList->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } } @@ -2831,7 +2832,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(searchSpc->controlResourceSetId, sizeof(ControlResourceSetId_t)); if(!searchSpc->controlResourceSetId) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } *(searchSpc->controlResourceSetId) = PDCCH_CTRL_RSRC_SET_ONE_ID; @@ -2841,7 +2842,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod sizeof(struct SearchSpace__monitoringSlotPeriodicityAndOffset)); if(!searchSpc->monitoringSlotPeriodicityAndOffset) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } searchSpc->monitoringSlotPeriodicityAndOffset->present = \ @@ -2852,7 +2853,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(searchSpc->monitoringSymbolsWithinSlot, sizeof(BIT_STRING_t)); if(!searchSpc->monitoringSymbolsWithinSlot) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } @@ -2870,7 +2871,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod searchSpc->monitoringSymbolsWithinSlot->size); if(!searchSpc->monitoringSymbolsWithinSlot->buf) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } @@ -2884,7 +2885,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(searchSpc->nrofCandidates, sizeof(struct SearchSpace__nrofCandidates)); if(!searchSpc->nrofCandidates) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } @@ -2903,7 +2904,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod DU_ALLOC(searchSpc->searchSpaceType, sizeof(struct SearchSpace__searchSpaceType)); if(!searchSpc->searchSpaceType) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } @@ -2914,7 +2915,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod sizeof(struct SearchSpace__searchSpaceType__ue_Specific)); if(!searchSpc->searchSpaceType->choice.ue_Specific) { - DU_LOG("\nF1AP : Memory allocation failed in BuildSearchSpcToAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSearchSpcToAddModList"); return RFAILED; } searchSpc->searchSpaceType->choice.ue_Specific->dci_Formats = \ @@ -2946,7 +2947,7 @@ uint8_t BuildBWPDlDedPdcchCfg(struct PDCCH_Config *pdcchCfg) sizeof(struct PDCCH_Config__controlResourceSetToAddModList)); if(!pdcchCfg->controlResourceSetToAddModList) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdcchCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdcchCfg"); return RFAILED; } @@ -2962,7 +2963,7 @@ uint8_t BuildBWPDlDedPdcchCfg(struct PDCCH_Config *pdcchCfg) sizeof(struct PDCCH_Config__searchSpacesToAddModList)); if(!pdcchCfg->searchSpacesToAddModList) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdcchCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdcchCfg"); return RFAILED; } @@ -3006,7 +3007,7 @@ uint8_t BuildBWPDlDedPdcchCfg(struct PDCCH_Config *pdcchCfg) DU_ALLOC(dmrsDlCfg->choice.setup, sizeof(struct DMRS_DownlinkConfig)); if(!dmrsDlCfg->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); return RFAILED; } @@ -3015,7 +3016,7 @@ uint8_t BuildBWPDlDedPdcchCfg(struct PDCCH_Config *pdcchCfg) DU_ALLOC(dmrsDlCfg->choice.setup->dmrs_AdditionalPosition, sizeof(long)); if(!dmrsDlCfg->choice.setup->dmrs_AdditionalPosition) { - DU_LOG("\nF1AP : Memory allocation failed in BuildDMRSDLPdschMapTypeA"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildDMRSDLPdschMapTypeA"); return RFAILED; } *(dmrsDlCfg->choice.setup->dmrs_AdditionalPosition) = DMRS_ADDITIONAL_POS; @@ -3084,7 +3085,7 @@ uint8_t BuildTCIStatesToAddModList(struct PDSCH_Config__tci_StatesToAddModList * sizeof(struct PDSCH_TimeDomainResourceAllocationList)); if(!timeDomAllocList->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPdschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPdschTimeDomAllocList"); return RFAILED; } @@ -3098,7 +3099,7 @@ uint8_t BuildTCIStatesToAddModList(struct PDSCH_Config__tci_StatesToAddModList * timeDomAllocList->choice.setup->list.size); if(!timeDomAllocList->choice.setup->list.array) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPdschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPdschTimeDomAllocList"); return RFAILED; } @@ -3109,7 +3110,7 @@ uint8_t BuildTCIStatesToAddModList(struct PDSCH_Config__tci_StatesToAddModList * sizeof(struct PDSCH_TimeDomainResourceAllocation)); if(!timeDomAllocList->choice.setup->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPdschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPdschTimeDomAllocList"); return RFAILED; } } @@ -3154,7 +3155,7 @@ uint8_t BuildTCIStatesToAddModList(struct PDSCH_Config__tci_StatesToAddModList * sizeof(struct PDSCH_Config__prb_BundlingType__staticBundling)); if(!prbBndlType->choice.staticBundling) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPdschPrbBundlingType"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPdschPrbBundlingType"); return RFAILED; } prbBndlType->choice.staticBundling->bundleSize = NULLP; @@ -3187,7 +3188,7 @@ uint8_t BuildBWPDlDedPdschCfg(struct PDSCH_Config *pdschCfg) sizeof(struct PDSCH_Config__dmrs_DownlinkForPDSCH_MappingTypeA)); if(!pdschCfg->dmrs_DownlinkForPDSCH_MappingTypeA) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); return RFAILED; } @@ -3204,7 +3205,7 @@ uint8_t BuildBWPDlDedPdschCfg(struct PDSCH_Config *pdschCfg) DU_ALLOC(pdschCfg->tci_StatesToAddModList, sizeof(struct PDSCH_Config__tci_StatesToAddModList)); if(!pdschCfg->tci_StatesToAddModList) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); return RFAILED; } if(BuildTCIStatesToAddModList(pdschCfg->tci_StatesToAddModList) != ROK) @@ -3220,7 +3221,7 @@ uint8_t BuildBWPDlDedPdschCfg(struct PDSCH_Config *pdschCfg) sizeof(struct PDSCH_Config__pdsch_TimeDomainAllocationList)); if(!pdschCfg->pdsch_TimeDomainAllocationList) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); return RFAILED; } @@ -3241,7 +3242,7 @@ uint8_t BuildBWPDlDedPdschCfg(struct PDSCH_Config *pdschCfg) DU_ALLOC(pdschCfg->maxNrofCodeWordsScheduledByDCI, sizeof(long)); if(!pdschCfg->maxNrofCodeWordsScheduledByDCI) { - DU_LOG("\nF1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPDlDedPdschCfg"); return RFAILED; } *(pdschCfg->maxNrofCodeWordsScheduledByDCI) = PDSCH_MAX_CODEWORD_SCH_BY_DCI; @@ -3283,7 +3284,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(dlBwp->pdcch_Config, sizeof(struct BWP_DownlinkDedicated__pdcch_Config)); if(!dlBwp->pdcch_Config) { - DU_LOG("\nF1AP : Memory Allocation failure in BuildInitialDlBWP"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failure in BuildInitialDlBWP"); return RFAILED; } dlBwp->pdcch_Config->present = BWP_DownlinkDedicated__pdcch_Config_PR_setup; @@ -3292,7 +3293,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(dlBwp->pdcch_Config->choice.setup, sizeof(struct PDCCH_Config)); if(!dlBwp->pdcch_Config->choice.setup) { - DU_LOG("\nF1AP : Memory Allocation failure in BuildInitialDlBWP"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failure in BuildInitialDlBWP"); return RFAILED; } if(BuildBWPDlDedPdcchCfg(dlBwp->pdcch_Config->choice.setup) != ROK) @@ -3304,7 +3305,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(dlBwp->pdsch_Config, sizeof(struct BWP_DownlinkDedicated__pdsch_Config)); if(!dlBwp->pdsch_Config) { - DU_LOG("\nF1AP : Memory Allocation failure in BuildInitialDlBWP"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failure in BuildInitialDlBWP"); return RFAILED; } dlBwp->pdsch_Config->present = BWP_DownlinkDedicated__pdsch_Config_PR_setup; @@ -3313,7 +3314,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(dlBwp->pdsch_Config->choice.setup, sizeof(struct PDSCH_Config)); if(!dlBwp->pdsch_Config->choice.setup) { - DU_LOG("\nF1AP : Memory Allocation failure in BuildInitialDlBWP"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failure in BuildInitialDlBWP"); return RFAILED; } @@ -3353,7 +3354,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(dmrsUlCfg->choice.setup, sizeof(DMRS_UplinkConfig_t)); if(!dmrsUlCfg->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); return RFAILED; } @@ -3362,7 +3363,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(dmrsUlCfg->choice.setup->dmrs_AdditionalPosition, sizeof(long)); if(!dmrsUlCfg->choice.setup->dmrs_AdditionalPosition) { - DU_LOG("\nF1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); return RFAILED; } *(dmrsUlCfg->choice.setup->dmrs_AdditionalPosition) = DMRS_ADDITIONAL_POS; @@ -3374,7 +3375,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) sizeof(struct DMRS_UplinkConfig__transformPrecodingDisabled)); if(!dmrsUlCfg->choice.setup->transformPrecodingDisabled) { - DU_LOG("\nF1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); return RFAILED; } @@ -3383,7 +3384,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) sizeof(long)); if(!dmrsUlCfg->choice.setup->transformPrecodingDisabled->scramblingID0) { - DU_LOG("\nF1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildDMRSULPuschMapTypeA"); return RFAILED; } *(dmrsUlCfg->choice.setup->transformPrecodingDisabled->scramblingID0) = SCRAMBLING_ID; @@ -3425,7 +3426,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) sizeof(struct PUSCH_TimeDomainResourceAllocationList)); if(!timeDomAllocList->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); return RFAILED; } @@ -3438,7 +3439,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) timeDomAllocList->choice.setup->list.size); if(!timeDomAllocList->choice.setup->list.array) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); return RFAILED; } @@ -3449,7 +3450,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) sizeof(PUSCH_TimeDomainResourceAllocation_t)); if(!timeDomAllocList->choice.setup->list.array[idx]) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); return RFAILED; } } @@ -3459,7 +3460,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp) DU_ALLOC(timeDomAlloc->k2, sizeof(long)); if(!timeDomAlloc->k2) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschTimeDomAllocList"); return RFAILED; } *(timeDomAlloc->k2) = PUSCH_K2; @@ -3491,7 +3492,7 @@ uint8_t BuildBWPUlDedPuschCfg(PUSCH_Config_t *puschCfg) DU_ALLOC(puschCfg->dataScramblingIdentityPUSCH, sizeof(long)); if(!puschCfg->dataScramblingIdentityPUSCH) { - DU_LOG("\nF1AP: Memory allocation failed in BuildBWPUlDedPuschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPUlDedPuschCfg"); return RFAILED; } *(puschCfg->dataScramblingIdentityPUSCH) = SCRAMBLING_ID; @@ -3502,7 +3503,7 @@ uint8_t BuildBWPUlDedPuschCfg(PUSCH_Config_t *puschCfg) sizeof(struct PUSCH_Config__dmrs_UplinkForPUSCH_MappingTypeA)); if(!puschCfg->dmrs_UplinkForPUSCH_MappingTypeA) { - DU_LOG("\nF1AP: Memory allocation failed in BuildBWPUlDedPuschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPUlDedPuschCfg"); return RFAILED; } @@ -3522,7 +3523,7 @@ uint8_t BuildBWPUlDedPuschCfg(PUSCH_Config_t *puschCfg) sizeof(struct PUSCH_Config__pusch_TimeDomainAllocationList)); if(!puschCfg->pusch_TimeDomainAllocationList) { - DU_LOG("\nF1AP: Memory allocation failed in BuildBWPUlDedPuschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPUlDedPuschCfg"); return RFAILED; } @@ -3538,7 +3539,7 @@ uint8_t BuildBWPUlDedPuschCfg(PUSCH_Config_t *puschCfg) DU_ALLOC(puschCfg->transformPrecoder, sizeof(long)); if(!puschCfg->transformPrecoder) { - DU_LOG("\nF1AP: Memory allocation failed in BuildBWPUlDedPuschCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPUlDedPuschCfg"); return RFAILED; } *(puschCfg->transformPrecoder) = PUSCH_TRANSFORM_PRECODER; @@ -3579,7 +3580,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso DU_ALLOC(resourceList->list.array, resourceList->list.size); if(!resourceList->list.array) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcAddModList"); return RFAILED; } @@ -3588,7 +3589,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso DU_ALLOC(resourceList->list.array[rsrcIdx], sizeof(SRS_Resource_t)); if(!resourceList->list.array[rsrcIdx]) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcAddModList"); return RFAILED; } } @@ -3603,7 +3604,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso sizeof(struct SRS_Resource__transmissionComb__n2)); if(!resourceList->list.array[rsrcIdx]->transmissionComb.choice.n2) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcAddModList"); return RFAILED; } resourceList->list.array[rsrcIdx]->transmissionComb.choice.n2->combOffset_n2\ @@ -3634,7 +3635,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso sizeof(struct SRS_Resource__resourceType__aperiodic)); if(!resourceList->list.array[rsrcIdx]->resourceType.choice.aperiodic) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcAddModList"); return RFAILED; } resourceList->list.array[rsrcIdx]->sequenceId = SRS_SEQ_ID; @@ -3674,7 +3675,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso DU_ALLOC(rsrcSetList->list.array, rsrcSetList->list.size); if(!rsrcSetList->list.array) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcSetAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcSetAddModList"); return RFAILED; } @@ -3683,7 +3684,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso DU_ALLOC(rsrcSetList->list.array[rSetIdx], sizeof(SRS_ResourceSet_t)); if(!rsrcSetList->list.array[rSetIdx]) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcSetAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcSetAddModList"); return RFAILED; } } @@ -3697,7 +3698,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso sizeof(struct SRS_ResourceSet__srs_ResourceIdList)); if(!rsrcSetList->list.array[rSetIdx]->srs_ResourceIdList) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcSetAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcSetAddModList"); return RFAILED; } @@ -3709,7 +3710,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso DU_ALLOC(rsrcIdList->list.array, rsrcIdList->list.size); if(!rsrcIdList->list.array) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcSetAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcSetAddModList"); return RFAILED; } @@ -3718,7 +3719,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso DU_ALLOC(rsrcIdList->list.array[rsrcIdx], sizeof(SRS_ResourceId_t)); if(!rsrcIdList->list.array[rsrcIdx]) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcSetAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcSetAddModList"); return RFAILED; } } @@ -3735,7 +3736,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso sizeof(struct SRS_ResourceSet__resourceType__aperiodic)); if(!rsrcSetList->list.array[rSetIdx]->resourceType.choice.aperiodic) { - DU_LOG("\nF1AP: Memory allocation failed in BuildSrsRsrcSetAddModList"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildSrsRsrcSetAddModList"); return RFAILED; } rsrcSetList->list.array[rSetIdx]->resourceType.choice.aperiodic->aperiodicSRS_ResourceTrigger \ @@ -3778,7 +3779,7 @@ uint8_t BuildBWPUlDedSrsCfg(SRS_Config_t *srsCfg) sizeof(struct SRS_Config__srs_ResourceSetToAddModList)); if(!srsCfg->srs_ResourceSetToAddModList) { - DU_LOG("\nF1AP: Memory allocation failed in BuildBWPUlDedSrsCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPUlDedSrsCfg"); return RFAILED; } if(BuildSrsRsrcSetAddModList(srsCfg->srs_ResourceSetToAddModList) != ROK) @@ -3794,7 +3795,7 @@ uint8_t BuildBWPUlDedSrsCfg(SRS_Config_t *srsCfg) sizeof(struct SRS_Config__srs_ResourceToAddModList)); if(!srsCfg->srs_ResourceToAddModList) { - DU_LOG("\nF1AP: Memory allocation failed in BuildBWPUlDedSrsCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildBWPUlDedSrsCfg"); return RFAILED; } @@ -3833,7 +3834,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch DU_ALLOC(puschCfg->choice.setup, sizeof(struct PUSCH_ServingCellConfig)); if(!puschCfg->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschSrvCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschSrvCellCfg"); return RFAILED; } @@ -3844,7 +3845,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch DU_ALLOC(puschCfg->choice.setup->ext1, sizeof(struct PUSCH_ServingCellConfig__ext1)); if(!puschCfg->choice.setup->ext1) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschSrvCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschSrvCellCfg"); return RFAILED; } @@ -3852,7 +3853,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch DU_ALLOC(puschCfg->choice.setup->ext1->maxMIMO_Layers, sizeof(long)); if(!puschCfg->choice.setup->ext1->maxMIMO_Layers) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschSrvCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschSrvCellCfg"); return RFAILED; } *(puschCfg->choice.setup->ext1->maxMIMO_Layers) = PUSCH_MAX_MIMO_LAYERS; @@ -3861,7 +3862,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch DU_ALLOC(puschCfg->choice.setup->ext1->processingType2Enabled,sizeof(BOOLEAN_t)); if(!puschCfg->choice.setup->ext1->processingType2Enabled) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPuschSrvCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPuschSrvCellCfg"); return RFAILED; } *(puschCfg->choice.setup->ext1->processingType2Enabled) = PUSCH_PROCESS_TYPE2_ENABLED; @@ -3892,7 +3893,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp) DU_ALLOC(ulBwp->pusch_Config, sizeof(struct BWP_UplinkDedicated__pusch_Config)); if(!ulBwp->pusch_Config) { - DU_LOG("\nF1AP : Memory allocation failed in BuildInitialUlBWP"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildInitialUlBWP"); return RFAILED; } @@ -3901,7 +3902,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp) DU_ALLOC(ulBwp->pusch_Config->choice.setup, sizeof(PUSCH_Config_t)); if(!ulBwp->pusch_Config->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildInitialUlBWP"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildInitialUlBWP"); return RFAILED; } @@ -3917,7 +3918,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp) DU_ALLOC(ulBwp->srs_Config, sizeof(struct BWP_UplinkDedicated__srs_Config)); if(!ulBwp->srs_Config) { - DU_LOG("\nF1AP : Memory allocation failed in BuildInitialUlBWP"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildInitialUlBWP"); return RFAILED; } @@ -3926,7 +3927,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp) DU_ALLOC(ulBwp->srs_Config->choice.setup, sizeof(SRS_Config_t)); if(!ulBwp->srs_Config->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildInitialUlBWP"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildInitialUlBWP"); return RFAILED; } @@ -3961,7 +3962,7 @@ uint8_t BuildUlCfg(UplinkConfig_t *ulCfg) DU_ALLOC(ulCfg->initialUplinkBWP, sizeof(BWP_UplinkDedicated_t)); if(!ulCfg->initialUplinkBWP) { - DU_LOG("\nF1AP : Memory Allocation failed in BuildUlCfg"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failed in BuildUlCfg"); return RFAILED; } @@ -3976,7 +3977,7 @@ uint8_t BuildUlCfg(UplinkConfig_t *ulCfg) DU_ALLOC(ulCfg->firstActiveUplinkBWP_Id, sizeof(BWP_Id_t)); if(!ulCfg->firstActiveUplinkBWP_Id) { - DU_LOG("\nF1AP : Memory Allocation failed in BuildUlCfg"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failed in BuildUlCfg"); return RFAILED; } *(ulCfg->firstActiveUplinkBWP_Id) = ACTIVE_UL_BWP_ID; @@ -3986,7 +3987,7 @@ uint8_t BuildUlCfg(UplinkConfig_t *ulCfg) sizeof(struct UplinkConfig__pusch_ServingCellConfig)); if(!ulCfg->pusch_ServingCellConfig) { - DU_LOG("\nF1AP : Memory Allocation failed in BuildUlCfg"); + DU_LOG("\nERROR --> F1AP : Memory Allocation failed in BuildUlCfg"); return RFAILED; } @@ -4022,7 +4023,7 @@ uint8_t BuildPdschSrvCellCfg(struct ServingCellConfig__pdsch_ServingCellConfig * DU_ALLOC(pdschCfg->choice.setup, sizeof( struct PDSCH_ServingCellConfig)); if(!pdschCfg->choice.setup) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPdschSrvCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPdschSrvCellCfg"); return RFAILED; } @@ -4032,7 +4033,7 @@ uint8_t BuildPdschSrvCellCfg(struct ServingCellConfig__pdsch_ServingCellConfig * DU_ALLOC(pdschCfg->choice.setup->nrofHARQ_ProcessesForPDSCH, sizeof(long)); if(!pdschCfg->choice.setup->nrofHARQ_ProcessesForPDSCH) { - DU_LOG("\nF1AP : Memory allocation failed in BuildPdschSrvCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildPdschSrvCellCfg"); return RFAILED; } *(pdschCfg->choice.setup->nrofHARQ_ProcessesForPDSCH)= PDSCH_NUM_HARQ_PROC; @@ -4084,7 +4085,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->tdd_UL_DL_ConfigurationDedicated, sizeof(TDD_UL_DL_ConfigDedicated_t)); if(!srvCellCfg->tdd_UL_DL_ConfigurationDedicated) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } @@ -4092,13 +4093,13 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->initialDownlinkBWP, sizeof(BWP_DownlinkDedicated_t)); if(!srvCellCfg->initialDownlinkBWP) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } if(BuildInitialDlBWP(srvCellCfg->initialDownlinkBWP) != ROK) { - DU_LOG("\nF1AP : BuildInitialDlBWP failed"); + DU_LOG("\nERROR --> F1AP : BuildInitialDlBWP failed"); return RFAILED; } srvCellCfg->downlinkBWP_ToReleaseList = NULLP; @@ -4108,7 +4109,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->firstActiveDownlinkBWP_Id, sizeof(long)); if(!srvCellCfg->firstActiveDownlinkBWP_Id) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } *(srvCellCfg->firstActiveDownlinkBWP_Id) = ACTIVE_DL_BWP_ID; @@ -4119,7 +4120,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->defaultDownlinkBWP_Id, sizeof(long)); if(!srvCellCfg->defaultDownlinkBWP_Id) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } *(srvCellCfg->defaultDownlinkBWP_Id) = ACTIVE_DL_BWP_ID; @@ -4128,13 +4129,13 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->uplinkConfig, sizeof(UplinkConfig_t)); if(!srvCellCfg->uplinkConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } if(BuildUlCfg(srvCellCfg->uplinkConfig) != ROK) { - DU_LOG("\nF1AP : BuildUlCfg failed"); + DU_LOG("\nERROR --> F1AP : BuildUlCfg failed"); return RFAILED; } srvCellCfg->supplementaryUplink = NULLP; @@ -4144,13 +4145,13 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->pdsch_ServingCellConfig, sizeof(struct ServingCellConfig__pdsch_ServingCellConfig)); if(!srvCellCfg->pdsch_ServingCellConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } if(BuildPdschSrvCellCfg(srvCellCfg->pdsch_ServingCellConfig) != ROK) { - DU_LOG("\nF1AP : BuildPdschSrvCellCfg failed"); + DU_LOG("\nERROR --> F1AP : BuildPdschSrvCellCfg failed"); return RFAILED; } @@ -4159,7 +4160,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg) DU_ALLOC(srvCellCfg->csi_MeasConfig, sizeof(struct ServingCellConfig__csi_MeasConfig)) if(!srvCellCfg->csi_MeasConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfgDed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfgDed"); return RFAILED; } @@ -4202,7 +4203,7 @@ uint8_t BuildSpCellCfg(SpCellConfig_t *spCellCfg) DU_ALLOC(spCellCfg->servCellIndex, sizeof(long)); if(!spCellCfg->servCellIndex) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfg"); return RFAILED; } *(spCellCfg->servCellIndex) = SERV_CELL_IDX; @@ -4213,7 +4214,7 @@ uint8_t BuildSpCellCfg(SpCellConfig_t *spCellCfg) DU_ALLOC(spCellCfg->rlmInSyncOutOfSyncThreshold, sizeof(long)); if(!spCellCfg->rlmInSyncOutOfSyncThreshold) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfg"); return RFAILED; } *(spCellCfg->rlmInSyncOutOfSyncThreshold) = RLM_SYNC_OUT_SYNC_THRESHOLD; @@ -4222,12 +4223,12 @@ uint8_t BuildSpCellCfg(SpCellConfig_t *spCellCfg) DU_ALLOC(spCellCfg->spCellConfigDedicated, sizeof(ServingCellConfig_t)); if(!spCellCfg->spCellConfigDedicated) { - DU_LOG("\nF1AP : Memory allocation failure in BuildSpCellCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildSpCellCfg"); return RFAILED; } if(BuildSpCellCfgDed(spCellCfg->spCellConfigDedicated) != ROK) { - DU_LOG("\nF1AP : BuildSpCellCfgDed failed"); + DU_LOG("\nERROR --> F1AP : BuildSpCellCfgDed failed"); return RFAILED; } return ROK; @@ -4257,7 +4258,7 @@ uint8_t BuildPhyCellGrpCfg(PhysicalCellGroupConfig_t *phyCellGrpCfg) DU_ALLOC(phyCellGrpCfg->p_NR_FR1, sizeof(long)); if(!phyCellGrpCfg->p_NR_FR1) { - DU_LOG("\nF1AP : Memory allocation failure in BuildPhyCellGrpCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildPhyCellGrpCfg"); return RFAILED; } *(phyCellGrpCfg->p_NR_FR1) = P_NR_FR1; @@ -4295,13 +4296,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg) DU_ALLOC(macCellGrpCfg->schedulingRequestConfig, sizeof(struct SchedulingRequestConfig)); if(!macCellGrpCfg->schedulingRequestConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacCellGrpCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacCellGrpCfg"); return RFAILED; } if(BuildSchedulingReqConfig(macCellGrpCfg->schedulingRequestConfig) != ROK) { - DU_LOG("\nF1AP : BuildSchedulingReqConfig failed"); + DU_LOG("\nERROR --> F1AP : BuildSchedulingReqConfig failed"); return RFAILED; } @@ -4309,13 +4310,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg) DU_ALLOC(macCellGrpCfg->bsr_Config, sizeof(struct BSR_Config)); if(!macCellGrpCfg->bsr_Config) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacCellGrpCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacCellGrpCfg"); return RFAILED; } if(BuildBsrConfig(macCellGrpCfg->bsr_Config) != ROK) { - DU_LOG("\nF1AP : BuildBsrConfig failed"); + DU_LOG("\nERROR --> F1AP : BuildBsrConfig failed"); return RFAILED; } @@ -4323,13 +4324,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg) DU_ALLOC(macCellGrpCfg->tag_Config, sizeof(struct TAG_Config)); if(!macCellGrpCfg->tag_Config) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacCellGrpCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacCellGrpCfg"); return RFAILED; } if(BuildTagConfig(macCellGrpCfg->tag_Config) != ROK) { - DU_LOG("\nF1AP : BuildTagConfig failed"); + DU_LOG("\nERROR --> F1AP : BuildTagConfig failed"); return RFAILED; } @@ -4337,13 +4338,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg) DU_ALLOC(macCellGrpCfg->phr_Config, sizeof(struct MAC_CellGroupConfig__phr_Config)); if(!macCellGrpCfg->phr_Config) { - DU_LOG("\nF1AP : Memory allocation failure in BuildMacCellGrpCfg"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildMacCellGrpCfg"); return RFAILED; } if(BuildPhrConfig(macCellGrpCfg->phr_Config) != ROK) { - DU_LOG("\nF1AP : BuildPhrConfig failed"); + DU_LOG("\nERROR --> F1AP : BuildPhrConfig failed"); return RFAILED; } @@ -5040,13 +5041,13 @@ uint8_t BuildDuToCuRrcContainer(DUtoCURRCContainer_t *duToCuRrcContainer) DU_ALLOC(cellGrpCfg.rlc_BearerToAddModList, sizeof(struct CellGroupConfigRrc__rlc_BearerToAddModList)); if(!cellGrpCfg.rlc_BearerToAddModList) { - DU_LOG("\nF1AP : Memory allocation failure in BuildDuToCuRrcContainer"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildDuToCuRrcContainer"); ret = RFAILED; break; } if(BuildRlcBearerToAddModList(cellGrpCfg.rlc_BearerToAddModList) != ROK) { - DU_LOG("\nF1AP : BuildRlcBearerToAddModList failed"); + DU_LOG("\nERROR --> F1AP : BuildRlcBearerToAddModList failed"); ret = RFAILED; break; } @@ -5056,13 +5057,13 @@ uint8_t BuildDuToCuRrcContainer(DUtoCURRCContainer_t *duToCuRrcContainer) DU_ALLOC(cellGrpCfg.mac_CellGroupConfig, sizeof(MAC_CellGroupConfig_t)); if(!cellGrpCfg.mac_CellGroupConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildDuToCuRrcContainer"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildDuToCuRrcContainer"); ret = RFAILED; break; } if(BuildMacCellGrpCfg(cellGrpCfg.mac_CellGroupConfig) != ROK) { - DU_LOG("\nF1AP : BuildMacCellGrpCfg failed"); + DU_LOG("\nERROR --> F1AP : BuildMacCellGrpCfg failed"); ret = RFAILED; break; } @@ -5071,13 +5072,13 @@ uint8_t BuildDuToCuRrcContainer(DUtoCURRCContainer_t *duToCuRrcContainer) DU_ALLOC(cellGrpCfg.physicalCellGroupConfig, sizeof(PhysicalCellGroupConfig_t)); if(!cellGrpCfg.physicalCellGroupConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildDuToCuRrcContainer"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildDuToCuRrcContainer"); ret = RFAILED; break; } if(BuildPhyCellGrpCfg(cellGrpCfg.physicalCellGroupConfig) != ROK) { - DU_LOG("\nF1AP : BuildPhyCellGrpCfg failed"); + DU_LOG("\nERROR --> F1AP : BuildPhyCellGrpCfg failed"); ret = RFAILED; break; } @@ -5086,13 +5087,13 @@ uint8_t BuildDuToCuRrcContainer(DUtoCURRCContainer_t *duToCuRrcContainer) DU_ALLOC(cellGrpCfg.spCellConfig, sizeof(SpCellConfig_t)); if(!cellGrpCfg.spCellConfig) { - DU_LOG("\nF1AP : Memory allocation failure in BuildDuToCuRrcContainer"); + DU_LOG("\nERROR --> F1AP : Memory allocation failure in BuildDuToCuRrcContainer"); ret = RFAILED; break; } if(BuildSpCellCfg(cellGrpCfg.spCellConfig) != ROK) { - DU_LOG("\nF1AP : BuildSpCellCfg failed"); + DU_LOG("\nERROR --> F1AP : BuildSpCellCfg failed"); ret = RFAILED; break; } @@ -5109,14 +5110,14 @@ uint8_t BuildDuToCuRrcContainer(DUtoCURRCContainer_t *duToCuRrcContainer) /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG( "\n F1AP : Could not encode DuToCuRrcContainer (at %s)\n",\ + DU_LOG( "\nERROR --> F1AP : Could not encode DuToCuRrcContainer (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); ret = RFAILED; break; } else { - DU_LOG("\n F1AP : Created APER encoded buffer for DuToCuRrcContainer\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for DuToCuRrcContainer\n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -5127,7 +5128,7 @@ uint8_t BuildDuToCuRrcContainer(DUtoCURRCContainer_t *duToCuRrcContainer) DU_ALLOC(duToCuRrcContainer->buf, duToCuRrcContainer->size); if(!duToCuRrcContainer->buf) { - DU_LOG("\nF1AP : Memory allocation failed in BuildDuToCuRrcContainer"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in BuildDuToCuRrcContainer"); ret = RFAILED; break; } @@ -5227,7 +5228,7 @@ uint8_t freeInitUlRrcMsgTransfer(F1AP_PDU_t *f1apMsg) } else { - DU_LOG("\nDU_APP : Recevied F1ap Pdu is null at freeInitUlRrcMsgTransfer()"); + DU_LOG("\nERROR --> DU_APP : Recevied F1ap Pdu is null at freeInitUlRrcMsgTransfer()"); return RFAILED; } return ROK; @@ -5263,18 +5264,18 @@ uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti while(true) { - DU_LOG("\n F1AP : Building RRC Setup Request\n"); + DU_LOG("\n INFO --> F1AP : Building RRC Setup Request\n"); DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); if(f1apMsg == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->present = F1AP_PDU_PR_initiatingMessage; DU_ALLOC(f1apMsg->choice.initiatingMessage,sizeof(InitiatingMessage_t)); if(f1apMsg->choice.initiatingMessage == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->choice.initiatingMessage->procedureCode =\ @@ -5292,7 +5293,7 @@ uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti DU_ALLOC(initULRRCMsg->protocolIEs.list.array,initULRRCMsg->protocolIEs.list.size); if(initULRRCMsg->protocolIEs.list.array == NULLP) { - DU_LOG(" F1AP : Memory allocation for\ + DU_LOG(" ERROR --> F1AP : Memory allocation for\ RRCSetupRequestMessageTransferIEs failed"); break; } @@ -5352,7 +5353,7 @@ uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti initULRRCMsg->protocolIEs.list.array[ieIdx]->value.choice.RRCContainer.size) if(!initULRRCMsg->protocolIEs.list.array[ieIdx]->value.choice.RRCContainer.buf) { - DU_LOG(" F1AP : Memory allocation for RRCSetupRequestMessageTransferIEs failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for RRCSetupRequestMessageTransferIEs failed"); break; } @@ -5382,7 +5383,7 @@ uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG( "\n F1AP : Could not encode Initial UL RRC Message Transfer\ + DU_LOG( "\nERROR --> F1AP : Could not encode Initial UL RRC Message Transfer\ structure (at %s)\n",encRetVal.failed_type ? \ encRetVal.failed_type->name : "unknown"); ret = RFAILED; @@ -5391,7 +5392,7 @@ uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti else { - DU_LOG("\n F1AP : Created APER encoded buffer for Initial UL RRC\ + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for Initial UL RRC\ Message transfer\n"); for(int i=0; i< encBufSize; i++) { @@ -5401,7 +5402,7 @@ uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION,DU_POOL) != ROK) { - DU_LOG("\n F1AP : Sending Initial UL RRC Message Transfer Failed"); + DU_LOG("\nERROR --> F1AP : Sending Initial UL RRC Message Transfer Failed"); ret = RFAILED; break; } @@ -5494,7 +5495,7 @@ void freeRlcLcCfg(RlcBearerCfg *lcCfg) break; } default: - DU_LOG("\nDU_APP: Invalid Rlc Mode %d at freeRlcLcCfg()", lcCfg->rlcMode); + DU_LOG("\nERROR --> DU_APP: Invalid Rlc Mode %d at freeRlcLcCfg()", lcCfg->rlcMode); break; } memset(lcCfg, 0, sizeof(LcCfg)); @@ -6492,7 +6493,7 @@ void extractRlcModeCfg(uint8_t rlcMode, RlcBearerCfg *rlcDbCfg, RLC_Config_t *lc break; } default: - DU_LOG("\nDUAPP: Invalid rlcMode %d at extractRlcCfgToAddMod()", rlcMode); + DU_LOG("\nERROR --> DUAPP: Invalid rlcMode %d at extractRlcCfgToAddMod()", rlcMode); break; } } @@ -6658,7 +6659,7 @@ uint8_t extractDrbCfg(DRBs_ToBeSetup_Item_t *drbItem, LcCfg *macLcToAdd) DU_ALLOC_SHRABL_BUF(macLcToAdd->drbQos, sizeof(DrbQosInfo)); if(macLcToAdd->drbQos == NULLP) { - DU_LOG("\n DUAPP:Memory failed at allocating DrbQos at extractDrbCfg()"); + DU_LOG("\nERROR --> DUAPP:Memory failed at allocating DrbQos at extractDrbCfg()"); return RFAILED; } @@ -6673,7 +6674,7 @@ uint8_t extractDrbCfg(DRBs_ToBeSetup_Item_t *drbItem, LcCfg *macLcToAdd) DU_ALLOC_SHRABL_BUF(macLcToAdd->snssai, sizeof(Snssai)); if(macLcToAdd->snssai == NULLP) { - DU_LOG("\n DUAPP:Memory failed at allocating SNSSAI at extractDrbCfg()"); + DU_LOG("\nERROR --> DUAPP : Memory failed at allocating SNSSAI at extractDrbCfg()"); return RFAILED; } } @@ -6698,7 +6699,7 @@ uint8_t extractMacRbCfg(uint8_t lcId, DRBs_ToBeSetup_Item_t *drbCfg, LogicalChan ret = extractDrbCfg(drbCfg, lcCfg); if(ret == RFAILED) { - DU_LOG("F1AP: Failed to build Drb Qos at extractMacRbCfg()"); + DU_LOG("ERROR --> F1AP : Failed to build Drb Qos at extractMacRbCfg()"); return ret; } } @@ -6782,7 +6783,7 @@ uint8_t extractRlcCfgToAddMod(struct CellGroupConfigRrc__rlc_BearerToAddModList } else { - DU_LOG("\n No components present in Bearer config to ADD/MOD"); + DU_LOG("\nERROR --> No components present in Bearer config to ADD/MOD"); return RFAILED; } /* MAC UL LC Config */ @@ -6793,7 +6794,7 @@ uint8_t extractRlcCfgToAddMod(struct CellGroupConfigRrc__rlc_BearerToAddModList } else { - DU_LOG("\nDUAPP: Received RadioBearer config is NULL"); + DU_LOG("\nERROR --> DUAPP: Received RadioBearer config is NULL"); return RFAILED; } /* RLC Mode Config */ @@ -6810,7 +6811,7 @@ uint8_t extractRlcCfgToAddMod(struct CellGroupConfigRrc__rlc_BearerToAddModList ret = procMacLcCfg(lcId, rbType, CONFIG_UNKNOWN, NULL, macUlLcCfg, &ueCfgDb->macLcCfg[idx]); if(ret == RFAILED) { - DU_LOG("\nDUAPP: Failed while filling MAC LC config at extractRlcCfgToAddMod()"); + DU_LOG("\nERROR --> DU APP : Failed while filling MAC LC config at extractRlcCfgToAddMod()"); return ret; } (ueCfgDb->numRlcLcs)++; @@ -7260,7 +7261,7 @@ uint8_t extractPdschServingCellCfg(PDSCH_ServingCellConfig_t *cuPdschSrvCellCfg, } else { - DU_LOG("\nDUAPP: Memory allocation failed for maxCodeBlkGrpPerTb at extractPdschServingCellCfg()"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for maxCodeBlkGrpPerTb at extractPdschServingCellCfg()"); return RFAILED; } } @@ -7279,7 +7280,7 @@ uint8_t extractPdschServingCellCfg(PDSCH_ServingCellConfig_t *cuPdschSrvCellCfg, } else { - DU_LOG("\nDUAPP: Memory allocation failed for codeBlkGrpFlushInd at extractPdschServingCellCfg()"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for codeBlkGrpFlushInd at extractPdschServingCellCfg()"); return RFAILED; } } @@ -7306,7 +7307,7 @@ uint8_t extractPdschServingCellCfg(PDSCH_ServingCellConfig_t *cuPdschSrvCellCfg, } else { - DU_LOG("\nDUAPP: Memory allocation failed for maxMimoLayers at extractPdschServingCellCfg()"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for maxMimoLayers at extractPdschServingCellCfg()"); return RFAILED; } } @@ -7327,7 +7328,7 @@ uint8_t extractPdschServingCellCfg(PDSCH_ServingCellConfig_t *cuPdschSrvCellCfg, } else { - DU_LOG("\nDUAPP: Memory allocation failed for xOverhead at extractPdschServingCellCfg()"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for xOverhead at extractPdschServingCellCfg()"); return RFAILED; } } @@ -7750,7 +7751,7 @@ void fillPucchSchedReqPeriodAndOffset(uint8_t macPeriodicty, uint16_t macOffset break; } default : - DU_LOG("\nERROR --> F1AP : Invalid periodicity %d", macPeriodicty); + DU_LOG("\nERROR --> F1AP : Invalid periodicity %d", macPeriodicty); } } @@ -8279,7 +8280,7 @@ void freeAperDecodeCuToDuInfo(CUtoDURRCInformation_t *rrcMsg) } break; default: - DU_LOG("\nF1AP:Invalid Event type %ld at FreeCuToDuInfo()", \ + DU_LOG("\nERROR --> F1AP : Invalid Event type %ld at FreeCuToDuInfo()", \ rrcMsg->iE_Extensions->list.array[ieIdx]->id); break; } @@ -8589,7 +8590,7 @@ uint8_t procUeReCfgCellInfo(MacUeCfg *macUeCfg, void *cellInfo) cellGrp = (CellGroupConfigRrc_t *)cellInfo; ret = extractUeReCfgCellInfo(cellGrp, macUeCfg); if(ret == RFAILED) - DU_LOG("\nF1AP: Failed at procUeReCfgCellInfo()"); + DU_LOG("\nERROR --> F1AP : Failed at procUeReCfgCellInfo()"); } if(ret == RFAILED) { @@ -8653,7 +8654,7 @@ void duFillModulationDetails(MacUeCfg *ueCfg, MacUeCfg *oldUeCfg, void *ueCap) } default: { - DU_LOG("\nDU APP: Incorrect downlink modulation order received. Reatining old modulation configuration"); + DU_LOG("\nERROR --> DU APP: Incorrect downlink modulation order received. Reatining old modulation configuration"); memcpy(&ueCfg->dlModInfo, &oldUeCfg->dlModInfo, sizeof(ModulationInfo)); break; } @@ -8695,7 +8696,7 @@ void duFillModulationDetails(MacUeCfg *ueCfg, MacUeCfg *oldUeCfg, void *ueCap) } default: { - DU_LOG("\nDU APP: Incorrect uplink modulation order received. Reatining old modulation configuration"); + DU_LOG("\nERROR --> DU APP: Incorrect uplink modulation order received. Reatining old modulation configuration"); memcpy(&ueCfg->ulModInfo, &oldUeCfg->ulModInfo, sizeof(ModulationInfo)); break; } @@ -8755,7 +8756,7 @@ CellGroupConfigRrc_t *extractCellGrpInfo(ProtocolExtensionContainer_4624P16_t *p extIeInfo->extensionValue.choice.CellGroupConfig.buf, recvBufLen, 0, 0); if(rval.code == RC_FAIL || rval.code == RC_WMORE) { - DU_LOG("\nF1AP : ASN decode failed at decodeCellGrpCfg()"); + DU_LOG("\nERROR --> F1AP : ASN decode failed at decodeCellGrpCfg()"); return NULLP; } xer_fprint(stdout, &asn_DEF_CellGroupConfigRrc, cellGrpCfg); @@ -8765,7 +8766,7 @@ CellGroupConfigRrc_t *extractCellGrpInfo(ProtocolExtensionContainer_4624P16_t *p break; } default: - DU_LOG("\nF1AP : Invalid IE received CUtoDURRCInformation:%d at decodeCellGrpCfg()", id); + DU_LOG("\nERROR --> F1AP : Invalid IE received CUtoDURRCInformation:%d at decodeCellGrpCfg()", id); break; } } @@ -8800,7 +8801,7 @@ uint8_t procSrbListToSetup(SRBs_ToBeSetup_Item_t * srbItem, LcCfg *macLcToAdd, R ret = procMacLcCfg(srbItem->sRBID, RB_TYPE_SRB, CONFIG_ADD, NULL, NULL, macLcToAdd); if(ret == RFAILED) { - DU_LOG("\nF1AP:Failed at MAC LC Cfg in procSrbListToSetup()"); + DU_LOG("\nERROR --> F1AP : Failed at MAC LC Cfg in procSrbListToSetup()"); return ret; } return ret; @@ -8837,13 +8838,13 @@ uint8_t extractSrbListToSetup(SRBs_ToBeSetup_List_t *srbCfg, DuUeCfg *ueCfgDb) srbItem = &srbCfg->list.array[srbIdx]->value.choice.SRBs_ToBeSetup_Item; if(ueCfgDb->numMacLcs > MAX_NUM_LC) { - DU_LOG("\nF1AP: MAX LC Reached in MAC"); + DU_LOG("\nERROR --> F1AP: MAX LC Reached in MAC"); ret = RFAILED; break; } if(ueCfgDb->numRlcLcs > MAX_NUM_LC) { - DU_LOG("\nF1AP: MAX LC Reached in RLC"); + DU_LOG("\nERROR --> F1AP: MAX LC Reached in RLC"); ret = RFAILED; break; } @@ -8855,7 +8856,7 @@ uint8_t extractSrbListToSetup(SRBs_ToBeSetup_List_t *srbCfg, DuUeCfg *ueCfgDb) ueCfgDb->numMacLcs++; if(ret == RFAILED) { - DU_LOG("\nF1AP: Failed at extractSrbListToSetup()"); + DU_LOG("\nERROR --> F1AP: Failed at extractSrbListToSetup()"); break; } } @@ -8895,7 +8896,7 @@ uint8_t procDrbListToSetup(uint8_t lcId, DRBs_ToBeSetup_Item_t *drbItem, LcCfg * ret = procMacLcCfg(lcId, RB_TYPE_DRB, CONFIG_ADD, drbItem, NULL, macLcToAdd); if(ret == RFAILED) { - DU_LOG("\nF1AP:Failed at RLC LC Cfg in extractDrbListToSetup()"); + DU_LOG("\nERROR --> F1AP : Failed at RLC LC Cfg in extractDrbListToSetup()"); return ret; } @@ -8932,13 +8933,13 @@ uint8_t extractDrbListToSetup(uint8_t lcId, DRBs_ToBeSetup_List_t *drbCfg, DuUeC drbItem = &drbCfg->list.array[drbIdx]->value.choice.DRBs_ToBeSetup_Item; if(ueCfgDb->numMacLcs > MAX_NUM_LC) { - DU_LOG("\nF1AP: MAX LC Reached in MAC "); + DU_LOG("\nERROR --> F1AP: MAX LC Reached in MAC "); ret = RFAILED; break; } if(ueCfgDb->numRlcLcs > MAX_NUM_LC) { - DU_LOG("\nF1AP: MAX LC Reached in RLC"); + DU_LOG("\nERROR --> F1AP: MAX LC Reached in RLC"); ret = RFAILED; break; } @@ -8950,7 +8951,7 @@ uint8_t extractDrbListToSetup(uint8_t lcId, DRBs_ToBeSetup_List_t *drbCfg, DuUeC ueCfgDb->numMacLcs++; if(ret == RFAILED) { - DU_LOG("\nF1AP: Failed at extractDrbListToSetup()"); + DU_LOG("\nERROR --> F1AP : Failed at extractDrbListToSetup()"); break; } } @@ -8987,7 +8988,7 @@ uint8_t extractDlRrcMsg(uint32_t gnbDuUeF1apId, uint32_t gnbCuUeF1apId, \ DU_ALLOC_SHRABL_BUF(dlRrcMsg->rrcMsgPdu, dlRrcMsg->rrcMsgSize); if(!dlRrcMsg->rrcMsgPdu) { - DU_LOG("\nDU APP : Memory allocation failed for RRC Msg in procUeCtxtSetupReq"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for RRC Msg in procUeCtxtSetupReq"); ret = RFAILED; } else @@ -9029,7 +9030,7 @@ UE_NR_Capability_t *extractUeCapability(UE_CapabilityRAT_ContainerList_t *ueCapa DU_ALLOC(ueCapRatContList, sizeof(UE_CapabilityRAT_ContainerListRRC_t)); if(!ueCapRatContList) { - DU_LOG("\nF1AP : Memory allocation failed in extractUeCapability"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in extractUeCapability"); return NULLP; } memset(ueCapRatContList, 0, sizeof(UE_CapabilityRAT_ContainerListRRC_t)); @@ -9038,7 +9039,7 @@ UE_NR_Capability_t *extractUeCapability(UE_CapabilityRAT_ContainerList_t *ueCapa ueCapablityListBuf->buf, recvBufLen, 0, 0); if(rval.code == RC_FAIL || rval.code == RC_WMORE) { - DU_LOG("\nF1AP : ASN decode failed at decodeCellGrpCfg()"); + DU_LOG("\nERROR --> F1AP : ASN decode failed at decodeCellGrpCfg()"); return NULLP; } xer_fprint(stdout, &asn_DEF_UE_CapabilityRAT_ContainerListRRC, ueCapRatContList); @@ -9054,7 +9055,7 @@ UE_NR_Capability_t *extractUeCapability(UE_CapabilityRAT_ContainerList_t *ueCapa DU_ALLOC(ueNrCap, sizeof(UE_NR_Capability_t)); if(!ueNrCap) { - DU_LOG("\nF1AP : Memory allocation failed in extractUeCapability"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in extractUeCapability"); DU_FREE(ueCapRatContList, sizeof(UE_CapabilityRAT_ContainerListRRC_t)); return NULLP; } @@ -9064,7 +9065,7 @@ UE_NR_Capability_t *extractUeCapability(UE_CapabilityRAT_ContainerList_t *ueCapa ueCapRatContList->list.array[idx]->ue_CapabilityRAT_Container.buf, recvBufLen, 0, 0); if(rval.code == RC_FAIL || rval.code == RC_WMORE) { - DU_LOG("\nF1AP : ASN decode failed at decodeCellGrpCfg()"); + DU_LOG("\nERROR --> F1AP : ASN decode failed at decodeCellGrpCfg()"); return NULLP; } xer_fprint(stdout, &asn_DEF_UE_NR_Capability, ueNrCap); @@ -9156,7 +9157,7 @@ void freeAperDecodeF1UeContextSetupReq(UEContextSetupRequest_t *ueSetReq) break; } default: - printf("\nF1AP: Invalid event type %ld",ueSetReq->protocolIEs.list.array[ieIdx]->id); + DU_LOG("\nERROR --> F1AP: Invalid event type %ld " ,ueSetReq->protocolIEs.list.array[ieIdx]->id); } free(ueSetReq->protocolIEs.list.array[ieIdx]); } @@ -9223,7 +9224,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) } else { - DU_LOG("\nF1AP: Memory Alloc Failed at procF1UeContextSetupReq()"); + DU_LOG("\nERROR --> F1AP: Memory Alloc Failed at procF1UeContextSetupReq()"); ret = RFAILED; } } @@ -9233,7 +9234,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) } if(!ueCbFound) { - DU_LOG("\nF1AP: DuUeCb is not found at procF1UeContextSetupReq()"); + DU_LOG("\nERROR --> F1AP: DuUeCb is not found at procF1UeContextSetupReq()"); ret = RFAILED; } break; @@ -9256,7 +9257,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) value.choice.CUtoDURRCInformation.iE_Extensions, &duUeCb->f1UeDb->duUeCfg); if(!duUeCb->f1UeDb->duUeCfg.cellGrpCfg) { - DU_LOG("\n F1AP: Failed to extract cell Grp Info"); + DU_LOG("\nERROR --> F1AP: Failed to extract cell Grp Info"); //TODO: Update the failure cause in ue context Setup Response ret = RFAILED; } @@ -9265,8 +9266,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) } case ProtocolIE_ID_id_SCell_ToBeSetup_List: { - DU_LOG("\nDU_APP: Received SCell to be added"); - DU_LOG("\nDU_APP: Not processing the SCell_ToBeSetup_List"); + DU_LOG("\nINFO --> DU_APP: Received SCell_ToBeSetup_List but Not processing the list"); break; } case ProtocolIE_ID_id_SRBs_ToBeSetup_List: @@ -9274,7 +9274,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) if(extractSrbListToSetup(&ueSetReq->protocolIEs.list.array[ieIdx]->value.choice.SRBs_ToBeSetup_List,\ &duUeCb->f1UeDb->duUeCfg)) { - DU_LOG("\nDU_APP: Failed at extractSrbListToSetup()"); + DU_LOG("\nERROR --> DU APP : Failed at extractSrbListToSetup()"); //TODO: Update the failure cause in ue context Setup Response ret = RFAILED; } @@ -9288,7 +9288,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) if(extractDrbListToSetup(lcId, &ueSetReq->protocolIEs.list.array[ieIdx]->value.choice.DRBs_ToBeSetup_List,\ &duUeCb->f1UeDb->duUeCfg)) { - DU_LOG("\nDU_APP: Failed at extractDrbListToSetup()"); + DU_LOG("\nERROR --> DU APP : Failed at extractDrbListToSetup()"); //TODO: Update the failure cause in ue context Setup Response ret = RFAILED; } @@ -9303,7 +9303,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) DU_ALLOC_SHRABL_BUF(duUeCb->f1UeDb->dlRrcMsg, sizeof(F1DlRrcMsg)); if(!duUeCb->f1UeDb->dlRrcMsg) { - DU_LOG("\nDU APP : Memory allocation failed for DL RRC Msg in procUeCtxtSetupReq()"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for DL RRC Msg in procUeCtxtSetupReq()"); ret = RFAILED; } else @@ -9322,7 +9322,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) } else { - DU_LOG("\nIgnoring delivery report, since rrcContainer is not present"); + DU_LOG("\nERROR --> Ignoring delivery report, since rrcContainer is not present"); } break; } @@ -9335,7 +9335,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) DU_ALLOC_SHRABL_BUF(duUeCb->f1UeDb->duUeCfg.ambrCfg, bitRateSize); if(!duUeCb->f1UeDb->duUeCfg.ambrCfg) { - DU_LOG("\nDU APP : Memory allocation failed for bitRate in procUeCtxtSetupReq"); + DU_LOG("\nERROR --> DU APP : Memory allocation failed for bitRate in procUeCtxtSetupReq"); ret = RFAILED; } else @@ -9360,7 +9360,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg) { /*TODO : Negative case*/ // BuildAndSendUeContextSetupRsp(ueIdx, cellId); - DU_LOG("F1AP: Failed to process UE CNTXT SETUP REQ at procF1UeContextSetupReq()"); + DU_LOG("\nERROR --> F1AP: Failed to process UE CNTXT SETUP REQ at procF1UeContextSetupReq()"); } else ret = duProcUeContextSetupRequest(duUeCb); @@ -9421,7 +9421,8 @@ void FreeUeContextSetupRsp(F1AP_PDU_t *f1apMsg) break; } default: - DU_LOG("\nDUAPP: Invalid Id %ld at FreeUeContextSetupRsp()", ueSetRsp->protocolIEs.list.array[idx]->id); + DU_LOG("\nERROR --> DUAPP: Invalid Id %ld at FreeUeContextSetupRsp()",\ + ueSetRsp->protocolIEs.list.array[idx]->id); break; } DU_FREE(ueSetRsp->protocolIEs.list.array[idx],\ @@ -9465,13 +9466,13 @@ uint8_t EncodeUeCntxtDuToCuInfo(CellGroupConfig_t *duToCuCellGrp, CellGroupConfi /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG( "\n F1AP : Could not encode UeCntxtDuToCuInfo (at %s)\n",\ + DU_LOG( "\nERROR --> F1AP : Could not encode UeCntxtDuToCuInfo (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); return RFAILED; } else { - DU_LOG("\n F1AP : Created APER encoded buffer for UeCntxtDuToCuInfo\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for UeCntxtDuToCuInfo\n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -9481,7 +9482,7 @@ uint8_t EncodeUeCntxtDuToCuInfo(CellGroupConfig_t *duToCuCellGrp, CellGroupConfi DU_ALLOC(duToCuCellGrp->buf, duToCuCellGrp->size); if(!duToCuCellGrp->buf) { - DU_LOG("\nF1AP : Memory allocation failed in UeCntxtDuToCuInfo"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed in UeCntxtDuToCuInfo"); } memcpy(duToCuCellGrp->buf, encBuf, duToCuCellGrp->size); return ROK; @@ -9515,14 +9516,14 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) CellGroupConfigRrc_t *cellGrpCfg = NULLP; DuUeCb *ueCb = NULLP; - DU_LOG("\n F1AP : Building UE Context Setup Response for cellId %d, ueIdx %d\n", cellId, ueIdx); + DU_LOG("\n INFO --> F1AP : Building UE Context Setup Response for cellId %d, ueIdx %d\n", cellId, ueIdx); while(true) { DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); if(f1apMsg == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); ret = RFAILED; break; } @@ -9532,7 +9533,7 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) sizeof(SuccessfulOutcome_t)); if(f1apMsg->choice.successfulOutcome == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); ret = RFAILED; break; } @@ -9555,7 +9556,7 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) ueSetRsp->protocolIEs.list.size); if(ueSetRsp->protocolIEs.list.array == NULLP) { - DU_LOG(" F1AP : Memory allocation for UE Setup Response failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for UE Setup Response failed"); ret = RFAILED; break; } @@ -9566,7 +9567,7 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) sizeof(UEContextSetupResponseIEs_t)); if(ueSetRsp->protocolIEs.list.array[idx] == NULLP) { - DU_LOG(" F1AP : Memory allocation for UE Setup Response failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for UE Setup Response failed"); ret = RFAILED; break; } @@ -9617,7 +9618,7 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) } else { - DU_LOG("\nF1AP: Failed to form DUtoCU RRCInfo at BuildAndSendUeContextSetupRsp()"); + DU_LOG("\nERROR --> F1AP: Failed to form DUtoCU RRCInfo at BuildAndSendUeContextSetupRsp()"); ret = RFAILED; } if(ret == RFAILED) @@ -9633,14 +9634,14 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG( "\n F1AP : Could not encode UE Context Setup Request structure (at %s)\n",\ + DU_LOG( "\nERROR --> F1AP : Could not encode UE Context Setup Request structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); ret = RFAILED; break; } else { - DU_LOG("\n F1AP : Created APER encoded buffer for UE Context Setup Request\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for UE Context Setup Request\n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -9650,7 +9651,7 @@ uint8_t BuildAndSendUeContextSetupRsp(uint8_t ueIdx, uint8_t cellId) /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION,DU_POOL) != ROK) { - DU_LOG("\n F1AP : Sending UE Context Setup Request Failed"); + DU_LOG("\nERROR --> F1AP : Sending UE Context Setup Request Failed"); ret = RFAILED; break; } @@ -9690,7 +9691,7 @@ uint8_t BuildAndSendUeCtxtRsp(uint8_t ueIdx, uint8_t cellId) //TODO: Build Ue context Modification Rsp break; default: - DU_LOG("F1AP: Invalid Action Type %d at BuildAndSendUeCtxtRsp()", actionType); + DU_LOG("ERROR --> F1AP: Invalid Action Type %d at BuildAndSendUeCtxtRsp()", actionType); break; } @@ -9764,7 +9765,7 @@ uint8_t BuildAndSendF1ResetReq() Reset_t *f1ResetMsg = NULLP; F1AP_PDU_t *f1apMsg = NULLP; asn_enc_rval_t encRetVal; - DU_LOG("\nF1AP : Building F1 Reset request \n"); + DU_LOG("\nINFO --> F1AP : Building F1 Reset request \n"); do { DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); @@ -9837,13 +9838,13 @@ uint8_t BuildAndSendF1ResetReq() /* Encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG("\nF1AP : Could not encode F1Reset structure (at %s)\n",\ + DU_LOG("\nERROR --> F1AP : Could not encode F1Reset structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nF1AP : Created APER encoded buffer for F1Reset\n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for F1Reset\n"); for(idx=0; idx< encBufSize; idx++) { printf("%x",encBuf[idx]); @@ -9852,7 +9853,7 @@ uint8_t BuildAndSendF1ResetReq() if(SendF1APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nF1AP : Sending F1 Reset request failed"); + DU_LOG("\nERROR --> F1AP : Sending F1 Reset request failed"); break; } @@ -9930,14 +9931,14 @@ uint8_t BuildAndSendF1ResetAck() F1AP_PDU_t *f1apMsg = NULL; ResetAcknowledge_t *f1ResetAck = NULLP; asn_enc_rval_t encRetVal; - DU_LOG("\nF1AP : Building F1 Reset Acknowledgment \n"); + DU_LOG("\nINFO --> F1AP : Building F1 Reset Acknowledgment \n"); do{ /* Allocate the memory for F1ResetRequest_t */ DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); if(f1apMsg == NULLP) { - DU_LOG("\nF1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG("\nERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } @@ -9946,7 +9947,7 @@ uint8_t BuildAndSendF1ResetAck() DU_ALLOC(f1apMsg->choice.successfulOutcome, sizeof(SuccessfulOutcome_t)); if(f1apMsg->choice.successfulOutcome == NULLP) { - DU_LOG("\nF1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG("\nERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->choice.successfulOutcome->criticality = Criticality_reject; @@ -9961,7 +9962,7 @@ uint8_t BuildAndSendF1ResetAck() DU_ALLOC(f1ResetAck->protocolIEs.list.array, f1ResetAck->protocolIEs.list.size ); if(f1ResetAck->protocolIEs.list.array == NULLP) { - DU_LOG("\nF1AP : Memory allocation for F1ResetAckIEs failed"); + DU_LOG("\nERROR --> F1AP : Memory allocation for F1ResetAckIEs failed"); break; } @@ -9990,13 +9991,13 @@ uint8_t BuildAndSendF1ResetAck() /* Check encode results */ if(encRetVal.encoded == ENCODE_FAIL) { - DU_LOG("\nF1AP : Could not encode F1ResetAck structure (at %s)\n",\ + DU_LOG("\nERROR --> F1AP : Could not encode F1ResetAck structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nF1AP : Created APER encoded buffer for F1ResetAck\n"); + DU_LOG("\nDUBUG --> F1AP : Created APER encoded buffer for F1ResetAck\n"); for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); @@ -10005,7 +10006,7 @@ uint8_t BuildAndSendF1ResetAck() /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nF1AP : Sending F1 Reset Acknowledgement failed"); + DU_LOG("\nERROR --> F1AP : Sending F1 Reset Acknowledgement failed"); break; } @@ -10069,7 +10070,7 @@ uint8_t procF1ResetReq(F1AP_PDU_t *f1apMsg) uint8_t ret = ROK; Reset_t *f1ResetMsg = NULLP; - DU_LOG("\nProcessing F1 reset request"); + DU_LOG("\nINFO --> Processing F1 reset request"); f1ResetMsg = &f1apMsg->choice.initiatingMessage->value.choice.Reset; for(ieIdx=0; ieIdxprotocolIEs.list.count; ieIdx++) @@ -10084,7 +10085,6 @@ uint8_t procF1ResetReq(F1AP_PDU_t *f1apMsg) case ProtocolIE_ID_id_ResetType: { - DU_LOG("\nReceived F1 Reset request"); break; } @@ -10093,7 +10093,7 @@ uint8_t procF1ResetReq(F1AP_PDU_t *f1apMsg) } } ret = BuildAndSendF1ResetAck(); - DU_LOG("\nUE release is not supported for now"); + DU_LOG("\nINFO --> UE release is not supported for now"); freeAperDecodeF1ResetMsg(f1ResetMsg); @@ -10175,18 +10175,18 @@ uint8_t BuildAndSendRrcDeliveryReport(uint32_t gnbCuUeF1apId, \ do{ - DU_LOG("\nF1AP : Building RRC delivery Message Transfer Message\n"); + DU_LOG("\nINFO --> F1AP : Building RRC delivery Message Transfer Message\n"); DU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t)); if(f1apMsg == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->present = F1AP_PDU_PR_initiatingMessage; DU_ALLOC(f1apMsg->choice.initiatingMessage,sizeof(InitiatingMessage_t)); if(f1apMsg->choice.initiatingMessage == NULLP) { - DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for F1AP-PDU failed"); break; } f1apMsg->choice.initiatingMessage->procedureCode = ProcedureCode_id_RRCDeliveryReport; @@ -10202,7 +10202,7 @@ uint8_t BuildAndSendRrcDeliveryReport(uint32_t gnbCuUeF1apId, \ DU_ALLOC(rrcDeliveryReport->protocolIEs.list.array, rrcDeliveryReport->protocolIEs.list.size); if(rrcDeliveryReport->protocolIEs.list.array == NULLP) { - DU_LOG(" F1AP : Memory allocation for RRC Delivery failed"); + DU_LOG(" ERROR --> F1AP : Memory allocation for RRC Delivery failed"); break; } for(idx =0 ;idx F1AP : Could not encode RRC Delivery Msg structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); break; } else { - DU_LOG("\nF1AP : Created APER encoded buffer for RRC Delivery Msg \n"); + DU_LOG("\nDEBUG --> F1AP : Created APER encoded buffer for RRC Delivery Msg \n"); for(idx=0; idx< encBufSize; idx++) { printf("%x",encBuf[idx]); @@ -10273,7 +10273,7 @@ uint8_t BuildAndSendRrcDeliveryReport(uint32_t gnbCuUeF1apId, \ /* Sending msg */ if(SendF1APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { - DU_LOG("\nF1AP : Sending RRC delivery msg request failed"); + DU_LOG("\nERROR --> F1AP : Sending RRC delivery msg request failed"); break; } ret = ROK; @@ -10422,7 +10422,7 @@ void freeAperDecodeF1SetupRsp(F1SetupResponse_t *f1SetRspMsg) } default: { - DU_LOG("\nDU_APP : Invalid IE received in F1SetupRsp:%ld", + DU_LOG("\nERROR --> DU_APP : Invalid IE received in F1SetupRsp:%ld", f1SetRspMsg->protocolIEs.list.array[ieIdx]->id); } } @@ -10458,7 +10458,7 @@ uint8_t procF1SetupRsp(F1AP_PDU_t *f1apMsg) memset(&f1SetRspDb, 0, sizeof(F1SetupRsp)); - DU_LOG("\nF1AP : F1 Setup Response received"); + DU_LOG("\nINFO --> F1AP : F1 Setup Response received"); f1SetRspMsg = &f1apMsg->choice.successfulOutcome->value.choice.F1SetupResponse; for(idx=0; idxprotocolIEs.list.count; idx++) @@ -10492,7 +10492,7 @@ uint8_t procF1SetupRsp(F1AP_PDU_t *f1apMsg) break; } default: - DU_LOG("\nDU_APP : Invalid IE received in F1SetupRsp:%ld", + DU_LOG("\nERROR --> DU_APP : Invalid IE received in F1SetupRsp:%ld", f1SetRspMsg->protocolIEs.list.array[idx]->id); } duProcF1SetupRsp(); @@ -10550,9 +10550,10 @@ void freeAperDecodeGnbDuAck(GNBDUConfigurationUpdateAcknowledge_t *gnbDuAck) * ****************************************************************/ uint8_t procF1GNBDUCfgUpdAck(F1AP_PDU_t *f1apMsg) { - uint8_t ieIdx, transId; + uint8_t ieIdx; GNBDUConfigurationUpdateAcknowledge_t *gnbDuAck = NULLP; - + + DU_LOG("\nINFO --> F1AP : GNB-DU config update acknowledgment"); gnbDuAck = &f1apMsg->choice.successfulOutcome->value.choice.GNBDUConfigurationUpdateAcknowledge; for(ieIdx=0; ieIdx < gnbDuAck->protocolIEs.list.count; ieIdx++) @@ -10560,14 +10561,11 @@ uint8_t procF1GNBDUCfgUpdAck(F1AP_PDU_t *f1apMsg) switch(gnbDuAck->protocolIEs.list.array[ieIdx]->id) { case ProtocolIE_ID_id_TransactionID: - transId = gnbDuAck->protocolIEs.list.array[ieIdx]->\ - value.choice.TransactionID; - DU_LOG("\nF1AP : GNB-DU config update acknowledgment received for transId %d", transId); break; case ProtocolIE_ID_id_Cells_to_be_Activated_List: break; default : - DU_LOG("\nF1AP: Invalid IE Received: %ld, at procF1GNBDUCfgUpdAck()", \ + DU_LOG("\nERROR --> F1AP: Invalid IE Received: %ld, at procF1GNBDUCfgUpdAck()", \ gnbDuAck->protocolIEs.list.array[ieIdx]->id); break; } @@ -10657,7 +10655,7 @@ uint8_t procF1DlRrcMsgTrans(F1AP_PDU_t *f1apMsg) F1DlRrcMsg dlMsg; memset(&dlMsg, 0, sizeof(F1DlRrcMsg)); - DU_LOG("\nDU_APP : DL RRC message transfer Recevied"); + DU_LOG("\nINFO --> DU_APP : DL RRC message transfer Recevied"); f1DlRrcMsg = &f1apMsg->choice.initiatingMessage->value.choice.DLRRCMessageTransfer; ret = ROK; @@ -10698,13 +10696,13 @@ uint8_t procF1DlRrcMsgTrans(F1AP_PDU_t *f1apMsg) } else { - DU_LOG("\nDU_APP : Memory alloc Failed at RRC Container at procF1DlRrcMsgTrans()"); + DU_LOG("\nERROR --> DU APP : Memory alloc Failed at RRC Container at procF1DlRrcMsgTrans()"); return RFAILED; } } else { - DU_LOG("\nDU_APP : RRC Container Size is invalid:%ld",\ + DU_LOG("\nERROR --> DU_APP : RRC Container Size is invalid:%ld",\ f1DlRrcMsg->protocolIEs.list.array[idx]->value.choice.RRCContainer.size); return RFAILED; } @@ -10716,7 +10714,7 @@ uint8_t procF1DlRrcMsgTrans(F1AP_PDU_t *f1apMsg) break; } default: - DU_LOG("\nDU_APP : Invalid IE received in DL RRC Msg Transfer:%ld", + DU_LOG("\nERROR --> DU_APP : Invalid IE received in DL RRC Msg Transfer:%ld", f1DlRrcMsg->protocolIEs.list.array[idx]->id); } } @@ -10753,7 +10751,7 @@ void F1APMsgHdlr(Buffer *mBuf) F1AP_PDU_t *f1apMsg =NULLP; asn_dec_rval_t rval; /* Decoder return value */ F1AP_PDU_t f1apasnmsg ; - DU_LOG("\nF1AP : Received F1AP message buffer"); + DU_LOG("\nINFO --> F1AP : Received F1AP message buffer"); ODU_PRINT_MSG(mBuf, 0,0); /* Copy mBuf into char array to decode it */ @@ -10762,16 +10760,16 @@ void F1APMsgHdlr(Buffer *mBuf) if(recvBuf == NULLP) { - DU_LOG("\nF1AP : Memory allocation failed"); + DU_LOG("\nERROR --> F1AP : Memory allocation failed"); return; } if(ODU_COPY_MSG_TO_FIX_BUF(mBuf, 0, recvBufLen, (Data *)recvBuf, ©Cnt) != ROK) { - DU_LOG("\nF1AP : Failed while copying %d", copyCnt); + DU_LOG("\nERROR --> F1AP : Failed while copying %d", copyCnt); return; } - printf("\nF1AP : Received flat buffer to be decoded : "); + printf("\nDEBUG --> F1AP : Received flat buffer to be decoded : "); for(i=0; i< recvBufLen; i++) { printf("%x",recvBuf[i]); @@ -10786,7 +10784,7 @@ void F1APMsgHdlr(Buffer *mBuf) if(rval.code == RC_FAIL || rval.code == RC_WMORE) { - DU_LOG("\nF1AP : ASN decode failed"); + DU_LOG("\nERROR --> F1AP : ASN decode failed"); return; } printf("\n"); @@ -10800,7 +10798,7 @@ void F1APMsgHdlr(Buffer *mBuf) { case SuccessfulOutcome__value_PR_ResetAcknowledge: { - DU_LOG("\nF1AP : F1ResetAcknowledge is received successfully "); + DU_LOG("\nINFO --> F1AP : F1ResetAcknowledge is received successfully "); break; } case SuccessfulOutcome__value_PR_F1SetupResponse: @@ -10819,7 +10817,8 @@ void F1APMsgHdlr(Buffer *mBuf) default: { - DU_LOG("\nF1AP : Invalid type of successful outcome [%d]", f1apMsg->choice.successfulOutcome->value.present); + DU_LOG("\nERROR --> F1AP : Invalid type of SuccessfulOutcome__value_PR_ResetAcknowledge [%d]",\ + f1apMsg->choice.successfulOutcome->value.present); return; } }/* End of switch(successfulOutcome) */ @@ -10832,7 +10831,6 @@ void F1APMsgHdlr(Buffer *mBuf) { case InitiatingMessage__value_PR_Reset: { - DU_LOG("\nF1AP : F1 reset request received"); procF1ResetReq(f1apMsg); break; } @@ -10848,7 +10846,7 @@ void F1APMsgHdlr(Buffer *mBuf) } default: { - DU_LOG("\nF1AP : Invalid type of initiating message[%d]", + DU_LOG("\nERROR --> F1AP : Invalid type of F1AP_PDU_PR_initiatingMessage [%d]", f1apMsg->choice.initiatingMessage->value.present); return; } @@ -10859,7 +10857,7 @@ void F1APMsgHdlr(Buffer *mBuf) default: { - DU_LOG("\nF1AP : Invalid type of f1apMsg->present [%d]",f1apMsg->present); + DU_LOG("\nERROR --> F1AP : Invalid type of f1apMsg->present [%d]",f1apMsg->present); return; } free(f1apMsg); diff --git a/src/du_app/du_mgr_ex_ms.c b/src/du_app/du_mgr_ex_ms.c index 5e26c0605..77bd21bac 100644 --- a/src/du_app/du_mgr_ex_ms.c +++ b/src/du_app/du_mgr_ex_ms.c @@ -142,7 +142,7 @@ uint8_t duActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTDUAPP"); + DU_LOG("\nERROR --> DU_APP : Invalid event received at duActvTsk from ENTDUAPP"); ODU_PUT_MSG_BUF(mBuf); ret = RFAILED; } @@ -195,7 +195,7 @@ uint8_t duActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nDU_APP : Invalid event %d received at duActvTsk from ENTRLC", \ + DU_LOG("\nERROR --> DU_APP : Invalid event %d received at duActvTsk from ENTRLC", \ pst->event); ODU_PUT_MSG_BUF(mBuf); ret = RFAILED; @@ -259,7 +259,7 @@ uint8_t duActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTMAC"); + DU_LOG("\nERROR --> DU_APP : Invalid event received at duActvTsk from ENTMAC"); ODU_PUT_MSG_BUF(mBuf); ret = RFAILED; } @@ -288,7 +288,7 @@ uint8_t duActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTSCTP"); + DU_LOG("\nERROR --> DU_APP : Invalid event received at duActvTsk from ENTSCTP"); ret = RFAILED; } @@ -317,7 +317,7 @@ uint8_t duActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nDU_APP : Invalid event[%d] received at duActvTsk from ENTEGTP", pst->event); + DU_LOG("\nERROR --> DU_APP : Invalid event[%d] received at duActvTsk from ENTEGTP", pst->event); ret = RFAILED; } } @@ -326,7 +326,7 @@ uint8_t duActvTsk(Pst *pst, Buffer *mBuf) } default: { - DU_LOG("\nDU_APP : DU APP can not process message from Entity %d", pst->srcEnt); + DU_LOG("\nERROR --> DU_APP : DU APP can not process message from Entity %d", pst->srcEnt); ODU_PUT_MSG_BUF(mBuf); ret = RFAILED; } diff --git a/src/du_app/du_mgr_main.c b/src/du_app/du_mgr_main.c index 4feb2c661..13ef27237 100644 --- a/src/du_app/du_mgr_main.c +++ b/src/du_app/du_mgr_main.c @@ -73,7 +73,7 @@ uint8_t duAppInit(SSTskId sysTskId) return RFAILED; } - DU_LOG("\nDU_APP : DU APP created and registered \ + DU_LOG("\nINFO --> DU_APP : DU APP created and registered \ to %d sys task", sysTskId); return ROK; } @@ -109,7 +109,7 @@ uint8_t egtpInit(SSTskId sysTskId) return RFAILED; } - DU_LOG("\nDU_APP : EGTP created and registered \ + DU_LOG("\nINFO --> DU_APP : EGTP created and registered \ to %d sys task", sysTskId); return ROK; } @@ -145,7 +145,7 @@ uint8_t sctpInit(SSTskId sysTskId) return RFAILED; } - DU_LOG("\nDU_APP : SCTP TAPA task created and registered to %d sys task", + DU_LOG("\nINFO --> DU_APP : SCTP TAPA task created and registered to %d sys task", sysTskId); return ROK; } @@ -191,7 +191,7 @@ uint8_t rlcDlInit(SSTskId sysTskId) return RFAILED; } - DU_LOG("\nDU_APP : RLC DL and MAC TAPA task created and registered to \ + DU_LOG("\nINFO --> DU_APP : RLC DL and MAC TAPA task created and registered to \ %d sys task", sysTskId); return ROK; } @@ -225,7 +225,7 @@ uint8_t rlcUlInit(SSTskId sysTskId) { return RFAILED; } - DU_LOG("\nDU_APP : RLC UL TAPA task created and registered to \ + DU_LOG("\nINFO --> DU_APP : RLC UL TAPA task created and registered to \ %d sys task", sysTskId); return ROK; } @@ -260,7 +260,7 @@ uint8_t lwrMacInit(SSTskId sysTskId) return RFAILED; } - DU_LOG("\nDU_APP : LWR MAC TAPA task created and registered to %d sys task", + DU_LOG("\nINFO --> DU_APP : LWR MAC TAPA task created and registered to %d sys task", sysTskId); return ROK; } @@ -293,7 +293,7 @@ uint8_t commonInit() /* system task for DU APP */ if(ODU_CREATE_TASK(PRIOR0, &du_app_stsk) != ROK) { - DU_LOG("\nDU_APP : System Task creation for DU APP failed"); + DU_LOG("\nERROR --> DU_APP : System Task creation for DU APP failed"); return RFAILED; } ODU_SET_THREAD_AFFINITY(&du_app_stsk, SS_AFFINITY_MODE_EXCL, 15, 0); @@ -301,7 +301,7 @@ uint8_t commonInit() /* system task for EGTP */ if(ODU_CREATE_TASK(PRIOR0, &egtp_stsk) != ROK) { - DU_LOG("\nDU_APP : System Task creation for EGTP failed"); + DU_LOG("\nERROR --> DU_APP : System Task creation for EGTP failed"); return RFAILED; } ODU_SET_THREAD_AFFINITY(&egtp_stsk, SS_AFFINITY_MODE_EXCL, 16, 0); @@ -309,7 +309,7 @@ uint8_t commonInit() /* system task for RLC_DL and MAC */ if(ODU_CREATE_TASK(PRIOR0, &rlc_mac_cl_stsk) != ROK) { - DU_LOG("\nDU_APP : System Task creation for RLC DL/MAC failed"); + DU_LOG("\nERROR --> DU_APP : System Task creation for RLC DL/MAC failed"); return RFAILED; } pthread_attr_init(&attr); @@ -319,7 +319,7 @@ uint8_t commonInit() /* system task for RLC UL */ if(ODU_CREATE_TASK(PRIOR1, &rlc_ul_stsk) != ROK) { - DU_LOG("\nDU_APP : System Task creation for RLC UL failed"); + DU_LOG("\nERROR --> DU_APP : System Task creation for RLC UL failed"); return RFAILED; } ODU_SET_THREAD_AFFINITY(&rlc_ul_stsk, SS_AFFINITY_MODE_EXCL, 18, 0); @@ -327,7 +327,7 @@ uint8_t commonInit() /* system task for SCTP receiver thread */ if(ODU_CREATE_TASK(PRIOR0, &sctp_stsk) != ROK) { - DU_LOG("\nDU_APP : System Task creation for SCTP failed"); + DU_LOG("\nERROR --> DU_APP : System Task creation for SCTP failed"); return RFAILED; } ODU_SET_THREAD_AFFINITY(&sctp_stsk, SS_AFFINITY_MODE_EXCL, 19, 0); @@ -335,7 +335,7 @@ uint8_t commonInit() /* system task for lower-mac receiver thread */ if(ODU_CREATE_TASK(PRIOR0, &lwr_mac_stsk) != ROK) { - DU_LOG("\nDU_APP : System Task creation for Lower MAC failed"); + DU_LOG("\nERROR --> DU_APP : System Task creation for Lower MAC failed"); return RFAILED; } ODU_SET_THREAD_AFFINITY(&lwr_mac_stsk, SS_AFFINITY_MODE_EXCL, 20, 0); @@ -343,37 +343,37 @@ uint8_t commonInit() /* Create TAPA tasks */ if(duAppInit(du_app_stsk) != ROK) { - DU_LOG("\nDU_APP : DU APP TAPA Task initialization failed"); + DU_LOG("\nERROR --> DU_APP : DU APP TAPA Task initialization failed"); return RFAILED; } if(egtpInit(egtp_stsk) != ROK) { - DU_LOG("\nDU_APP : EGTP TAPA Task initialization failed"); + DU_LOG("\nERROR --> DU_APP : EGTP TAPA Task initialization failed"); return RFAILED; } if(sctpInit(sctp_stsk) != ROK) { - DU_LOG("\nDU_APP : SCTP TAPA Task initialization failed"); + DU_LOG("\nERROR --> DU_APP : SCTP TAPA Task initialization failed"); return RFAILED; } if(rlcDlInit(rlc_mac_cl_stsk) != ROK) { - DU_LOG("\nDU_APP : RLC DL Tapa Task initialization failed"); + DU_LOG("\nERROR --> DU_APP : RLC DL Tapa Task initialization failed"); return RFAILED; } if(rlcUlInit(rlc_ul_stsk) != ROK) { - DU_LOG("\nDU_APP : RLC UL Tapa Task initialization failed"); + DU_LOG("\nERROR --> DU_APP : RLC UL Tapa Task initialization failed"); return RFAILED; } if(lwrMacInit(lwr_mac_stsk) != ROK) { - DU_LOG("\nDU_APP : Lower MAC Tapa Task initialization failed"); + DU_LOG("\nERROR --> DU_APP : Lower MAC Tapa Task initialization failed"); return RFAILED; } diff --git a/src/du_app/du_msg_hdl.c b/src/du_app/du_msg_hdl.c index 90fe20bfa..16a4f3937 100644 --- a/src/du_app/du_msg_hdl.c +++ b/src/du_app/du_msg_hdl.c @@ -160,7 +160,7 @@ uint8_t duBuildRlcCfg(Inst inst) pst.srcProcId = DU_PROC; pst.region = duCb.init.region; - DU_LOG("\nDU_APP : RLC Gen Cfg Req sent for inst %d", inst); + DU_LOG("\nDEBUG --> DU_APP : RLC Gen Cfg Req sent for inst %d", inst); /* Send the request to RLC */ packRlcConfigReq(&pst, &rlcMngmt); @@ -226,7 +226,7 @@ uint8_t duBuildRlcLsapCfg(Ent ent, Inst inst, uint8_t lsapInst) lSap->sapId = lsapInst; /* SapId will be stored as suId in MAC */ lSap->selector = (inst == RLC_UL_INST) ? ODU_SELECTOR_LWLC : ODU_SELECTOR_TC; rlcMngmt.hdr.elmId.elmnt = STRGUSAP; - DU_LOG("\nDU_APP : RLC MAC Lower Sap Cfg Req sent for inst %d", inst); + DU_LOG("\nDEBUG --> DU_APP : RLC MAC Lower Sap Cfg Req sent for inst %d", inst); } else @@ -238,7 +238,7 @@ uint8_t duBuildRlcLsapCfg(Ent ent, Inst inst, uint8_t lsapInst) lSap->sapId = 0; lSap->selector = ODU_SELECTOR_LC; rlcMngmt.hdr.elmId.elmnt = STUDXSAP; - DU_LOG("\nDU_APP : RLC DL/UL Lower Sap Cfg Req sent for inst %d", inst); + DU_LOG("\nDEBUG --> DU_APP : RLC DL/UL Lower Sap Cfg Req sent for inst %d", inst); } packRlcConfigReq(&pst, &rlcMngmt); @@ -305,7 +305,7 @@ uint8_t duBuildRlcUsapCfg(uint8_t elemId, Ent ent, Inst inst) pst.srcProcId = DU_PROC; pst.region = duCb.init.region; - DU_LOG("\nDU_APP : RLC Kwu Upper Sap Cfg Req sent for inst %d", inst); + DU_LOG("\nDEBUG --> DU_APP : RLC Kwu Upper Sap Cfg Req sent for inst %d", inst); packRlcConfigReq(&pst, &rlcMngmt); return ROK; @@ -338,7 +338,7 @@ uint8_t duProcCfgComplete() DU_ALLOC(cell, sizeof(DuCellCb)) if(cell == NULLP) { - DU_LOG("\nDU_APP : Memory Allocation failed in duProcCfgComplete"); + DU_LOG("\nERROR --> DU_APP : Memory Allocation failed in duProcCfgComplete"); ret = RFAILED; } else @@ -493,7 +493,7 @@ uint8_t duHdlRlcCntrlCfgComplete(Pst *pst, RlcMngmt *cntrl) { if (pst->srcInst == RLC_DL_INST) { - DU_LOG("\nDU_APP : BIND OF RLC DL TO MAC (RGU) SAP SUCCESSFUL"); + DU_LOG("\nDEBUG --> DU_APP : BIND OF RLC DL TO MAC (RGU) SAP SUCCESSFUL"); macCfgInst++; if(macCfgInst < DEFAULT_CELLS) { @@ -507,7 +507,7 @@ uint8_t duHdlRlcCntrlCfgComplete(Pst *pst, RlcMngmt *cntrl) } else { - DU_LOG("\nDU_APP : BIND OF RLC UL TO MAC (RGU) SAP SUCCESSFUL"); + DU_LOG("\nDEBUG --> DU_APP : BIND OF RLC UL TO MAC (RGU) SAP SUCCESSFUL"); macCfgInst++; if(macCfgInst < DEFAULT_CELLS) { @@ -545,7 +545,7 @@ uint8_t duProcRlcUlCfgComplete(Pst *pst, RlcMngmt *cfm) { uint8_t ret; - DU_LOG("\nDU_APP : RLC UL Cfg Status %d", cfm->cfm.status); + DU_LOG("\nDEBUG --> DU_APP : RLC UL Cfg Status %d", cfm->cfm.status); if (cfm->cfm.status == LCM_PRIM_OK) { switch(cfm->hdr.elmId.elmnt) @@ -574,7 +574,7 @@ uint8_t duProcRlcUlCfgComplete(Pst *pst, RlcMngmt *cfm) default: break; } - DU_LOG("\nDU_APP : RLC UL Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt); + DU_LOG("\nDEBUG --> DU_APP : RLC UL Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt); if(rlcUlCfg == DU_RLC_UL_CONFIGURED) { rlcUlCfg = 0; @@ -586,7 +586,7 @@ uint8_t duProcRlcUlCfgComplete(Pst *pst, RlcMngmt *cfm) } else { - DU_LOG("\nDU_APP : Config confirm NOK from RLC UL"); + DU_LOG("\nERROR --> DU_APP : Config confirm NOK from RLC UL"); ret = RFAILED; } return ret; @@ -610,7 +610,7 @@ uint8_t duProcRlcUlCfgComplete(Pst *pst, RlcMngmt *cfm) ***************************************************************************/ uint8_t duProcRlcDlCfgComplete(Pst *pst, RlcMngmt *cfm) { - DU_LOG("\nDU_APP : RLC DL Cfg Status %d", cfm->cfm.status); + DU_LOG("\nDEBUG --> DU_APP : RLC DL Cfg Status %d", cfm->cfm.status); if (cfm->cfm.status == LCM_PRIM_OK) { switch(cfm->hdr.elmId.elmnt) @@ -640,7 +640,7 @@ uint8_t duProcRlcDlCfgComplete(Pst *pst, RlcMngmt *cfm) break; } - DU_LOG("\nDU_APP : RLC DL Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt); + DU_LOG("\nDEBUG --> DU_APP : RLC DL Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt); if(rlcDlCfg == DU_RLC_DL_CONFIGURED) { rlcDlCfg = 0; @@ -651,7 +651,7 @@ uint8_t duProcRlcDlCfgComplete(Pst *pst, RlcMngmt *cfm) } else { - DU_LOG("\nDU_APP : Config confirm NOK from RLC DL"); + DU_LOG("\nERROR --> DU_APP : Config confirm NOK from RLC DL"); } return ROK; } @@ -749,7 +749,7 @@ uint8_t duBuildMacGenCfg() pst.srcProcId = DU_PROC; pst.region = duCb.init.region; - DU_LOG("\nDU_APP : MAC Gen Cfg Req sent"); + DU_LOG("\nDEBUG --> DU_APP : MAC Gen Cfg Req sent"); /* Send the request to MAC */ cmPkLrgCfgReq(&pst, &rgMngmt); @@ -811,7 +811,7 @@ uint8_t duBuildMacUsapCfg(SpId sapId) pst.srcProcId = DU_PROC; pst.region = duCb.init.region; - DU_LOG("\nDU_APP : MAC Rgu USap Cfg Req sent"); + DU_LOG("\nDEBUG --> DU_APP : MAC Rgu USap Cfg Req sent"); /* Send the request to MAC */ cmPkLrgCfgReq(&pst, &rgMngmt); @@ -857,11 +857,11 @@ uint8_t duHdlMacCfgComplete(Pst *pst, RgMngmt *cfm) default: break; } - DU_LOG("\nDU_APP : MAC Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt); + DU_LOG("\nDEBUG --> DU_APP : MAC Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt); if(macCfg == MAC_CONFIGURED && numRlcMacSaps == MAX_MAC_SAP) { macCfg = 0; - DU_LOG("\nDU_APP : Completed sending Configs"); + DU_LOG("\nDEBUG --> DU_APP : Completed sending Configs"); macCfgInst = 0; duBindUnbindRlcToMacSap(RLC_DL_INST, ABND); } @@ -869,7 +869,7 @@ uint8_t duHdlMacCfgComplete(Pst *pst, RgMngmt *cfm) } else { - DU_LOG("\nDU_APP : Config confirm NOK from MAC"); + DU_LOG("\nERROR --> DU_APP : Config confirm NOK from MAC"); ret = RFAILED; } return ret; @@ -903,11 +903,11 @@ uint8_t duBindUnbindRlcToMacSap(uint8_t inst, uint8_t action) if (action == ABND) { - DU_LOG("\nDU_APP : Cntrl Req to RLC inst %d to bind MAC sap", inst); + DU_LOG("\nDEBUG --> DU_APP : Cntrl Req to RLC inst %d to bind MAC sap", inst); } else { - DU_LOG("\nDU_APP : Cntrl Req to RLC inst %d to unbind MAC sap", inst); + DU_LOG("\nDEBUG --> DU_APP : Cntrl Req to RLC inst %d to unbind MAC sap", inst); } cntrl = &(rlcMngmt.t.cntrl); @@ -975,7 +975,7 @@ uint8_t duSctpNtfyHdl(Buffer *mBuf, CmInetSctpNotification *ntfy) } else { - DU_LOG("\nDU_APP : Invalid assocId %d received", ntfy->u.assocChange.assocId); + DU_LOG("\nERROR --> DU_APP : Invalid assocId %d received", ntfy->u.assocChange.assocId); return RFAILED; } return ROK; @@ -1036,7 +1036,7 @@ uint8_t duBuildEgtpCfgReq() Pst pst; EgtpConfig egtpCfg; - DU_LOG("\nDU_APP : Sending EGTP config request"); + DU_LOG("\nDEBUG --> DU_APP : Sending EGTP config request"); memset(&egtpCfg, 0, sizeof(EgtpConfig)); memcpy(&egtpCfg, &duCfgParam.egtpParams, sizeof(EgtpConfig)); @@ -1069,14 +1069,14 @@ uint8_t duHdlEgtpCfgComplete(CmStatus cfm) if(cfm.status == LCM_PRIM_OK) { - DU_LOG("\nDU_APP : EGTP configuraton complete"); + DU_LOG("\nDEBUG --> DU_APP : EGTP configuraton complete"); #ifdef EGTP_TEST duSendEgtpSrvOpenReq(); #endif } else { - DU_LOG("\nDU_APP : EGTP configuraton failed"); + DU_LOG("\nERROR --> DU_APP : EGTP configuraton failed"); ret = RFAILED; } @@ -1104,7 +1104,7 @@ uint8_t duSendEgtpSrvOpenReq() { Pst pst; - DU_LOG("\nDU_APP : Sending EGTP server open request"); + DU_LOG("\nDEBUG --> DU_APP : Sending EGTP server open request"); duFillEgtpPst(&pst, EVTSRVOPENREQ); packEgtpSrvOpenReq(&pst); @@ -1135,14 +1135,14 @@ uint8_t duHdlEgtpSrvOpenComplete(CmStatus cfm) if(cfm.status == LCM_PRIM_OK) { - DU_LOG("\nDU_APP : EGTP server opened successfully"); + DU_LOG("\nDEBUG --> DU_APP : EGTP server opened successfully"); #ifdef EGTP_TEST duSendEgtpTnlMgmtReq(EGTP_TNL_MGMT_ADD, EGTP_LCL_TEID, EGTP_REM_TEID); #endif } else { - DU_LOG("\nDU_APP : EGTP server opening failed"); + DU_LOG("\nERROR --> DU_APP : EGTP server opening failed"); ret = RFAILED; } @@ -1177,7 +1177,7 @@ uint8_t duSendEgtpTnlMgmtReq(uint8_t action, uint32_t lclTeid, uint32_t remTeid) tnlEvt.lclTeid = lclTeid; tnlEvt.remTeid = remTeid; - DU_LOG("\nDU_APP : Sending EGTP tunnel management request"); + DU_LOG("\nDEBUG --> DU_APP : Sending EGTP tunnel management request"); duFillEgtpPst(&pst, EVTTNLMGMTREQ); egtpTnlMgmtReq(&pst, tnlEvt); return ROK; @@ -1205,14 +1205,14 @@ uint8_t duHdlEgtpTnlMgmtCfm(EgtpTnlEvt tnlEvtCfm) if(tnlEvtCfm.cfmStatus.status == LCM_PRIM_OK) { - DU_LOG("\nDU_APP : Tunnel management confirm OK"); + DU_LOG("\nDEBUG --> DU_APP : Tunnel management confirm OK"); #ifdef EGTP_TEST duSendEgtpTestData(); #endif } else { - DU_LOG("\nDU_APP : Tunnel management failed"); + DU_LOG("\nERROR --> DU_APP : Tunnel management failed"); ret = RFAILED; } @@ -1281,14 +1281,14 @@ uint8_t duSendEgtpTestData() { if(ODU_ADD_POST_MSG_MULT((Data *)data, datSize, mBuf) != ROK) { - DU_LOG("\nDU_APP : ODU_ADD_POST_MSG_MULT failed"); + DU_LOG("\nERROR --> DU_APP : ODU_ADD_POST_MSG_MULT failed"); ODU_PUT_MSG_BUF(mBuf); return RFAILED; } } else { - DU_LOG("\nDU_APP : Failed to allocate memory"); + DU_LOG("\nERROR --> DU_APP : Failed to allocate memory"); return RFAILED; } @@ -1437,7 +1437,7 @@ uint8_t duSendSchCfg() pst.region = duCb.init.region; pst.event = (Event) EVTMACSCHGENCFGREQ; - DU_LOG("\nDU_APP : MAC Sch Cfg sent"); + DU_LOG("\nDEBUG --> DU_APP : MAC Sch Cfg sent"); /* Send the request to MAC */ cmPkLrgSchCfgReq(&pst, &rgMngmt); @@ -1467,21 +1467,21 @@ uint8_t duLayerConfigComplete() { uint8_t ret = ROK; - DU_LOG("\nDU_APP : Configuring all Layer is complete"); + DU_LOG("\nINFO --> DU_APP : Configuring all Layer is complete"); if((ret = duSctpCfgReq(duCfgParam.sctpParams)) != ROK) { - DU_LOG("\nDU_APP : Failed configuring Sctp Params"); + DU_LOG("\nERROR --> DU_APP : Failed configuring Sctp Params"); ret = RFAILED; } if((ret = duSctpAssocReq(F1_INTERFACE)) != ROK) { - DU_LOG("\nDU_APP : Failed to send AssocReq F1"); + DU_LOG("\nERROR --> DU_APP : Failed to send AssocReq F1"); ret = RFAILED; } if((ret = duSctpAssocReq(E2_INTERFACE)) != ROK) { - DU_LOG("\nDU_APP : Failed to send AssocReq E2"); + DU_LOG("\nERROR --> DU_APP : Failed to send AssocReq E2"); ret = RFAILED; } @@ -1512,7 +1512,7 @@ uint8_t duHdlSchCfgComplete(Pst *pst, RgMngmt *cfm) { case STSCHINST: { - DU_LOG("\nDU_APP : Received SCH CFG CFM at DU APP"); + DU_LOG("\nDEBUG --> DU_APP : Received SCH CFG CFM at DU APP"); break; } default: @@ -1603,7 +1603,7 @@ uint8_t duHandleMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm) /* TODO : Action to be taken if cell configuration fails. * Should CU be informed? */ - DU_LOG("\nMac cell cfg failed"); + DU_LOG("\nERROR --> DU_APP : Mac cell cfg failed"); ret = RFAILED; } return ret; @@ -1630,13 +1630,13 @@ uint8_t duBuildAndSendMacCellStart() Pst pst; OduCellId *cellId = NULL; - DU_LOG("\nDU APP : Building and Sending cell start request to MAC"); + DU_LOG("\nINFO --> DU APP : Building and Sending cell start request to MAC"); /* Send Cell Start Request to MAC */ DU_ALLOC_SHRABL_BUF(cellId, sizeof(OduCellId)); if(!cellId) { - DU_LOG("\nDU APP : Memory alloc failed while building cell start request"); + DU_LOG("\nERROR --> DU APP : Memory alloc failed while building cell start request"); return RFAILED; } @@ -1676,13 +1676,13 @@ uint8_t duBuildAndSendMacCellStop() Pst pst; OduCellId *cellId = NULL; - DU_LOG("\nDU APP : Building and Sending cell stop request to MAC"); + DU_LOG("\nINFO --> DU APP : Building and Sending cell stop request to MAC"); /* Send Cell Stop Request to MAC */ DU_ALLOC_SHRABL_BUF(cellId, sizeof(OduCellId)); if(!cellId) { - DU_LOG("\nDU APP : Memory alloc failed while building cell stop request"); + DU_LOG("\nERROR --> DU APP : Memory alloc failed while building cell stop request"); return RFAILED; } cellId->cellId = duCb.actvCellLst[0]->cellId; @@ -1715,7 +1715,7 @@ uint8_t duHandleStopInd(Pst *pst, OduCellId *cellId) if(cellId->cellId <=0 || cellId->cellId > MAX_NUM_CELL) { - DU_LOG("\nDU APP : Invalid Cell Id %d in duHandleStopInd()", cellId->cellId); + DU_LOG("\nERROR --> DU APP : Invalid Cell Id %d in duHandleStopInd()", cellId->cellId); } if(duGetCellCb(cellId->cellId, &cellCb) != ROK) @@ -1723,11 +1723,11 @@ uint8_t duHandleStopInd(Pst *pst, OduCellId *cellId) if((cellCb->cellStatus == ACTIVATED)) { - DU_LOG("\nDU APP : 5G-NR Cell %d is DOWN", cellId->cellId); + DU_LOG("\nINFO --> DU APP : 5G-NR Cell %d is DOWN", cellId->cellId); cellCb->cellStatus = DELETION_IN_PROGRESS; #ifdef O1_ENABLE - DU_LOG("\nDU APP : Raise cell down alarm for cell id=%d", cellId->cellId); + DU_LOG("\nINFO --> DU APP : Raise cell down alarm for cell id=%d", cellId->cellId); raiseCellAlrm(CELL_DOWN_ALARM_ID, cellId->cellId); #endif } @@ -1761,7 +1761,7 @@ uint8_t duHandleStopInd(Pst *pst, OduCellId *cellId) uint8_t duHandleUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo) { - DU_LOG("\nDU APP : UL CCCH Indication received"); + DU_LOG("\nINFO --> DU APP : UL CCCH Indication received"); return (duProcUlCcchInd(ulCcchIndInfo)); } diff --git a/src/du_app/du_sctp.c b/src/du_app/du_sctp.c index 86b96ecb7..a1ba4066a 100644 --- a/src/du_app/du_sctp.c +++ b/src/du_app/du_sctp.c @@ -52,7 +52,7 @@ ***************************************************************************/ uint8_t sctpActvInit(Ent entity, Inst inst, Region region, Reason reason) { - DU_LOG("\n\nSCTP : Initializing"); + DU_LOG("\n\nDEBUG --> SCTP : Initializing"); ODU_SET_PROC_ID(DU_PROC); connUp = FALSE; f1Params.assocId = -1; @@ -122,7 +122,7 @@ uint8_t duCheckReqStatus(CmStatus *cfm) uint8_t ret = ROK; if(cfm->status != LCM_PRIM_OK) { - DU_LOG("\nDU_APP : Failed to process the request successfully"); + DU_LOG("\nERROR --> DU_APP : Failed to process the request successfully"); ret = RFAILED; } return (ret); @@ -269,21 +269,21 @@ uint8_t establishReq(DuSctpDestCb *paramPtr) if((ret = cmInetSocket(socket_type, ¶mPtr->sockFd, IPPROTO_SCTP)) != ROK) { - DU_LOG("\nSCTP : Failed while opening a socket in ODU"); + DU_LOG("\nERROR --> SCTP : Failed while opening a socket in ODU"); } else if((ret = cmInetSctpBindx(¶mPtr->sockFd, &localAddrLst, paramPtr->srcPort)) != ROK) { - DU_LOG("\nSCTP: Failed during Binding in ODU"); + DU_LOG("\nERROR --> SCTP: Failed during Binding in ODU"); } else if((ret = sctpSetSockOpts(¶mPtr->sockFd)) != ROK) { - DU_LOG("\nSCTP : Failed to set Socket Opt in ODU"); + DU_LOG("\nERROR --> SCTP : Failed to set Socket Opt in ODU"); } else { if(ret != ROK) { - DU_LOG("\nSCTP : Failed while establishing Req at DU"); + DU_LOG("\nERROR --> SCTP : Failed while establishing Req at DU"); ret = RFAILED; } else @@ -339,7 +339,7 @@ uint8_t duSctpAssocReq(uint8_t itfType) DU_ALLOC(paramPtr, sizeof(DuSctpDestCb)); if(paramPtr == NULLP) { - printf("\nDU_APP : Failed to allocate memory"); + DU_LOG("\nERROR --> DU_APP : Failed to allocate memory"); return RFAILED; } switch(itfType) @@ -358,13 +358,13 @@ uint8_t duSctpAssocReq(uint8_t itfType) } default: { - DU_LOG("\nSCTP : Invalid Interface Type"); + DU_LOG("\nERROR --> SCTP : Invalid Interface Type %d", itfType); break; } } if(ret != ROK) { - DU_LOG("\nSCTP : ASSOC Req Failed."); + DU_LOG("\nERROR --> SCTP : ASSOC Req Failed."); cfm.status = LCM_PRIM_NOK; cfm.reason = LCM_REASON_NOT_APPL; } @@ -398,7 +398,7 @@ uint8_t duFillSctpPst(Pst *pst, Event event) Buffer *mBuf; if(ODU_GET_MSG_BUF(DFLT_REGION, DU_POOL, &mBuf) != ROK) { - printf("\nDU_APP : Failed to allocate memory"); + DU_LOG("\nERROR --> DU_APP : Failed to allocate memory"); return RFAILED; } memset(pst, 0, sizeof(Pst)); @@ -475,7 +475,7 @@ uint8_t sctpSetSockOpts(CmInetFd *sock_Fd) void sendToDuApp(Buffer *mBuf, Event event) { Pst pst; - DU_LOG("\nSCTP : Forwarding received message to duApp"); + DU_LOG("\nDEBUG --> SCTP : Forwarding received message to duApp"); ODU_PRINT_MSG(mBuf, 0, 0); @@ -493,7 +493,7 @@ void sendToDuApp(Buffer *mBuf, Event event) if (ODU_POST_TASK(&pst, mBuf) != ROK) { - DU_LOG("\nSCTP : ODU_POST_TASK failed in duReadCfg"); + DU_LOG("\nERROR --> SCTP : ODU_POST_TASK failed in duReadCfg"); } } @@ -520,62 +520,62 @@ uint8_t sctpNtfyHdlr(CmInetSctpNotification *ntfy, uint8_t *itfState) switch(ntfy->header.nType) { case CM_INET_SCTP_ASSOC_CHANGE : - DU_LOG("\nSCTP : Assoc change notification received"); + DU_LOG("\nDEBUG --> SCTP : Assoc change notification received"); switch(ntfy->u.assocChange.state) { case CM_INET_SCTP_COMM_UP: - DU_LOG("Event : COMMUNICATION UP"); + DU_LOG("INFO --> Event : COMMUNICATION UP"); *itfState = DU_SCTP_UP; break; case CM_INET_SCTP_COMM_LOST: - DU_LOG("Event : COMMUNICATION LOST"); + DU_LOG("INFO --> Event : COMMUNICATION LOST"); *itfState = DU_SCTP_DOWN; break; case CM_INET_SCTP_RESTART: - DU_LOG("Event : SCTP RESTART"); + DU_LOG("INFO --> Event : SCTP RESTART"); *itfState = DU_SCTP_DOWN; break; case CM_INET_SCTP_SHUTDOWN_COMP: /* association gracefully shutdown */ - DU_LOG("Event : SHUTDOWN COMPLETE"); + DU_LOG("INFO --> Event : SHUTDOWN COMPLETE"); *itfState = DU_SCTP_DOWN; break; case CM_INET_SCTP_CANT_STR_ASSOC: - DU_LOG("Event : CANT START ASSOC"); + DU_LOG("INFO --> Event : CANT START ASSOC"); *itfState = DU_SCTP_DOWN; break; default: - DU_LOG("\nInvalid event"); + DU_LOG("\nERROR --> Invalid event %d", ntfy->u.assocChange.state); break; } break; case CM_INET_SCTP_PEER_ADDR_CHANGE : - DU_LOG("\nSCTP : Peer Address Change notificarion received"); + DU_LOG("\nINFO --> SCTP : Peer Address Change notificarion received"); /* Need to add handler */ break; case CM_INET_SCTP_REMOTE_ERROR : - DU_LOG("\nSCTP : Remote Error notification received"); + DU_LOG("\nINFO --> SCTP : Remote Error notification received"); break; case CM_INET_SCTP_SEND_FAILED : - DU_LOG("\nSCTP : Send Failed notification received\n"); + DU_LOG("\nINFO --> SCTP : Send Failed notification received\n"); break; case CM_INET_SCTP_SHUTDOWN_EVENT : /* peer socket gracefully closed */ - DU_LOG("\nSCTP : Shutdown Event notification received\n"); + DU_LOG("\nINFO --> SCTP : Shutdown Event notification received\n"); *itfState = DU_SCTP_DOWN; exit(0); break; case CM_INET_SCTP_ADAPTATION_INDICATION : - DU_LOG("\nSCTP : Adaptation Indication received\n"); + DU_LOG("\nINFO --> SCTP : Adaptation Indication received\n"); break; case CM_INET_SCTP_PARTIAL_DELIVERY_EVENT: - DU_LOG("\nSCTP : Partial Delivery Event received\n"); + DU_LOG("\nINFO --> SCTP : Partial Delivery Event received\n"); break; default: - DU_LOG("\nSCTP : Invalid sctp notification type\n"); + DU_LOG("\nERROR --> SCTP : Invalid sctp notification type %d", ntfy->header.nType); break; } /* Pack notification and send to APP */ - DU_LOG("\nSCTP : Forwarding received message to duApp"); + DU_LOG("\nDEBUG --> SCTP : Forwarding received message to duApp"); memset(&(pst), 0, sizeof(Pst)); pst.srcEnt = (Ent)ENTSCTP; @@ -591,7 +591,7 @@ uint8_t sctpNtfyHdlr(CmInetSctpNotification *ntfy, uint8_t *itfState) if(cmPkSctpNtfy(&pst, ntfy) != ROK) { - DU_LOG("\nSCTP : Failed to pack SCTP notification"); + DU_LOG("\nERROR --> SCTP : Failed to pack SCTP notification"); return RFAILED; } return ROK; @@ -632,7 +632,7 @@ uint8_t processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, uint32 if(ret != ROK) { - DU_LOG("\n SCTP: Failed to receive sctp msg for sockFd[%d]\n", sockFd->fd); + DU_LOG("\nERROR --> SCTP: Failed to receive sctp msg for sockFd[%d]\n", sockFd->fd); recvMsgSet = RFAILED; } else @@ -642,23 +642,23 @@ uint8_t processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, uint32 if(pollParams->port == f1Params.destPort) { f1Params.assocId = pollParams->ntfy.u.assocChange.assocId; - DU_LOG("\nSCTP : AssocId assigned to F1Params from PollParams [%d]\n", f1Params.assocId); + DU_LOG("\nDEBUG --> SCTP : AssocId assigned to F1Params from PollParams [%d]\n", f1Params.assocId); ret = sctpNtfyHdlr(&pollParams->ntfy, &f1Params.itfState); } else if(pollParams->port == ricParams.destPort) { ricParams.assocId = pollParams->ntfy.u.assocChange.assocId; - DU_LOG("\nSCTP : AssocId assigned to ricParams from PollParams [%d]\n", ricParams.assocId); + DU_LOG("\nDEBUG --> SCTP : AssocId assigned to ricParams from PollParams [%d]\n", ricParams.assocId); ret = sctpNtfyHdlr(&pollParams->ntfy, &ricParams.itfState); } else { - DU_LOG("\nSCTP : Failed to fill AssocId\n"); + DU_LOG("\nERROR --> SCTP : Failed to fill AssocId\n"); return RFAILED; } if(ret != ROK) { - DU_LOG("\nSCTP : Failed to process sctp notify msg\n"); + DU_LOG("\nERROR --> SCTP : Failed to process sctp notify msg\n"); } } else if(f1Params.itfState & (pollParams->port == f1Params.destPort)) @@ -722,21 +722,21 @@ uint8_t sctpSockPoll() CM_INET_FD_ZERO(&f1PollParams.readFd); CM_INET_FD_ZERO(&e2PollParams.readFd); - DU_LOG("\nSCTP : Polling started at DU\n"); + DU_LOG("\nINFO --> SCTP : Polling started at DU\n"); while(true) { if(f1Params.itfState) { if((ret = processPolling(&f1PollParams, &f1Params.sockFd, timeout_Ptr, &memInfo, f1Params.recvMsgSet)) != ROK) { - DU_LOG("\nSCTP : Failed to RecvMsg for F1\n"); + DU_LOG("\nERROR --> SCTP : Failed to RecvMsg for F1\n"); } } if(ricParams.itfState) { if((ret = processPolling(&e2PollParams, &ricParams.sockFd, timeout_Ptr, &memInfo, ricParams.recvMsgSet)) != ROK) { - DU_LOG("\nSCTP : Failed to RecvMsg for E2\n"); + DU_LOG("\nERROR --> SCTP : Failed to RecvMsg for E2\n"); } } }; @@ -770,19 +770,19 @@ uint8_t sctpSend(Buffer *mBuf, uint8_t itfType) if(itfType == F1_INTERFACE) { - DU_LOG("\nSCTP : sending the message to DuApp"); + DU_LOG("\nDEBUG --> SCTP : sending the message to DuApp"); ret = cmInetSctpSendMsg(&f1Params.sockFd, &f1Params.destIpNetAddr, f1Params.destPort, &memInfo, mBuf, &len, 0, FALSE, 0, 0/*SCT_PROTID_NONE*/, RWOULDBLOCK); } if(itfType == E2_INTERFACE) { - DU_LOG("\nSCTP : sending the message to ric"); + DU_LOG("\nDEBUG --> SCTP : sending the message to ric"); ret = cmInetSctpSendMsg(&ricParams.sockFd, &ricParams.destIpNetAddr, ricParams.destPort, &memInfo, mBuf, &len, 0, FALSE, 0, 0/*SCT_PROTID_NONE*/, RWOULDBLOCK); } if(ret != ROK && ret != RWOULDBLOCK) { - DU_LOG("\nSCTP : Failed sending the message"); + DU_LOG("\nERROR --> SCTP : Failed sending the message"); return RFAILED; } diff --git a/src/du_app/du_sys_info_hdl.c b/src/du_app/du_sys_info_hdl.c index e411fbba4..2bb528f81 100644 --- a/src/du_app/du_sys_info_hdl.c +++ b/src/du_app/du_sys_info_hdl.c @@ -85,7 +85,7 @@ uint8_t BuildMib(MIB_t *mib) DU_ALLOC(mib->systemFrameNumber.buf, mib->systemFrameNumber.size); if(!(mib->systemFrameNumber.buf)) { - DU_LOG("DU APP: MIB msg memory allocation failure"); + DU_LOG("\nERROR --> DU APP: MIB msg memory allocation failure"); return RFAILED; } @@ -103,7 +103,7 @@ uint8_t BuildMib(MIB_t *mib) DU_ALLOC(mib->spare.buf, mib->spare.size); if(!mib->spare.buf) { - DU_LOG("DU APP: MIB msg memory allocation failure"); + DU_LOG("\nERROR --> DU APP: MIB msg memory allocation failure"); return RFAILED; } *(mib->spare.buf) = SPARE; @@ -171,7 +171,7 @@ uint8_t BuildMibPdu() DU_ALLOC(bcchMsg, sizeof(BCCH_BCH_Message_t)); if(!bcchMsg) { - DU_LOG("\nMemory allocation failure in BuildMibPdu"); + DU_LOG("\nERROR --> Memory allocation failure in BuildMibPdu"); break; } @@ -179,7 +179,7 @@ uint8_t BuildMibPdu() DU_ALLOC(bcchMsg->message.choice.mib, sizeof(MIB_t)); if(!bcchMsg->message.choice.mib) { - DU_LOG("\nMemory allocation failure in BuildMibPdu"); + DU_LOG("\nERROR --> Memory allocation failure in BuildMibPdu"); break; } BuildMibret = BuildMib(bcchMsg->message.choice.mib); @@ -195,7 +195,7 @@ uint8_t BuildMibPdu() printf("\nencbufSize:%d\n", encBufSize); if(encRetVal.encoded == -1) { - DU_LOG("\nDU APP: Could not encode BCCH BCH Message Type structure(at %s)\n", + DU_LOG("\nERROR --> DU APP: Could not encode BCCH BCH Message Type structure(at %s)\n", encRetVal.failed_type?\ encRetVal.failed_type->name :"unknown"); @@ -275,7 +275,7 @@ uint8_t BuildMibMsg() DU_ALLOC(mibMsg, sizeof(MIB_t)); if(!mibMsg) { - DU_LOG("DU APP: MIB msg memory allocation failure"); + DU_LOG("\nERROR --> DU APP: MIB msg memory allocation failure"); return RFAILED; } BuildMibret = BuildMib(mibMsg); @@ -291,7 +291,7 @@ uint8_t BuildMibMsg() printf("\nencbufSize:%d\n", encBufSize); if(encRetVal.encoded == -1) { - DU_LOG("\nDU APP: Could not encode MIB structure(at %s)\n", + DU_LOG("\nERROR --> DU APP: Could not encode MIB structure(at %s)\n", encRetVal.failed_type?\ encRetVal.failed_type->name :"unknown"); @@ -339,7 +339,7 @@ uint8_t BuildCellIdentity(CellIdentity_t *cellIdentity) DU_ALLOC(cellIdentity->buf, cellIdentity->size); if(!cellIdentity->buf) { - DU_LOG("DU APP: CellIdentity memory allocation failure"); + DU_LOG("\nERROR --> DU APP: CellIdentity memory allocation failure"); return RFAILED; } *cellIdentity->buf = duCfgParam.sib1Params.cellIdentity; @@ -367,7 +367,7 @@ uint8_t BuildRanac(RAN_AreaCode_t **ranAreaCode) DU_ALLOC(ranac, sizeof(RAN_AreaCode_t)); if(!ranac) { - DU_LOG("DU APP: RANAC memory allocation failure"); + DU_LOG("\nERROR --> DU APP: RANAC memory allocation failure"); return RFAILED; } *ranac = duCfgParam.sib1Params.ranac; @@ -397,7 +397,7 @@ uint8_t BuildTac(TrackingAreaCode_t **trackAreaCode) DU_ALLOC(tac, sizeof(TrackingAreaCode_t)); if(!tac) { - DU_LOG("DU APP: TAC memory allocation failure"); + DU_LOG("\nERROR --> DU APP: TAC memory allocation failure"); return RFAILED; } @@ -405,7 +405,7 @@ uint8_t BuildTac(TrackingAreaCode_t **trackAreaCode) DU_ALLOC(tac->buf, tac->size); if(!tac->buf) { - DU_LOG("DU APP: TAC memory allocation failure"); + DU_LOG("\nERROR --> DU APP: TAC memory allocation failure"); return RFAILED; } *(tac->buf) = duCfgParam.sib1Params.tac; @@ -447,7 +447,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) cellAccessInfo->plmn_IdentityList.list.size); if(!cellAccessInfo->plmn_IdentityList.list.array) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } elementCnt = cellAccessInfo->plmn_IdentityList.list.count; @@ -457,7 +457,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) sizeof(PLMN_IdentityInfo_t)); if(!cellAccessInfo->plmn_IdentityList.list.array[idx]) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } } @@ -473,7 +473,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) DU_ALLOC(plmnIdInfo->list.array, plmnIdInfo->list.size); if(!plmnIdInfo->list.array) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } @@ -483,7 +483,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) sizeof(PLMN_IdentitY_t)); if(!(plmnIdInfo->list.array[idx1])) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } } @@ -492,7 +492,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) sizeof(MCC_t)); if(!plmnIdInfo->list.array[idx1]->mcc) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } @@ -504,7 +504,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) plmnIdInfo->list.array[idx1]->mcc->list.size) if(!(plmnIdInfo->list.array[idx1]->mcc->list.array)) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } for(idx2=0; idx2list.array[idx1]->mcc->list.array[idx2]) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } *(plmnIdInfo->list.array[idx1]->mcc->list.array[idx2])=\ @@ -527,7 +527,7 @@ uint8_t BuildPlmnList(CellAccessRelatedInfo_t *cellAccessInfo) plmnIdInfo->list.array[idx1]->mnc.list.size); if(!plmnIdInfo->list.array[idx1]->mnc.list.array) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } for(idx2=0; idx2list.array[idx1]->mnc.list.array[idx2]) { - DU_LOG("DU APP: BuildPlmnList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildPlmnList memory allocation failure"); return RFAILED; } *(plmnIdInfo->list.array[idx1]->mnc.list.array[idx2])=\ @@ -601,7 +601,7 @@ uint8_t BuildSibMapInfoList(SIB_Mapping_t *sibMapInfo) DU_ALLOC(sibMapInfo->list.array, sibMapInfo->list.size); if(!sibMapInfo->list.array) { - DU_LOG("DU APP: BuildSibMapInfoList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildSibMapInfoList memory allocation failure"); return RFAILED; } @@ -611,7 +611,7 @@ uint8_t BuildSibMapInfoList(SIB_Mapping_t *sibMapInfo) DU_ALLOC(sibMapInfo->list.array[itr], sizeof(SIB_TypeInfo_t)); if(!sibMapInfo->list.array[itr]) { - DU_LOG("DU APP: BuildSibMapInfoList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildSibMapInfoList memory allocation failure"); return RFAILED; } } @@ -622,7 +622,7 @@ uint8_t BuildSibMapInfoList(SIB_Mapping_t *sibMapInfo) DU_ALLOC(sibTypeInfo->valueTag, sizeof(long)); if(!sibTypeInfo->valueTag) { - DU_LOG("DU APP: BuildSibMapInfoList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildSibMapInfoList memory allocation failure"); return RFAILED; } @@ -658,7 +658,7 @@ uint8_t BuildSiSchedInfoList(struct SI_SchedulingInfo__schedulingInfoList *si_Sc DU_ALLOC(si_SchedulingInfoList->list.array, si_SchedulingInfoList->list.size); if(!si_SchedulingInfoList->list.array) { - DU_LOG("DU APP: BuildSiSchedInfoList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildSiSchedInfoList memory allocation failure"); return RFAILED; } @@ -668,7 +668,7 @@ uint8_t BuildSiSchedInfoList(struct SI_SchedulingInfo__schedulingInfoList *si_Sc DU_ALLOC(si_SchedulingInfoList->list.array[itr], sizeof(struct SchedulingInfo)); if(!si_SchedulingInfoList->list.array[itr]) { - DU_LOG("DU APP: BuildSiSchedInfoList memory allocation failure"); + DU_LOG("\nERROR --> DU APP: BuildSiSchedInfoList memory allocation failure"); return RFAILED; } } @@ -717,7 +717,7 @@ uint8_t BuildScsSpecificCarrierListDl( struct FrequencyInfoDL_SIB__scs_SpecificC DU_ALLOC(scsCarrierList->list.array, scsCarrierList->list.size); if(!scsCarrierList->list.array) { - DU_LOG("\nDU APP : SCS Specific Carrier list memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SCS Specific Carrier list memory allocation failed"); return RFAILED; } @@ -726,7 +726,7 @@ uint8_t BuildScsSpecificCarrierListDl( struct FrequencyInfoDL_SIB__scs_SpecificC DU_ALLOC(scsCarrierList->list.array[idx], sizeof(SCS_SpecificCarrier_t)); if(!scsCarrierList->list.array[idx]) { - DU_LOG("\nDU APP : SCS Specific Carrier list memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SCS Specific Carrier list memory allocation failed"); return RFAILED; } } @@ -766,7 +766,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace DU_ALLOC(searchSpclist->list.array, searchSpclist->list.size) if(!searchSpclist->list.array) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } @@ -775,7 +775,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace DU_ALLOC(searchSpclist->list.array[idx], sizeof(SearchSpace_t)); if(!searchSpclist->list.array[idx]) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } } @@ -790,7 +790,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace DU_ALLOC(searchSpace->controlResourceSetId, sizeof(ControlResourceSetId_t)); if(!searchSpace->controlResourceSetId) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } *searchSpace->controlResourceSetId = duPdcchCfg.ctrlRsrcSetId; @@ -800,7 +800,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace sizeof(struct SearchSpace__monitoringSlotPeriodicityAndOffset)); if(!searchSpace->monitoringSlotPeriodicityAndOffset) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } searchSpace->monitoringSlotPeriodicityAndOffset->present = \ @@ -884,7 +884,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace } default: { - DU_LOG("\nDU APP : Invalid value:Montoring slot periodicity and offset"); + DU_LOG("\nERROR --> DU APP : Invalid value:Montoring slot periodicity and offset"); return RFAILED; } } @@ -894,7 +894,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace sizeof(BIT_STRING_t)); if(!searchSpace->monitoringSymbolsWithinSlot) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } searchSpace->monitoringSymbolsWithinSlot->size = 2*sizeof(uint8_t); @@ -902,7 +902,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace searchSpace->monitoringSymbolsWithinSlot->size ); if(!searchSpace->monitoringSymbolsWithinSlot->buf) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } searchSpace->monitoringSymbolsWithinSlot->buf[0] = duPdcchCfg.monitorSymbolsInSlot[0]; @@ -914,7 +914,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace sizeof(struct SearchSpace__nrofCandidates)); if(!searchSpace->nrofCandidates) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } searchSpace->nrofCandidates->aggregationLevel1 = duPdcchCfg.numCandAggLvl1; @@ -928,7 +928,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace sizeof( struct SearchSpace__searchSpaceType)); if(!searchSpace->searchSpaceType) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } @@ -945,7 +945,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace DU_ALLOC(searchSpace->searchSpaceType->choice.common, sizeof(struct SearchSpace__searchSpaceType__common)); if(!searchSpace->searchSpaceType->choice.common) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } @@ -954,7 +954,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace SearchSpace__searchSpaceType__common__dci_Format0_0_AndFormat1_0)); if(!searchSpace->searchSpaceType->choice.common->dci_Format0_0_AndFormat1_0) { - DU_LOG("\nDU APP : Common search space list memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Common search space list memory alloc failed"); return RFAILED; } break; @@ -965,7 +965,7 @@ uint8_t BuildCommonSerachSpaceList( struct PDCCH_ConfigCommon__commonSearchSpace } default: { - DU_LOG("\nDU_APP: Invalid Search Space type"); + DU_LOG("\nERROR --> DU_APP: Invalid Search Space type"); return RFAILED; } } @@ -1017,7 +1017,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch DU_ALLOC(pdcchCfg->choice.setup, sizeof(PDCCH_ConfigCommon_t)); if(!pdcchCfg->choice.setup) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } pdcchSetup = pdcchCfg->choice.setup; @@ -1026,7 +1026,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch DU_ALLOC(pdcchSetup->controlResourceSetZero, sizeof(ControlResourceSetZero_t)); if(!pdcchSetup->controlResourceSetZero) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } *pdcchSetup->controlResourceSetZero = duPdcchCfg.ctrlRsrcSetZero; @@ -1035,7 +1035,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch DU_ALLOC(pdcchSetup->searchSpaceZero, sizeof(SearchSpaceZero_t)); if(!pdcchSetup->searchSpaceZero) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } *pdcchSetup->searchSpaceZero = duPdcchCfg.searchSpcZero; @@ -1045,7 +1045,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch sizeof(struct PDCCH_ConfigCommon__commonSearchSpaceList)); if(!pdcchSetup->commonSearchSpaceList) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } elementCnt = ODU_VALUE_ONE; @@ -1062,7 +1062,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch DU_ALLOC(pdcchSetup->searchSpaceSIB1, sizeof(SearchSpaceId_t)); if(!pdcchSetup->searchSpaceSIB1) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } *pdcchSetup->searchSpaceSIB1 = duPdcchCfg.searchSpcSib1; @@ -1071,7 +1071,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch DU_ALLOC(pdcchSetup->pagingSearchSpace, sizeof(SearchSpaceId_t)); if(!pdcchSetup->pagingSearchSpace) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } *pdcchSetup->pagingSearchSpace = duPdcchCfg.pagingSearchSpc; @@ -1080,7 +1080,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch DU_ALLOC(pdcchSetup->ra_SearchSpace, sizeof(SearchSpaceId_t)); if(!pdcchSetup->ra_SearchSpace) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } *pdcchSetup->ra_SearchSpace = duPdcchCfg.raSearchSpc; @@ -1089,7 +1089,7 @@ uint8_t BuildPdcchCfgCommon(struct BWP_DownlinkCommon__pdcch_ConfigCommon *pdcch } default : { - DU_LOG("\nDU APP : Invalid PDCCH Config type"); + DU_LOG("\nERROR --> DU APP : Invalid PDCCH Config type"); return RFAILED; } } @@ -1142,7 +1142,7 @@ uint8_t BuildPdschCfgCommon(struct BWP_DownlinkCommon__pdsch_ConfigCommon *pdsch DU_ALLOC(pdschCfg->choice.setup, sizeof(PDSCH_ConfigCommon_t)); if(!pdschCfg->choice.setup) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } pdschSetup = pdschCfg->choice.setup; @@ -1152,7 +1152,7 @@ uint8_t BuildPdschCfgCommon(struct BWP_DownlinkCommon__pdsch_ConfigCommon *pdsch sizeof(PDSCH_TimeDomainResourceAllocationList_t)); if(!pdschSetup->pdsch_TimeDomainAllocationList) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } elementCnt = ODU_VALUE_ONE; @@ -1163,7 +1163,7 @@ uint8_t BuildPdschCfgCommon(struct BWP_DownlinkCommon__pdsch_ConfigCommon *pdsch pdschSetup->pdsch_TimeDomainAllocationList->list.size); if(!pdschSetup->pdsch_TimeDomainAllocationList->list.array) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } @@ -1173,7 +1173,7 @@ uint8_t BuildPdschCfgCommon(struct BWP_DownlinkCommon__pdsch_ConfigCommon *pdsch sizeof(PDSCH_TimeDomainResourceAllocation_t)); if(!pdschSetup->pdsch_TimeDomainAllocationList->list.array[idx]) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } } @@ -1185,7 +1185,7 @@ uint8_t BuildPdschCfgCommon(struct BWP_DownlinkCommon__pdsch_ConfigCommon *pdsch DU_ALLOC(timeDomRsrcAllocInfo->k0, sizeof(long)); if(!timeDomRsrcAllocInfo->k0) { - DU_LOG("\nDU APP : PDCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PDCCH Config memory alloc failed"); return RFAILED; } *timeDomRsrcAllocInfo->k0 = duPdschCfg.k0; @@ -1197,7 +1197,7 @@ uint8_t BuildPdschCfgCommon(struct BWP_DownlinkCommon__pdsch_ConfigCommon *pdsch } default: { - DU_LOG("\nDU APP: Invalid PDSCH Configuration type"); + DU_LOG("\nERROR --> DU APP: Invalid PDSCH Configuration type"); return RFAILED; } } @@ -1236,7 +1236,7 @@ uint8_t BuildBwpDlCommon(BWP_DownlinkCommon_t *bwp) sizeof(struct BWP_DownlinkCommon__pdcch_ConfigCommon)); if(!bwp->pdcch_ConfigCommon) { - DU_LOG("\nDU APP : DL BWP memory allocation failed"); + DU_LOG("\nERROR --> DU APP : DL BWP memory allocation failed"); return RFAILED; } ret=BuildPdcchCfgCommon(bwp->pdcch_ConfigCommon); @@ -1249,7 +1249,7 @@ uint8_t BuildBwpDlCommon(BWP_DownlinkCommon_t *bwp) sizeof(struct BWP_DownlinkCommon__pdsch_ConfigCommon)); if(!bwp->pdsch_ConfigCommon) { - DU_LOG("\nDU APP : DL BWP memory allocation failed"); + DU_LOG("\nERROR --> DU APP : DL BWP memory allocation failed"); return RFAILED; } ret=BuildPdschCfgCommon(bwp->pdsch_ConfigCommon); @@ -1346,7 +1346,7 @@ uint8_t BuildPcchConfig(PCCH_Config_t *pcchCfg) } default: { - DU_LOG("\nDU APP : Invalid nAndPagingFrameOffset configuration"); + DU_LOG("\nERROR --> DU APP : Invalid nAndPagingFrameOffset configuration"); return RFAILED; } } @@ -1392,7 +1392,7 @@ uint8_t BuildFreqInfoDl(FrequencyInfoDL_SIB_t *frequencyInfoDL) frequencyInfoDL->frequencyBandList.list.size); if(!frequencyInfoDL->frequencyBandList.list.array) { - DU_LOG("\nDU APP : SIB1 DL Configuration memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SIB1 DL Configuration memory allocation failed"); return RFAILED; } @@ -1402,7 +1402,7 @@ uint8_t BuildFreqInfoDl(FrequencyInfoDL_SIB_t *frequencyInfoDL) sizeof(NR_MultiBandInfo_t)); if(!frequencyInfoDL->frequencyBandList.list.array[idx]) { - DU_LOG("\nDU APP : SIB1 DL Configuration memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SIB1 DL Configuration memory allocation failed"); return RFAILED; } } @@ -1414,7 +1414,7 @@ uint8_t BuildFreqInfoDl(FrequencyInfoDL_SIB_t *frequencyInfoDL) DU_ALLOC(multiBandInfo->freqBandIndicatorNR, sizeof(FreqBandIndicatorNR_t)); if(!multiBandInfo->freqBandIndicatorNR) { - DU_LOG("\nDU APP : SIB1 DL Configuration memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SIB1 DL Configuration memory allocation failed"); return RFAILED; } *multiBandInfo->freqBandIndicatorNR = dlCfg.freqBandInd; @@ -1514,7 +1514,7 @@ struct FrequencyInfoUL_SIB__scs_SpecificCarrierList *scsCarrierList DU_ALLOC(scsCarrierList->list.array, scsCarrierList->list.size); if(!scsCarrierList->list.array) { - DU_LOG("\nDU APP : SCS Specific Carrier list memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SCS Specific Carrier list memory allocation failed"); return RFAILED; } @@ -1523,7 +1523,7 @@ struct FrequencyInfoUL_SIB__scs_SpecificCarrierList *scsCarrierList DU_ALLOC(scsCarrierList->list.array[idx], sizeof(SCS_SpecificCarrier_t)); if(!scsCarrierList->list.array[idx]) { - DU_LOG("\nDU APP : SCS Specific Carrier list memory allocation failed"); + DU_LOG("\nERROR --> DU APP : SCS Specific Carrier list memory allocation failed"); return RFAILED; } } @@ -1573,7 +1573,7 @@ uint8_t BuildFreqInfoUl(FrequencyInfoUL_SIB_t *frequencyInfoUL) DU_ALLOC(frequencyInfoUL->p_Max, sizeof(P_Max_t)); if(!frequencyInfoUL->p_Max) { - DU_LOG("\nDU APP : UL Frequency Infoo memory allocation failure"); + DU_LOG("\nERROR --> DU APP : UL Frequency Infoo memory allocation failure"); return RFAILED; } *frequencyInfoUL->p_Max = ulCfg.pMax; @@ -1623,7 +1623,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) DU_ALLOC(rachCfg->choice.setup, sizeof(RACH_ConfigCommon_t)); if(!rachCfg->choice.setup) { - DU_LOG("\nDU APP : Rach Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Rach Config memory alloc failed"); return RFAILED; } setup = rachCfg->choice.setup; @@ -1642,7 +1642,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) DU_ALLOC(setup->totalNumberOfRA_Preambles, sizeof(long)); if(!setup->totalNumberOfRA_Preambles) { - DU_LOG("\nDU APP : Rach Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Rach Config memory alloc failed"); return RFAILED; } *setup->totalNumberOfRA_Preambles = duRachCfg.numRaPreamble; @@ -1652,7 +1652,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) sizeof(struct RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB)); if(!setup->ssb_perRACH_OccasionAndCB_PreamblesPerSSB) { - DU_LOG("\nDU APP : Rach Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Rach Config memory alloc failed"); return RFAILED; } setup->ssb_perRACH_OccasionAndCB_PreamblesPerSSB->present = \ @@ -1706,7 +1706,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) } default: { - DU_LOG("\nDU APP: Invalid value for \ + DU_LOG("\nERROR --> DU APP: Invalid value for \ ssb_PerRach_OccassionAndCB_PreamblesPerSSB"); return RFAILED; } @@ -1719,7 +1719,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) DU_ALLOC(setup->rsrp_ThresholdSSB, sizeof(RSRP_Range_t)); if(!setup->rsrp_ThresholdSSB) { - DU_LOG("\nDU APP : Rach Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Rach Config memory alloc failed"); return RFAILED; } *setup->rsrp_ThresholdSSB = duRachCfg.rsrpThreshSsb; @@ -1745,7 +1745,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) } default: { - DU_LOG("\nDU APP: Inavlid PRACH root sequence index type"); + DU_LOG("\nERROR --> DU APP: Inavlid PRACH root sequence index type"); return RFAILED; } } @@ -1754,7 +1754,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) DU_ALLOC(setup->msg1_SubcarrierSpacing, sizeof(SubcarrierSpacing_t)); if(!setup->msg1_SubcarrierSpacing) { - DU_LOG("\nDU APP : Rach Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : Rach Config memory alloc failed"); return RFAILED; } *setup->msg1_SubcarrierSpacing = duRachCfg.msg1Scs; @@ -1766,7 +1766,7 @@ uint8_t BuildRachCfgCommon(struct BWP_UplinkCommon__rach_ConfigCommon *rachCfg) } default: { - DU_LOG("\nDU APP : Invalid RACH Config type "); + DU_LOG("\nERROR --> DU APP : Invalid RACH Config type "); return RFAILED; } } @@ -1818,7 +1818,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf DU_ALLOC(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t)); if(!puschCfg->choice.setup) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } setup = puschCfg->choice.setup; @@ -1828,7 +1828,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf sizeof(PUSCH_TimeDomainResourceAllocationList_t)); if(!setup->pusch_TimeDomainAllocationList) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } elementCnt = ODU_VALUE_ONE; @@ -1840,7 +1840,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf setup->pusch_TimeDomainAllocationList->list.size); if(!setup->pusch_TimeDomainAllocationList->list.array) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } @@ -1850,7 +1850,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf sizeof(PUSCH_TimeDomainResourceAllocation_t)); if(!setup->pusch_TimeDomainAllocationList->list.array[idx]) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } } @@ -1862,7 +1862,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf DU_ALLOC(timeDomRsrcAllocInfo->k2, sizeof(long)); if(!timeDomRsrcAllocInfo->k2) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } *timeDomRsrcAllocInfo->k2 = duPuschCfg.k2; @@ -1874,7 +1874,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf DU_ALLOC(setup->msg3_DeltaPreamble, sizeof(long)); if(!setup->msg3_DeltaPreamble) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } *setup->msg3_DeltaPreamble = duPuschCfg.msg3DeltaPreamble; @@ -1883,7 +1883,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf DU_ALLOC(setup->p0_NominalWithGrant, sizeof(long)); if(!setup->p0_NominalWithGrant) { - DU_LOG("\nDU APP : PUSCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUSCH Config memory alloc failed"); return RFAILED; } *setup->p0_NominalWithGrant = duPuschCfg.p0NominalWithGrant; @@ -1892,7 +1892,7 @@ uint8_t BuildPuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCf } default: { - DU_LOG("\nDU APP : Invalid PUSCH configuration type "); + DU_LOG("\nERROR --> DU APP : Invalid PUSCH configuration type "); return RFAILED; } } @@ -1942,7 +1942,7 @@ uint8_t BuildPucchCfgCommon( struct BWP_UplinkCommon__pucch_ConfigCommon *pucchC DU_ALLOC(pucchCfg->choice.setup, sizeof(PUCCH_ConfigCommon_t)); if(!pucchCfg->choice.setup) { - DU_LOG("\nDU APP : PUCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUCCH Config memory alloc failed"); return RFAILED; } setup = pucchCfg->choice.setup; @@ -1951,7 +1951,7 @@ uint8_t BuildPucchCfgCommon( struct BWP_UplinkCommon__pucch_ConfigCommon *pucchC DU_ALLOC(setup->pucch_ResourceCommon, sizeof(long)); if(!setup->pucch_ResourceCommon) { - DU_LOG("\nDU APP : PUCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUCCH Config memory alloc failed"); return RFAILED; } *setup->pucch_ResourceCommon = duPucchCfg.rsrcComm; @@ -1963,7 +1963,7 @@ uint8_t BuildPucchCfgCommon( struct BWP_UplinkCommon__pucch_ConfigCommon *pucchC DU_ALLOC(setup->p0_nominal, sizeof(long)); if(!setup->p0_nominal) { - DU_LOG("\nDU APP : PUCCH Config memory alloc failed"); + DU_LOG("\nERROR --> DU APP : PUCCH Config memory alloc failed"); return RFAILED; } *setup->p0_nominal = duPucchCfg.p0Nominal; @@ -1972,7 +1972,7 @@ uint8_t BuildPucchCfgCommon( struct BWP_UplinkCommon__pucch_ConfigCommon *pucchC } default: { - DU_LOG("\nDU APP : Invalid PUCCH Config type"); + DU_LOG("\nERROR --> DU APP : Invalid PUCCH Config type"); return RFAILED; } } @@ -2011,7 +2011,7 @@ uint8_t BuildBwpUlCommon(BWP_UplinkCommon_t *bwp) sizeof(struct BWP_UplinkCommon__rach_ConfigCommon)); if(!bwp->rach_ConfigCommon) { - DU_LOG("\nDU APP : UL BWP memory allocation failed"); + DU_LOG("\nERROR --> DU APP : UL BWP memory allocation failed"); return RFAILED; } ret = BuildRachCfgCommon(bwp->rach_ConfigCommon); @@ -2026,7 +2026,7 @@ uint8_t BuildBwpUlCommon(BWP_UplinkCommon_t *bwp) sizeof(struct BWP_UplinkCommon__pusch_ConfigCommon)); if(!bwp->pusch_ConfigCommon) { - DU_LOG("\nDU APP : UL BWP memory allocation failed"); + DU_LOG("\nERROR --> DU APP : UL BWP memory allocation failed"); return RFAILED; } ret = BuildPuschCfgCommon(bwp->pusch_ConfigCommon); @@ -2041,7 +2041,7 @@ uint8_t BuildBwpUlCommon(BWP_UplinkCommon_t *bwp) sizeof(struct BWP_UplinkCommon__pucch_ConfigCommon)); if(!bwp->pucch_ConfigCommon) { - DU_LOG("\nDU APP : UL BWP memory allocation failed"); + DU_LOG("\nERROR --> DU APP : UL BWP memory allocation failed"); return RFAILED; } ret = BuildPucchCfgCommon(bwp->pucch_ConfigCommon); @@ -2157,7 +2157,7 @@ uint8_t BuildServCellCfgCommonSib(ServingCellConfigCommonSIB_t *srvCellCfg) DU_ALLOC(ssbPosInBurst->buf, ssbPosInBurst->size * sizeof(uint8_t)); if(!ssbPosInBurst->buf) { - DU_LOG("\nDU APP : Serving cell config common memory allocation failure"); + DU_LOG("\nERROR --> DU APP : Serving cell config common memory allocation failure"); return RFAILED; } ssbPosInBurst->buf[0] = duSrvCellCfg.ssbPosInBurst; @@ -2205,7 +2205,7 @@ uint8_t BuildServCellCfgCommonSib(ServingCellConfigCommonSIB_t *srvCellCfg) DU_ALLOC(srvCellCfg->uplinkConfigCommon, sizeof(UplinkConfigCommonSIB_t)); if(!srvCellCfg->uplinkConfigCommon) { - DU_LOG("\nDU APP : Serving cell config common memory allocation failure"); + DU_LOG("\nERROR --> DU APP : Serving cell config common memory allocation failure"); return RFAILED; } ret = BuildUlCfgCommSib(srvCellCfg->uplinkConfigCommon); @@ -2219,7 +2219,7 @@ uint8_t BuildServCellCfgCommonSib(ServingCellConfigCommonSIB_t *srvCellCfg) DU_ALLOC(srvCellCfg->tdd_UL_DL_ConfigurationCommon, sizeof(TDD_UL_DL_ConfigCommon_t)); if(!srvCellCfg->tdd_UL_DL_ConfigurationCommon) { - DU_LOG("\nDU APP : Serving cell config common memory allocation failure"); + DU_LOG("\nERROR --> DU APP : Serving cell config common memory allocation failure"); return RFAILED; } ret = BuildTddUlDlCfgComm(srvCellCfg->tdd_UL_DL_ConfigurationCommon); @@ -2258,7 +2258,7 @@ uint8_t BuildSib1Msg() DU_ALLOC(sib1Msg, sizeof(SIB1_t)); if(!sib1Msg) { - DU_LOG("DU APP: SIB1 msg memory allocation failure"); + DU_LOG("\nERROR --> DU APP: SIB1 msg memory allocation failure"); break; } @@ -2278,7 +2278,7 @@ uint8_t BuildSib1Msg() DU_ALLOC(sib1Msg->connEstFailureControl, sizeof(ConnEstFailureControl_t)); if(!sib1Msg->connEstFailureControl) { - DU_LOG("DU APP: sib1Msg->connEstFailureControl memory allocation failure"); + DU_LOG("\nERROR --> DU APP: sib1Msg->connEstFailureControl memory allocation failure"); break; } sib1Msg->connEstFailureControl->connEstFailCount =\ @@ -2290,7 +2290,7 @@ uint8_t BuildSib1Msg() DU_ALLOC(sib1Msg->si_SchedulingInfo, sizeof(SI_SchedulingInfo_t)); if(!sib1Msg->si_SchedulingInfo) { - DU_LOG("DU APP: sib1Msg->si_SchedulingInfo memory allocation failure"); + DU_LOG("\nERROR --> DU APP: sib1Msg->si_SchedulingInfo memory allocation failure"); break; } elementCnt = ODU_VALUE_ONE; @@ -2308,7 +2308,7 @@ uint8_t BuildSib1Msg() DU_ALLOC(sib1Msg->servingCellConfigCommon, sizeof(ServingCellConfigCommonSIB_t)); if(!sib1Msg->servingCellConfigCommon) { - DU_LOG("DU APP: sib1Msg->servingCellConfigCommon memory allocation failure"); + DU_LOG("\nERROR --> DU APP: sib1Msg->servingCellConfigCommon memory allocation failure"); break; } ret1 = BuildServCellCfgCommonSib(sib1Msg->servingCellConfigCommon); @@ -2327,7 +2327,7 @@ uint8_t BuildSib1Msg() printf("\nencbufSize: %d\n", encBufSize); if(encRetVal.encoded == -1) { - DU_LOG("\nDU APP : Could not encode SIB1 structure (at %s)\n",\ + DU_LOG("\nERROR --> DU APP : Could not encode SIB1 structure (at %s)\n",\ encRetVal.failed_type ? encRetVal.failed_type->name : "unknown"); diff --git a/src/du_app/du_ue_mgr.c b/src/du_app/du_ue_mgr.c index c9d7941b2..e17890a3d 100644 --- a/src/du_app/du_ue_mgr.c +++ b/src/du_app/du_ue_mgr.c @@ -101,7 +101,7 @@ uint8_t duHdlEgtpDlData(EgtpMsg *egtpMsg) /* TODO : Extract RbId/UeID/CellID/SduId from database using tunnel id in egtp header */ - DU_LOG("\nDU_APP : Processing DL data"); + DU_LOG("\nDEBUG --> DU_APP : Processing DL data"); #ifdef EGTP_TEST Pst pst; KwuDatReqInfo datReqInfo; @@ -153,13 +153,13 @@ uint8_t duBuildAndSendDlCcchInd(uint16_t *cellId, uint16_t *crnti, \ DlCcchIndInfo *dlCcchIndInfo = NULLP; Pst pst; - DU_LOG("\nDU APP : Building and Sending DL CCCH Ind to MAC"); + DU_LOG("\nDEBUG --> DU APP : Building and Sending DL CCCH Ind to MAC"); DU_ALLOC_SHRABL_BUF(dlCcchIndInfo, sizeof(DlCcchIndInfo)); if(!dlCcchIndInfo) { - DU_LOG("\nDU APP : Memory alloc failed while building DL CCCH Ind"); + DU_LOG("\nERROR --> DU APP : Memory alloc failed while building DL CCCH Ind"); return RFAILED; } @@ -171,7 +171,7 @@ uint8_t duBuildAndSendDlCcchInd(uint16_t *cellId, uint16_t *crnti, \ DU_ALLOC_SHRABL_BUF(dlCcchIndInfo->dlCcchMsg, dlCcchIndInfo->dlCcchMsgLen); if(!dlCcchIndInfo->dlCcchMsg) { - DU_LOG("\nDU APP : Memory alloc failed while building DL CCCH Ind"); + DU_LOG("\nERROR --> DU APP : Memory alloc failed while building DL CCCH Ind"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, dlCcchIndInfo, sizeof(DlCcchIndInfo)); return RFAILED; } @@ -186,7 +186,7 @@ uint8_t duBuildAndSendDlCcchInd(uint16_t *cellId, uint16_t *crnti, \ ret = (*packMacDlCcchIndOpts[pst.selector])(&pst, dlCcchIndInfo); if(ret != ROK) { - DU_LOG("\nDU_APP : Failure in sending DL CCCH to MAC"); + DU_LOG("\nERROR --> DU_APP : Failure in sending DL CCCH to MAC"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, dlCcchIndInfo->dlCcchMsg,\ dlCcchIndInfo->dlCcchMsgLen); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, dlCcchIndInfo, \ @@ -227,14 +227,14 @@ uint8_t duBuildAndSendDlRrcMsgToRlc(uint16_t cellId, RlcUeCfg ueCfg, F1DlRrcMsg if(!f1DlRrcMsg) { - DU_LOG("\nDU APP : Received Dl RRC Msg is NULL at duBuildAndSendDlRrcMsgToRlc()"); + DU_LOG("\nERROR --> DU APP : Received Dl RRC Msg is NULL at duBuildAndSendDlRrcMsgToRlc()"); return RFAILED; } DU_ALLOC_SHRABL_BUF(dlRrcMsgInfo, sizeof(RlcDlRrcMsgInfo)); if(!dlRrcMsgInfo) { - DU_LOG("\nDU APP : Memory allocation failed for dlRrcMsgInfo in \ + DU_LOG("\nERROR --> DU APP : Memory allocation failed for dlRrcMsgInfo in \ duBuildAndSendDlRrcMsgToRlc"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, f1DlRrcMsg->rrcMsgPdu, f1DlRrcMsg->rrcMsgSize); return RFAILED; @@ -261,7 +261,7 @@ uint8_t duBuildAndSendDlRrcMsgToRlc(uint16_t cellId, RlcUeCfg ueCfg, F1DlRrcMsg /* Filling post structure and sending msg */ FILL_PST_DUAPP_TO_RLC(pst, RLC_DL_INST, EVENT_DL_RRC_MSG_TRANS_TO_RLC); - DU_LOG("\nDU_APP: Sending Dl RRC Msg to RLC \n"); + DU_LOG("\nDEBUG --> DU_APP: Sending Dl RRC Msg to RLC \n"); ret = (*duSendDlRrcMsgToRlcOpts[pst.selector])(&pst, dlRrcMsgInfo); if(ret != ROK) { @@ -318,7 +318,7 @@ uint8_t duProcDlRrcMsg(F1DlRrcMsg *dlRrcMsg) ret = duBuildAndSendDlCcchInd(&cellId, &crnti, RRC_SETUP, dlRrcMsg->rrcMsgSize, dlRrcMsg->rrcMsgPdu); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Falied to build DlCcch Ind at procDlRrcMsgTrans()"); + DU_LOG("\nERROR --> DU APP : Failed to build DlCcch Ind at procDlRrcMsgTrans()"); } else { @@ -327,13 +327,13 @@ uint8_t duProcDlRrcMsg(F1DlRrcMsg *dlRrcMsg) ret = duCreateUeCb(&duCb.ueCcchCtxt[ueIdx], dlRrcMsg->gnbCuUeF1apId); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Failed to createUeCb for cellId [%d] at procDlRrcMsgTrans()", \ + DU_LOG("\nERROR --> DU APP : Failed to createUeCb for cellId [%d] at procDlRrcMsgTrans()", \ duCb.ueCcchCtxt[ueIdx].cellId); } } else { - DU_LOG("\nDU_APP: Max Active UEs has reached at procDlRrcMsgTrans()"); + DU_LOG("\nERROR --> DU_APP: Max Active UEs has reached at procDlRrcMsgTrans()"); ret = RFAILED; } } @@ -417,7 +417,7 @@ uint8_t duProcUlCcchInd(UlCcchIndInfo *ulCcchIndInfo) ulCcchIndInfo->ulCcchMsg)); if(ret != ROK) { - DU_LOG("\nDU_APP : BuildAndSendInitialRrcMsgTransfer failed"); + DU_LOG("\nERROR --> DU_APP : BuildAndSendInitialRrcMsgTransfer failed"); } DU_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, ulCcchIndInfo->ulCcchMsg, ulCcchIndInfo->ulCcchMsgLen); @@ -605,7 +605,7 @@ void fillDefaultInitUlBwp(InitialUlBwp *initUlBwp) } else { - DU_LOG("\n DUAPP: Memory is NULL of InitalUlBwp"); + DU_LOG("\nERROR --> DU APP : Memory is NULL of InitalUlBwp"); } } @@ -648,7 +648,7 @@ void fillDefaultSpCellGrpInfo(SpCellCfg *spCell) } else { - DU_LOG("\n DU_APP: Memory is NULL for SpCellGrp"); + DU_LOG("\nERROR --> DU APP : Memory is NULL for SpCellGrp"); } } @@ -675,7 +675,7 @@ void fillDefaultPhyCellGrpInfo(PhyCellGrpCfg *cellGrp) } else { - DU_LOG("\nDUAPP: Memory is NULL for Physical Cell Group"); + DU_LOG("\nERROR --> DU APP : Memory is NULL for Physical Cell Group"); } } @@ -742,7 +742,7 @@ void fillDefaultMacCellGrpInfo(MacCellGrpCfg *cellGrp) } else { - DU_LOG("\nDUAPP: Memory is NULL for Master Cell Group"); + DU_LOG("\nERROR --> DU APP : Memory is NULL for Master Cell Group"); } } @@ -824,7 +824,7 @@ uint8_t fillMacLcCfgToAddMod(LcCfg *lcCfg, LcCfg *ueSetReqDb) DU_ALLOC_SHRABL_BUF(lcCfg->drbQos, sizeof(DrbQosInfo)); if(!lcCfg->drbQos) { - DU_LOG("\nDU APP: Memory Alloc failed at drQos at fillMacLcCfgToAddMod()"); + DU_LOG("\nERROR --> DU APP : Memory Alloc failed at drQos at fillMacLcCfgToAddMod()"); return RFAILED; } } @@ -847,7 +847,7 @@ uint8_t fillMacLcCfgToAddMod(LcCfg *lcCfg, LcCfg *ueSetReqDb) DU_ALLOC_SHRABL_BUF(lcCfg->snssai, sizeof(Snssai)); if(!lcCfg->snssai) { - DU_LOG("\nDU APP: Memory Alloc failed at snnsai at fillMacLcCfgToAddMod()"); + DU_LOG("\nERROR --> DU APP : Memory Alloc failed at snnsai at fillMacLcCfgToAddMod()"); ret = RFAILED; } } @@ -900,7 +900,7 @@ uint8_t fillAmbr(AmbrCfg **macAmbr, AmbrCfg *ueDbAmbr) DU_ALLOC_SHRABL_BUF(*macAmbr, sizeof(AmbrCfg)); if(*macAmbr == NULLP) { - DU_LOG("\nDUAPP: Memory Alloc Failed at fillAmbr()"); + DU_LOG("\nERROR --> DU APP : Memory Alloc Failed at fillAmbr()"); return RFAILED; } } @@ -942,17 +942,17 @@ uint8_t sendUeReCfgReqToMac(MacUeCfg *macUeCfg) if(macUeCfg) { /* Processing one Ue at a time to MAC */ - DU_LOG("\nDU_APP: Sending Ue Reconfig Request to MAC"); + DU_LOG("\nDEBUG --> DU_APP: Sending Ue Reconfig Request to MAC"); ret = (*packMacUeReconfigReqOpts[pst.selector])(&pst, macUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Failed to send Reconfig Request to MAC at sendUeReCfgReqToMac()"); + DU_LOG("\nERROR --> DU APP : Failed to send Reconfig Request to MAC at sendUeReCfgReqToMac()"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, macUeCfg, sizeof(MacUeCfg)); } } else { - DU_LOG("\n DU_APP: Received macUeCfg is NULLP at sendUeReCfgReqToMac()"); + DU_LOG("\nERROR --> DU_APP: Received macUeCfg is NULLP at sendUeReCfgReqToMac()"); ret = RFAILED; } return ret; @@ -989,7 +989,7 @@ uint8_t getDrbLcId(uint32_t *drbBitMap) bitPos++; } } - DU_LOG("\nDU_APP: Max LC Reached in getDrbLcId()"); + DU_LOG("\nERROR --> DU_APP: Max LC Reached in getDrbLcId()"); return RFAILED; } @@ -1093,7 +1093,7 @@ uint8_t fillMacUeCfg(uint16_t cellId, uint8_t ueIdx, uint16_t crnti, \ } else { - DU_LOG("\n DU_APP: Failed to add Lc at Idx %d in fillMacUeCfg()", dbIdx); + DU_LOG("\nERROR --> DU APP : Failed to add Lc at Idx %d in fillMacUeCfg()", dbIdx); break; } }/*End of Outer FOR loop */ @@ -1224,7 +1224,7 @@ uint8_t fillDefaultRlcModeCfg(uint8_t rlcMode, RlcBearerCfg *lcCfg) fillDefaultAmInfo(lcCfg->u.amCfg); else { - DU_LOG("\n DU_APP: Memory Alloc failed at AmCfg at fillDefaultRlcModeCfg()"); + DU_LOG("\n ERROR --> DU APP : Memory Alloc failed at AmCfg at fillDefaultRlcModeCfg()"); return RFAILED; } } @@ -1239,7 +1239,7 @@ uint8_t fillDefaultRlcModeCfg(uint8_t rlcMode, RlcBearerCfg *lcCfg) fillDefaultUmBiInfo(lcCfg->u.umBiDirCfg); else { - DU_LOG("\n DU_APP: Memory Alloc failed at UmBiDirCfg at fillDefaultRlcModeCfg()"); + DU_LOG("\n ERROR --> DU APP : Memory Alloc failed at UmBiDirCfg at fillDefaultRlcModeCfg()"); return RFAILED; } } @@ -1254,7 +1254,7 @@ uint8_t fillDefaultRlcModeCfg(uint8_t rlcMode, RlcBearerCfg *lcCfg) fillDefaultUmUlInfo(lcCfg->u.umUniDirUlCfg); else { - DU_LOG("\n DU_APP: Memory Alloc failed at UmUniDirUlCfg at fillDefaultRlcModeCfg()"); + DU_LOG("\n ERROR --> DU APP : Memory Alloc failed at UmUniDirUlCfg at fillDefaultRlcModeCfg()"); return RFAILED; } } @@ -1269,21 +1269,21 @@ uint8_t fillDefaultRlcModeCfg(uint8_t rlcMode, RlcBearerCfg *lcCfg) fillDefaultUmDlInfo(lcCfg->u.umUniDirDlCfg); else { - DU_LOG("\n DU_APP: Memory Alloc failed at UmUniDirDlCfg at fillDefaultRlcModeCfg()"); + DU_LOG("\n ERROR --> DU APP : Memory Alloc failed at UmUniDirDlCfg at fillDefaultRlcModeCfg()"); return RFAILED; } } break; } default: - DU_LOG("\nDUAPP: Invalid rlcMode %d at extractRlcCfgToAddMod()", rlcMode); + DU_LOG("\nERROR --> DUAPP: Invalid rlcMode %d at extractRlcCfgToAddMod()", rlcMode); return RFAILED; } } else { - DU_LOG("\nDUAPP: Received Lc Config is NULL"); + DU_LOG("\nERROR --> DUAPP: Received LC Config is NULL"); return RFAILED; } return ROK; @@ -1345,17 +1345,17 @@ uint8_t sendUeReCfgReqToRlc(RlcUeCfg *rlcUeCfg) if(rlcUeCfg) { /* Processing one Ue at a time to RLC */ - DU_LOG("\nDU_APP: Sending Ue Reconfig Request to RLC UL"); + DU_LOG("\nDEBUG --> DU_APP: Sending Ue Reconfig Request to RLC UL"); ret = (*packRlcUeReconfigReqOpts[pst.selector])(&pst, rlcUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU_APP : Failed to send Ue Reconfig Req to RLC at sendUeReCfgReqToRlc()"); + DU_LOG("\nERROR --> DU_APP : Failed to send Ue Reconfig Req to RLC at sendUeReCfgReqToRlc()"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, rlcUeCfg, sizeof(RlcUeCfg)); } } else { - DU_LOG("\n DU_APP: Received RlcUeCfg is NULL at sendUeReCfgReqToRlc()"); + DU_LOG("\nERROR --> DU_APP: Received RlcUeCfg is NULL at sendUeReCfgReqToRlc()"); ret = RFAILED; } return ret; @@ -1405,7 +1405,7 @@ uint8_t fillRlcUeCfg(uint16_t cellId, uint8_t ueIdx,\ ret = fillDefaultRlcModeCfg(ueCfgDb->rlcLcCfg[dbIdx].rlcMode, &ueCfgDb->rlcLcCfg[dbIdx]); if(ret == RFAILED) { - DU_LOG("\n DU_APP: Failed to fill Rlc Mode at fillRlcUeCfg()"); + DU_LOG("\n ERROR --> DU APP : Failed to fill Rlc Mode at fillRlcUeCfg()"); memset(rlcUeCfg, 0, sizeof(RlcUeCfg)); return ret; } @@ -1464,7 +1464,7 @@ uint8_t duCreateUeCb(UeCcchCtxt *ueCcchCtxt, uint32_t gnbCuUeF1apId) if(ueCcchCtxt->cellId == duCb.actvCellLst[cellIdx]->cellId) { GET_UE_IDX(ueCcchCtxt->crnti, ueIdx); - DU_LOG("\nDU_APP: Filling UeCb for ueIdx [%d]", ueIdx); + DU_LOG("\nDEBUG --> DU_APP: Filling UeCb for ueIdx [%d]", ueIdx); duCb.actvCellLst[cellIdx]->ueCb[ueIdx-1].f1UeDb = NULLP; duCb.actvCellLst[cellIdx]->ueCb[ueIdx-1].crnti = ueCcchCtxt->crnti; @@ -1478,14 +1478,14 @@ uint8_t duCreateUeCb(UeCcchCtxt *ueCcchCtxt, uint32_t gnbCuUeF1apId) ret = duBuildAndSendUeCreateReqToMac(ueCcchCtxt->cellId, ueIdx, ueCcchCtxt->crnti,\ &duCb.actvCellLst[cellIdx]->ueCb[ueIdx-1].macUeCfg); if(ret == RFAILED) - DU_LOG("\nDU_APP: Failed to send UE create request to MAC"); + DU_LOG("\nERROR --> DU APP : Failed to send UE create request to MAC"); /* Filling Rlc Ue Config */ memset(&duCb.actvCellLst[cellIdx]->ueCb[ueIdx-1].rlcUeCfg, 0, sizeof(RlcUeCfg)); ret = duBuildAndSendUeCreateReqToRlc(ueCcchCtxt->cellId, ueIdx, \ &duCb.actvCellLst[cellIdx]->ueCb[ueIdx-1].rlcUeCfg); if(ret == RFAILED) - DU_LOG("\nDU_APP: Failed to send UE create request to RLC"); + DU_LOG("\nERROR --> DU APP : Failed to send UE create request to RLC"); duCb.actvCellLst[cellIdx]->numActvUes++; memset(ueCcchCtxt, 0, sizeof(UeCcchCtxt)); @@ -1523,7 +1523,7 @@ uint8_t duBuildAndSendUeCreateReqToMac(uint16_t cellId, uint8_t ueIdx,\ ret = fillMacUeCfg(cellId, ueIdx, crnti, NULL, duMacUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU APP: Failed to fill MacUeCfg at duBuildAndSendUeCreateReqToMac()"); + DU_LOG("\nERROR --> DU APP : Failed to fill MacUeCfg at duBuildAndSendUeCreateReqToMac()"); return RFAILED; } /* Fill Pst */ @@ -1535,19 +1535,19 @@ uint8_t duBuildAndSendUeCreateReqToMac(uint16_t cellId, uint8_t ueIdx,\ { memset(macUeCfg, 0, sizeof(MacUeCfg)); memcpy(macUeCfg, &duCb.actvCellLst[cellId - 1]->ueCb[ueIdx -1].macUeCfg, sizeof(MacUeCfg)); - DU_LOG("\nDU_APP: Sending UE create request to MAC"); + DU_LOG("\nDEBUG --> DU_APP: Sending UE create request to MAC"); /* Processing one Ue at a time to MAC */ ret = (*packMacUeCreateReqOpts[pst.selector])(&pst, macUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU_APP : Failure in sending Ue Create Req to MAC at duBuildAndSendUeCreateReqToMac()"); + DU_LOG("\nERROR --> DU_APP : Failure in sending Ue Create Req to MAC at duBuildAndSendUeCreateReqToMac()"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, macUeCfg, sizeof(MacUeCfg)); } } else { - DU_LOG("\n DU_APP: Memory alloc failed at duBuildAndSendUeCreateReqToMac()"); + DU_LOG("\n ERROR --> DU APP : Memory alloc failed at duBuildAndSendUeCreateReqToMac()"); ret = RFAILED; } return ret; @@ -1613,7 +1613,7 @@ uint8_t duUpdateMacCfg(MacUeCfg *macUeCfg, F1UeContextSetupDb *f1UeDb) freeMacLcCfg(&macUeCfg->lcCfgList[lcDelIdx+1]); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Failed to delete LC at Idx %d in duUpdateMacCfg()", lcDelIdx); + DU_LOG("\nERROR --> DU APP : Failed to delete LC at Idx %d in duUpdateMacCfg()", lcDelIdx); break; } } @@ -1625,7 +1625,7 @@ uint8_t duUpdateMacCfg(MacUeCfg *macUeCfg, F1UeContextSetupDb *f1UeDb) ret = fillMacLcCfgToAddMod(&macUeCfg->lcCfgList[numLcs], &f1UeDb->duUeCfg.macLcCfg[dbIdx]); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Failed to add LC at Idx %d in duUpdateMacCfg()", numLcs); + DU_LOG("\nERROR --> DU APP : Failed to add LC at Idx %d in duUpdateMacCfg()", numLcs); break; } macUeCfg->numLcs++; @@ -1719,7 +1719,7 @@ uint8_t fillRlcCfgToAddMod(RlcBearerCfg *lcCfg, RlcBearerCfg *f1UeDbLcCfg) break; } default: - DU_LOG("\nDU_APP: Invalid Rlc Mode %d at fillRlcCfgToAddMod()", lcCfg->rlcMode); + DU_LOG("\nERROR --> DU_APP: Invalid Rlc Mode %d at fillRlcCfgToAddMod()", lcCfg->rlcMode); return RFAILED; } return ROK; @@ -1768,7 +1768,7 @@ uint8_t duUpdateRlcLcCfg(RlcUeCfg *rlcUeCfg, F1UeContextSetupDb *f1UeDb) freeRlcLcCfg(&rlcUeCfg->rlcLcCfg[lcDelIdx+1]); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Failed to delete LC at Idx %d in duUpdateRlcCfg()", lcDelIdx); + DU_LOG("\nERROR --> DU APP : Failed to delete LC at Idx %d in duUpdateRlcCfg()", lcDelIdx); break; } } @@ -1830,10 +1830,10 @@ uint8_t duUpdateDuUeCbCfg(uint8_t ueIdx, uint8_t cellId) ueCb->macUeCfg.crnti = crnti; ret = duUpdateMacCfg(&ueCb->macUeCfg, ueCb->f1UeDb); if(ret == RFAILED) - DU_LOG("\nDU APP: Failed while updating MAC LC Config at duUpdateDuUeCbCfg()"); + DU_LOG("\nERROR --> DU APP : Failed while updating MAC LC Config at duUpdateDuUeCbCfg()"); } else - DU_LOG("\nDU APP: Failed while updating RLC LC Config at duUpdateDuUeCbCfg()"); + DU_LOG("\nERROR --> DU APP : Failed while updating RLC LC Config at duUpdateDuUeCbCfg()"); } else ret = RFAILED; @@ -1865,13 +1865,13 @@ uint8_t DuProcMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp) { if(pst->event == EVENT_MAC_UE_CREATE_RSP) { - DU_LOG("\nDU APP : MAC UE Create Response : SUCCESS [UE IDX : %d]", cfgRsp->ueIdx); + DU_LOG("\nINFO --> DU APP : MAC UE Create Response : SUCCESS [UE IDX : %d]", cfgRsp->ueIdx); duCb.actvCellLst[cfgRsp->cellId -1]->ueCb[cfgRsp->ueIdx -1].\ macUeCfg.macUeCfgState = UE_CREATE_COMPLETE; } else if(pst->event == EVENT_MAC_UE_RECONFIG_RSP) { - DU_LOG("\nDU APP : MAC UE Reconfig Response : SUCCESS [UE IDX : %d]", cfgRsp->ueIdx); + DU_LOG("\nINFO --> DU APP : MAC UE Reconfig Response : SUCCESS [UE IDX : %d]", cfgRsp->ueIdx); duCb.actvCellLst[cfgRsp->cellId -1]->ueCb[cfgRsp->ueIdx -1].\ macUeCfg.macUeCfgState = UE_RECFG_COMPLETE; if((ret = duUpdateDuUeCbCfg(cfgRsp->ueIdx, cfgRsp->cellId)) == ROK) @@ -1880,7 +1880,7 @@ uint8_t DuProcMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp) } else { - DU_LOG("\nDU APP : MAC UE CFG Response for EVENT[%d]: FAILURE [UE IDX : %d]", pst->event, cfgRsp->ueIdx); + DU_LOG("\nERROR --> DU APP : MAC UE CFG Response for EVENT[%d]: FAILURE [UE IDX : %d]", pst->event, cfgRsp->ueIdx); if(pst->event == EVENT_MAC_UE_RECONFIG_RSP) { //TODO: Send the failure case in Ue Context Setup Response @@ -1891,7 +1891,7 @@ uint8_t DuProcMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp) } else { - DU_LOG("\nDU APP : Received MAC Ue Config Response is NULL at DuProcMacUeCfgRsp()"); + DU_LOG("\nERROR --> DU APP : Received MAC Ue Config Response is NULL at DuProcMacUeCfgRsp()"); ret = RFAILED; } return ret; @@ -1927,7 +1927,7 @@ uint8_t duBuildAndSendUeCreateReqToRlc(uint16_t cellId, uint8_t ueIdx,\ ret = fillRlcUeCfg(cellId, ueIdx, NULL, duRlcUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU_APP: Failed to fill Rlc Ue Cfg at duBuildAndSendUeCreateReqToRlc()"); + DU_LOG("\nERROR --> DU APP : Failed to fill Rlc Ue Cfg at duBuildAndSendUeCreateReqToRlc()"); return ret; } @@ -1939,18 +1939,18 @@ uint8_t duBuildAndSendUeCreateReqToRlc(uint16_t cellId, uint8_t ueIdx,\ memset(rlcUeCfg, 0, sizeof(RlcUeCfg)); memcpy(rlcUeCfg, duRlcUeCfg, sizeof(RlcUeCfg)); /* Processing one Ue at a time to RLC */ - DU_LOG("\nDU_APP: Sending UE create request to RLC UL"); + DU_LOG("\nDEBUG --> DU_APP: Sending UE create request to RLC UL"); ret = (*packRlcUeCreateReqOpts[pst.selector])(&pst, rlcUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU_APP : Failure in sending Ue Create Req to RLC"); + DU_LOG("\nERROR --> DU_APP : Failure in sending Ue Create Req to RLC"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, rlcUeCfg, sizeof(RlcUeCfg)); ret = RFAILED; } } else { - DU_LOG("\n DU_APP: Memory alloc failed at duBuildAndSendUeCreateReqToRlc()"); + DU_LOG("\n ERROR --> DU APP : Memory alloc failed at duBuildAndSendUeCreateReqToRlc()"); ret = RFAILED; } return ret; @@ -1984,13 +1984,13 @@ uint8_t DuProcRlcUeCfgRsp(Pst *pst, RlcUeCfgRsp *cfgRsp) { if(pst->event == EVENT_RLC_UE_CREATE_RSP) { - DU_LOG("\nDU_APP: RLC UE Create Response : SUCCESS [UE IDX:%d]", cfgRsp->ueIdx); + DU_LOG("\nINFO --> DU_APP: RLC UE Create Response : SUCCESS [UE IDX:%d]", cfgRsp->ueIdx); duCb.actvCellLst[cfgRsp->cellId -1]->ueCb[cfgRsp->ueIdx -1].\ rlcUeCfg.rlcUeCfgState = UE_CREATE_COMPLETE; } else if(pst->event == EVENT_RLC_UE_RECONFIG_RSP) { - DU_LOG("\nDU_APP: RLC UE Reconfig Response : SUCCESS [UE IDX:%d]", cfgRsp->ueIdx); + DU_LOG("\nINFO --> DU_APP: RLC UE Reconfig Response : SUCCESS [UE IDX:%d]", cfgRsp->ueIdx); duCb.actvCellLst[cfgRsp->cellId -1]->ueCb[cfgRsp->ueIdx -1].\ rlcUeCfg.rlcUeCfgState = UE_RECFG_COMPLETE; if((ret = duUpdateDuUeCbCfg(cfgRsp->ueIdx, cfgRsp->cellId)) == ROK) @@ -1999,7 +1999,7 @@ uint8_t DuProcRlcUeCfgRsp(Pst *pst, RlcUeCfgRsp *cfgRsp) } else { - DU_LOG("\nDU_APP: RLC UE CFG Response for EVENT[%d] : FAILED [UE IDX : %d, REASON :%d]",\ + DU_LOG("\nERROR --> DU_APP: RLC UE CFG Response for EVENT[%d] : FAILED [UE IDX : %d, REASON :%d]",\ pst->event, cfgRsp->ueIdx, cfgRsp->reason); if((pst->event == EVENT_RLC_UE_RECONFIG_RSP)) { @@ -2011,7 +2011,7 @@ uint8_t DuProcRlcUeCfgRsp(Pst *pst, RlcUeCfgRsp *cfgRsp) } else { - DU_LOG("\nDU_APP: Received RLC Ue Config Response is NULL at DuProcRlcUeCfgRsp()"); + DU_LOG("\nERROR --> DU_APP: Received RLC Ue Config Response is NULL at DuProcRlcUeCfgRsp()"); ret = RFAILED; } return ret; @@ -2049,13 +2049,13 @@ uint8_t duBuildAndSendUeReCfgReqToRlc(uint8_t cellId, uint8_t crnti, DuUeCfg *ue memset(rlcUeCfg, 0, sizeof(RlcUeCfg)); ret = fillRlcUeCfg(cellId, ueIdx, ueCfgDb, rlcUeCfg); if(ret == RFAILED) - DU_LOG("\nDU APP: Failed at duBuildAndSendUeReCfgReqToRlc()"); + DU_LOG("\nERROR --> DU APP : Failed at duBuildAndSendUeReCfgReqToRlc()"); else ret = sendUeReCfgReqToRlc(rlcUeCfg); } else { - DU_LOG("\nDU APP: Memory Alloc failed at duBuildAndSendUeReCfgReqToRlc()"); + DU_LOG("\nERROR --> DU APP : Memory Alloc failed at duBuildAndSendUeReCfgReqToRlc()"); ret = RFAILED; } return ret; @@ -2093,13 +2093,13 @@ uint8_t duBuildAndSendUeReCfgReqToMac(uint8_t cellId, uint8_t crnti, DuUeCfg *ue memset(macUeCfg, 0, sizeof(MacUeCfg)); ret = fillMacUeCfg(cellId, ueIdx, crnti, ueCfgDb, macUeCfg); if(ret == RFAILED) - DU_LOG("\nDU_APP: Failed to fill Mac Ue Cfg at duBuildAndSendUeReCfgReqToMac()"); + DU_LOG("\nERROR --> DU APP : Failed to fill Mac Ue Cfg at duBuildAndSendUeReCfgReqToMac()"); else ret = sendUeReCfgReqToMac(macUeCfg); } else { - DU_LOG("\nDU_APP: Memory alloc failed for macUeCfg at duBuildAndSendUeReCfgReqToMac()"); + DU_LOG("\nERROR --> DU APP : Memory alloc failed for macUeCfg at duBuildAndSendUeReCfgReqToMac()"); ret = RFAILED; } return ret; @@ -2127,16 +2127,16 @@ uint8_t duBuildAndSendUeContextSetupReq(uint16_t cellId, uint16_t crnti, DuUeCfg { uint8_t ret = ROK; - DU_LOG("\nDU_APP: Processing Ue Context Setup Request for cellId [%d]", cellId); + DU_LOG("\nDEBUG --> DU_APP: Processing Ue Context Setup Request for cellId [%d]", cellId); /* Filling RLC Ue Reconfig */ ret = duBuildAndSendUeReCfgReqToRlc(cellId, crnti, duUeCfg); if(ret == RFAILED) - DU_LOG("\nDU_APP: Failed to build ctxt setup req for RLC at duBuildAndSendUeContextSetupReq()"); + DU_LOG("\nERROR --> DU APP : Failed to build ctxt setup req for RLC at duBuildAndSendUeContextSetupReq()"); /* Filling MAC Ue Reconfig */ ret = duBuildAndSendUeReCfgReqToMac(cellId, crnti, duUeCfg); if(ret == RFAILED) - DU_LOG("\nDU_APP: Failed at build ctxt setup req for MAC at duBuildAndSendUeContextSetupReq()"); + DU_LOG("\nERROR --> DU APP : Failed at build ctxt setup req for MAC at duBuildAndSendUeContextSetupReq()"); return ret; } @@ -2172,11 +2172,11 @@ uint8_t DuProcRlcDlRrcMsgRsp(Pst *pst, RlcDlRrcMsgRsp *dlRrcMsg) { ret = duBuildAndSendUeContextSetupReq(dlRrcMsg->cellId, dlRrcMsg->crnti, &ueCb->f1UeDb->duUeCfg); if(ret == RFAILED) - DU_LOG("\nDUAPP: Failed to process UE Context Setup Request in DuProcRlcDlRrcMsgRsp()"); + DU_LOG("\nERROR --> DU APP : Failed to process UE Context Setup Request in DuProcRlcDlRrcMsgRsp()"); } } else - DU_LOG("\nDUAPP: Failed to transmit DL RRC Msg"); + DU_LOG("\nERROR --> DU APP : Failed to transmit DL RRC Msg"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, dlRrcMsg, sizeof(RlcDlRrcMsgRsp)); return ret; @@ -2214,7 +2214,7 @@ uint8_t duProcUeContextSetupRequest(DuUeCb *ueCb) ret = duBuildAndSendDlRrcMsgToRlc(cellId, ueCb->rlcUeCfg, ueCb->f1UeDb->dlRrcMsg); if(ret == RFAILED) { - DU_LOG("\nDU APP : Failed to send DL RRC msg in duProcUeContextSetupRequest()"); + DU_LOG("\nERROR --> DU APP : Failed to send DL RRC msg in duProcUeContextSetupRequest()"); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, ueCb->f1UeDb->dlRrcMsg->rrcMsgPdu,\ ueCb->f1UeDb->dlRrcMsg->rrcMsgSize); DU_FREE_SHRABL_BUF(DU_APP_MEM_REGION, DU_POOL, ueCb->f1UeDb->dlRrcMsg, sizeof(F1DlRrcMsg)); @@ -2226,14 +2226,14 @@ uint8_t duProcUeContextSetupRequest(DuUeCb *ueCb) ret = duBuildAndSendUeContextSetupReq(cellId, ueCb->crnti, &ueCb->f1UeDb->duUeCfg); if(ret == RFAILED) { - DU_LOG("\nDU APP : Failed to build ue context setup Req in duProcUeContextSetupRequest()"); + DU_LOG("\nERROR --> DU APP : Failed to build ue context setup Req in duProcUeContextSetupRequest()"); } } } else { //TODO: To send the failure cause in UeContextSetupRsp - DU_LOG("DU_APP: Failed to process UE CNTXT SETUP REQ at duProcUeContextSetupRequest()"); + DU_LOG("ERROR --> DU APP : Failed to process UE CNTXT SETUP REQ at duProcUeContextSetupRequest()"); } return ret; } -- 2.16.6