Merge "O1 IP PORT configuration for CM .[Issue-Id: ODUHIGH-196]"
authorHariomGupta(HCL) <hariom.g@hcl.com>
Mon, 15 Feb 2021 08:28:31 +0000 (08:28 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Mon, 15 Feb 2021 08:28:31 +0000 (08:28 +0000)
52 files changed:
build/odu/makefile
src/5gnrmac/lwr_mac_fsm.c
src/5gnrmac/mac_cfg_hdl.c
src/5gnrmac/rg_lmm.c
src/5gnrmac/rg_rom.c
src/5gnrsch/rg_sch.c
src/5gnrsch/rg_sch_cfg.c
src/5gnrsch/rg_sch_cmn.c
src/5gnrsch/rg_sch_dbm.c
src/5gnrsch/rg_sch_dhm.c
src/5gnrsch/rg_sch_drx.c
src/5gnrsch/rg_sch_gom.c
src/5gnrsch/rg_sch_hdfdd.c
src/5gnrsch/rg_sch_l2m.c
src/5gnrsch/rg_sch_lmm.c
src/5gnrsch/rg_sch_mga.c
src/5gnrsch/rg_sch_pwr.c
src/5gnrsch/rg_sch_ram.c
src/5gnrsch/rg_sch_sc1.c
src/5gnrsch/rg_sch_scell.c
src/5gnrsch/rg_sch_tmr.c
src/5gnrsch/rg_sch_tom.c
src/5gnrsch/rg_sch_uhm.c
src/5gnrsch/rg_sch_utl.c
src/5gnrsch/sch.c
src/5gnrsch/sch.h
src/5gnrsch/sch_common.c
src/5gnrsch/sch_rach.c
src/5gnrsch/sch_slot_ind.c
src/5gnrsch/sch_ue_mgr.c
src/cm/cm_inet.c
src/cm/cm_mblk.c
src/cm/cm_mem.c
src/cm/cm_tenb_stats.c
src/cm/common_def.h
src/cm/ctf.c
src/cm/du_app_mac_inf.c
src/cm/du_app_mac_inf.h
src/cm/du_app_rlc_inf.c
src/cm/legtp.c
src/cm/lsctp.c
src/cm/mac_sch_interface.h
src/cm/rlc_mac_inf.c
src/cu_stub/cu_f1ap_msg_hdl.c
src/cu_stub/cu_stub.c
src/cu_stub/cu_stub_egtp.c
src/cu_stub/cu_stub_sctp.c
src/du_app/du_cfg.c
src/du_app/du_cfg.h
src/ric_stub/ric_e2ap_msg_hdl.c
src/ric_stub/ric_stub.c
src/ric_stub/ric_stub_sctp.c

index 13adc41..c165fbc 100644 (file)
@@ -73,7 +73,7 @@ endif
 PLTFRM_FLAGS= -UMSPD -DODU -DINTEL_FAPI #-DODU_SLOT_IND_DEBUG_LOG -DEGTP_TEST
 
 ifeq ($(MODE),TDD)
-   PLTFRM_FLAGS += -DMODE=TDD
+   PLTFRM_FLAGS += -DNR_TDD
 endif
 ifeq ($(CA_ENABLE),YES)
    PLTFRM_FLAGS += -DCA_ENABLE=YES
@@ -165,7 +165,7 @@ help:
                @echo -e "$(OPTS)    NODE=TEST_STUB       - Mandatory option for cu_stub/ric_stub$(NORM)"
                @echo -e "$(OPTS)    MODE=TDD             - If not specified, MODE=FDD$(NORM)"
                @echo -e "$(OPTS)    PHY=INTEL_L1         - If not specified, Phy stub is used$(NORM)"
-               @echo -e "$(OPTS)    PHY_MODE=TIMER       - Testing mode for INTEL_L1
+               @echo -e "$(OPTS)    PHY_MODE=TIMER       - Testing mode for INTEL_L1"
                @echo -e "******************************************************************"
 
 prepare_dirs:
index 4ae21cc..168d96c 100644 (file)
@@ -1975,10 +1975,13 @@ uint8_t lwr_mac_procIqSamplesReqEvt(void *msg)
 uint8_t lwr_mac_procConfigReqEvt(void *msg)
 {
 #ifdef INTEL_FAPI
-   //uint8_t idx = 0;
+#ifdef NR_TDD
+   uint8_t slotIdx = 0; 
+   uint8_t symbolIdx =0;
+#endif   
    uint8_t index = 0;
-   uint16_t *cellId;
-   uint16_t cellIdx;
+   uint16_t *cellId =NULLP;
+   uint16_t cellIdx =0;
    uint32_t msgLen = 0;
    uint32_t mib = 0;
    MacCellCfg macCfgParams;
@@ -2140,12 +2143,20 @@ uint8_t lwr_mac_procConfigReqEvt(void *msg)
    //fillTlvs(&configReq->tlvs[index++], FAPI_MULTIPLE_CELLS_SS_PBCH_IN_A_CARRIER_TAG, \
    sizeof(uint8_t), macCfgParams.ssbCfg.multCellCarr, &msgLen);
 
+#ifdef NR_TDD
    /* fill TDD table */
-   //fillTlvs(&configReq->tlvs[index++], FAPI_TDD_PERIOD_TAG,                \
+   fillTlvs(&configReq->tlvs[index++], FAPI_TDD_PERIOD_TAG,                \
    sizeof(uint8_t), macCfgParams.tddCfg.tddPeriod, &msgLen);
-   //fillTlvs(&configReq->tlvs[index++], FAPI_SLOT_CONFIG_TAG,               \
-   sizeof(uint8_t), macCfgParams.tddCfg.slotCfg[0][0], &msgLen);
-
+   for(slotIdx =0 ;slotIdx< MAXIMUM_TDD_PERIODICITY; slotIdx++) 
+   {
+      for(symbolIdx = 0; symbolIdx< MAX_SYMB_PER_SLOT; symbolIdx++)
+      {
+        fillTlvs(&configReq->tlvs[index++], FAPI_SLOT_CONFIG_TAG,               \
+              sizeof(uint8_t), macCfgParams.tddCfg.slotCfg[slotIdx][symbolIdx], &msgLen);
+      }
+   }
+#endif   
+   
    /* fill measurement config */
    //fillTlvs(&configReq->tlvs[index++], FAPI_RSSI_MEASUREMENT_TAG,          \
    sizeof(uint8_t), macCfgParams.rssiUnit, &msgLen);
index a7baf2e..65ca6a8 100644 (file)
@@ -284,6 +284,9 @@ uint8_t MacSchCellCfgReq(Pst *pst, MacCellCfg *macCellCfg)
       macCellCfg->initialUlBwp.puschCommon.startSymbol;
    schCellCfg.schInitialUlBwp.puschCommon.lengthSymbol =
       macCellCfg->initialUlBwp.puschCommon.lengthSymbol;
+#ifdef NR_TDD
+   memcpy(&schCellCfg.tddCfg, &macCellCfg->tddCfg, sizeof(TDDCfg));
+#endif
 
    FILL_PST_MAC_TO_SCH(cfgPst, EVENT_SCH_CELL_CFG);
 
index 5fe6fe3..186599d 100755 (executable)
@@ -236,7 +236,7 @@ RgMngmt  *cfg     /* config structure  */
 
 
 
-   DU_LOG("\nINFO  -->  MAC : Received CfgReq for MAC layer, Entity = %d, Instance = %d\n", pst->srcEnt, pst->srcInst,0,0);
+   DU_LOG("\nINFO  -->  MAC : Received CfgReq for MAC layer, Entity = %d, Instance = %d", pst->srcEnt, pst->srcInst);
 
    RG_IS_INST_VALID(pst->dstInst);
    inst = pst->dstInst - RG_INST_START;
index f0e3b7e..cd20209 100755 (executable)
@@ -544,7 +544,7 @@ static S16 rgROMHndlBcchPcchDatReq(RgCellCb *cell, RgRguCmnDatReq *datReq, RgErr
       return ROK;
    }
 #endif/*RGR_SI_SCH*/
-
+   UNUSED(inst);
    pcch = rgDBMGetPcch(cell);
    if ((pcch) && (pcch->lcId == datReq->lcId))
    {
index 5ad2fcc..a6cf334 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This file implements the schedulers main access to MAC layer code.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=185;
-static int RLOG_MODULE_ID=4096;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -119,7 +116,7 @@ RgMngmt  *cntrl   /* control structure  */
    if (SGetSBuf(cfmPst.region, cfmPst.pool, (Data **)&cfm, sizeof(RgMngmt))
       != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Memory Unavailable for Confirmation");
+      DU_LOG("\nERROR  -->  SCH : Memory Unavailable for Confirmation");
       SPutSBuf(pst->region, pst->pool, (Data *)cntrl, sizeof(RgMngmt));
       return ROK;
    } */
@@ -141,7 +138,7 @@ RgMngmt  *cntrl   /* control structure  */
       cfm.cfm.reason = LCM_REASON_GENCFG_NOT_DONE;
       cfm.hdr.elmId.elmnt = cntrl->hdr.elmId.elmnt;
       RgMiLrgSchCntrlCfm(&cfmPst, &cfm);
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Gen Cfg not done.");
+      DU_LOG("\nERROR  -->  SCH : Gen Cfg not done.");
       /*      SPutSBuf(pst->region, pst->pool, (Data *)cntrl, sizeof(RgMngmt)); */
       return ROK;
    }
@@ -160,7 +157,7 @@ RgMngmt  *cntrl   /* control structure  */
          cfm.cfm.status = LCM_PRIM_NOK;
          cfm.cfm.reason = LCM_REASON_INVALID_PAR_VAL;
          RgMiLrgSchCntrlCfm(&cfmPst, &cfm);
-         RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "invalid elmnt=%d",
+         DU_LOG("\nERROR  -->  SCH : invalid elmnt=%d",
                   cntrl->hdr.elmId.elmnt);
          break;
    }
@@ -226,8 +223,7 @@ LrgSchMeasReqInfo *measInfo /* Meas Req Info */
       rgSchL2mFillCfmPst(pst, &cfmPst, measInfo);
       RGSCHFILLERR(err, RGSCHERR_L2M_MEASREQ, RGSCHERR_SCH_INVALID_CELLID);
       rgSchL2mSndCfm(&cfmPst, NULLP, measInfo, TRUE);
-      RLOG_ARG2(L_ERROR,DBG_INSTID,inst, 
-               "Meas req Failed.Invalid Cell Id errType(%d) errCause(%d)",
+      DU_LOG("\nERROR  -->  SCH : Meas req Failed.Invalid Cell Id errType(%d) errCause(%d)",
                err.errType, err.errCause);
       return RFAILED;
    }
@@ -237,8 +233,7 @@ LrgSchMeasReqInfo *measInfo /* Meas Req Info */
       rgSchL2mFillCfmPst(pst, &cfmPst, measInfo);
       RGSCHFILLERR(err, RGSCHERR_L2M_MEASREQ, RGSCHERR_SCH_INVALID_MEASTYPE);
       rgSchL2mSndCfm(&cfmPst, NULLP, measInfo, TRUE);
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-               "Meas req Failed.Invalid Measurement Type"
+      DU_LOG("\nERROR  -->  SCH : Meas req Failed.Invalid Measurement Type"
                "errCasue(%d) errType(%d)", err.errType, err.errCause);
       return RFAILED;
    }
@@ -255,8 +250,7 @@ LrgSchMeasReqInfo *measInfo /* Meas Req Info */
          rgSchL2mFillCfmPst(pst, &cfmPst, measInfo);
          RGSCHFILLERR(err, RGSCHERR_L2M_MEASREQ, RGSCHERR_SCH_DUP_TRANSID);
          rgSchL2mSndCfm(&cfmPst, measCb, measInfo, TRUE);
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-                  "Meas req Failed.Dublicate TransId"
+         DU_LOG("\nERROR  -->  SCH : Meas req Failed Duplicate TransId"
                   "errType(%d) errCause(%d)", err.errType, err.errCause);
          return RFAILED;
       }
@@ -269,8 +263,7 @@ LrgSchMeasReqInfo *measInfo /* Meas Req Info */
       rgSchL2mFillCfmPst(pst, &cfmPst, measInfo);
       RGSCHFILLERR(err, RGSCHERR_L2M_MEASREQ, RGSCHERR_SCH_L2MEAS_FAILED);
       rgSchL2mSndCfm(&cfmPst, measCb, measInfo, TRUE);
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, 
-               "Meas req Failed.errType(%d) errCause(%d)",
+      DU_LOG("\nERROR  -->  SCH : Meas req Failed.errType(%d) errCause(%d)",
                err.errType, err.errCause);
       return RFAILED;
    }
@@ -317,8 +310,7 @@ LrgSchMeasStopReqInfo *measInfo /* Meas Req Info */
    }
    if (cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
-               "Stop req Failed.Invalid Cell Id ");
+      DU_LOG("\nERROR  -->  SCH : Stop req Failed.Invalid Cell Id ");
       return RFAILED;
    }
    memset(&measCfm, 0, sizeof(LrgSchMeasCfmInfo));
@@ -390,8 +382,7 @@ LrgSchMeasSndReqInfo *measInfo /* Meas Req Info */
    }
    if (cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
-               "Send req Failed.Invalid Cell Id");
+      DU_LOG("\nERROR  -->  SCH : Send req Failed.Invalid Cell Id");
       return RFAILED;
    }
 
@@ -467,7 +458,7 @@ S16 RgUiRgrBndReq(Pst   *pst, SuId  suId, SpId  spId)
          /* This case might not be needed if SAP not configured then it will go
           * to else of above if condition */
          case LRG_UNBND: /* SAP is not bound */
-            RLOG0(L_DEBUG,"SAP Not yet bound");
+            DU_LOG("\nDEBUG  -->  SCH : SAP Not yet bound");
             rgSchCb[instId].rgrSap[spId].sapSta.sapState = LRG_BND;
             rgSchCb[instId].rgrSap[spId].sapCfg.suId = suId;
             /* Send Bind Confirm with status as SUCCESS */
@@ -478,14 +469,12 @@ S16 RgUiRgrBndReq(Pst   *pst, SuId  suId, SpId  spId)
                   LRG_EVENT_RGRSAP_ENB, LCM_CAUSE_UNKNOWN, &dgn);
             break;
          case LRG_BND: /* SAP is already bound*/
-            RLOG0(L_DEBUG,"SAP is already bound");
+            DU_LOG("\nDEBUG  -->  SCH : SAP is already bound");
             ret = rgSCHUtlRgrBndCfm(instId, suId, CM_BND_OK);
             break;
          default: /* Should Never Enter here */
 #if (ERRCLASS & ERRCLS_ADD_RES) 
-            RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG001, 
-                  (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-                  "Invalid SAP State:RgUiRrgBndReq failed\n");
+            DU_LOG("\nERROR  -->  SCH : Invalid SAP State:RgUiRrgBndReq failed\n");
 #endif
             ret = rgSCHUtlRgrBndCfm(instId, suId, CM_BND_NOK);
             break;
@@ -496,8 +485,7 @@ S16 RgUiRgrBndReq(Pst   *pst, SuId  suId, SpId  spId)
 #if (ERRCLASS & ERRCLS_ADD_RES)      
       /* ccpu00117035 - MOD - Changed ErrVal argument from accessing sap state 
          to spId to avoid seg fault due to invalid sapID */
-      RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG002,
-            (ErrVal)spId, "Invalid SAP Id:RgUiRrgBndReq failed\n");
+          DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:RgUiRrgBndReq failed\n");
 #endif
       ret = RgUiRgrBndCfm(&tmpPst, suId, CM_BND_NOK);
    }
@@ -533,15 +521,13 @@ S16 RgUiRgrUbndReq(Pst *pst,SpId spId,Reason reason)
       switch(rgSchCb[instId].rgrSap[spId].sapSta.sapState)
       {
          case LRG_BND: /* SAP is already bound*/
-            RLOG0(L_DEBUG,"SAP is already bound");
+            DU_LOG("\nDEBUG  -->  SCH : SAP is already bound");
             /* setting SAP state to UN BOUND */
             rgSchCb[instId].rgrSap[spId].sapSta.sapState = LRG_UNBND;
             break;
          default:
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-            RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG003,
-                  (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-                  "Invalid SAP State: RgUiRgrUbndReq failed\n");
+            DU_LOG("\nERROR  -->  SCH : Invalid SAP State RgUiRgrUbndReq failed\n");
 #endif
             return RFAILED;
       }
@@ -549,9 +535,7 @@ S16 RgUiRgrUbndReq(Pst *pst,SpId spId,Reason reason)
    else
    {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-      RGSCHLOGERROR(instId,ERRCLS_INT_PAR, ERG004, 
-            (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-            "Invalid SAP Id:RgUiRgrUbndReq failed\n");
+      DU_LOG("\nERROR  -->  SCH : Invalid SAP Id RgUiRgrUbndReq failed\n");
 #endif
       return RFAILED;
    }
@@ -593,8 +577,7 @@ S16 RgUiRgrSiCfgReq(Pst *pst, SpId  spId,RgrCfgTransId transId,RgrSiCfgReqInfo *
 
    if (cfgReqInfo == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer "
-                   "is NULL");
+      DU_LOG("\nERROR  -->  SCH : Input Message Buffer is NULL");
       rgSCHUtlRgrSiCfgCfm(instId, spId, transId, cfmStatus); 
       return RFAILED;
    }
@@ -604,9 +587,7 @@ S16 RgUiRgrSiCfgReq(Pst *pst, SpId  spId,RgrCfgTransId transId,RgrSiCfgReqInfo *
       if(LRG_BND != rgSchCb[instId].rgrSap[spId].sapSta.sapState)
       {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-         RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG007, 
-                  (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-                  "Invalid SAP State: RgUiRgrSiCfgReq failed\n");
+         DU_LOG("\nERROR  -->  SCH : Invalid SAP State: RgUiRgrSiCfgReq failed\n");
 #endif
          SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo,
                                           (Size)sizeof(*cfgReqInfo));
@@ -617,9 +598,7 @@ S16 RgUiRgrSiCfgReq(Pst *pst, SpId  spId,RgrCfgTransId transId,RgrSiCfgReqInfo *
    else
    {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-      RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG008,
-            (ErrVal)rgSchCb[instId].rgrSap[spId].sapCfg.spId,
-            "Invalid SAP Id:RgUiRgrSiCfgReq failed\n");
+      DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:RgUiRgrSiCfgReq failed\n");
 #endif
       SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo,
                                    (Size)sizeof(*cfgReqInfo));
@@ -648,7 +627,7 @@ else
  #endif
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"RgUiRgrSiCfgReq:"
+      DU_LOG("\nERROR  -->  SCH : RgUiRgrSiCfgReq:"
                    "Configuration Request Handling Failed");
       return RFAILED;
    }
@@ -690,7 +669,7 @@ S16 RgUiRgrWarningSiCfgReq(Pst *pst, SpId spId,RgrCfgTransId transId,RgrWarningS
 
    if (warningSiCfgReqInfo == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer "
+      DU_LOG("\nERROR  -->  SCH : Input Message Buffer "
                "is NULL");
       rgSCHUtlRgrWarningSiCfgCfm(instId, spId, 0, transId, cfmStatus);
       return RFAILED;
@@ -701,9 +680,7 @@ S16 RgUiRgrWarningSiCfgReq(Pst *pst, SpId spId,RgrCfgTransId transId,RgrWarningS
       if(LRG_BND != rgSchCb[instId].rgrSap[spId].sapSta.sapState)
       {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-         RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG023, 
-               (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-               "Invalid SAP State: warningSiCfgReqInfo failed\n");
+         DU_LOG("\nERROR  -->  SCH : Invalid SAP State: warningSiCfgReqInfo failed\n");
 #endif
          rgSCHUtlFreeWarningSiSeg(pst->region, pst->pool, 
                &warningSiCfgReqInfo->siPduLst);
@@ -717,9 +694,7 @@ S16 RgUiRgrWarningSiCfgReq(Pst *pst, SpId spId,RgrCfgTransId transId,RgrWarningS
    else
    {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-      RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG024,
-            (ErrVal)rgSchCb[instId].rgrSap[spId].sapCfg.spId,
-            "Invalid SAP Id:warningSiCfgReqInfo failed\n");
+       DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:warningSiCfgReqInfo failed\n");
 #endif
       rgSCHUtlFreeWarningSiSeg(pst->region, pst->pool, 
             &warningSiCfgReqInfo->siPduLst);
@@ -748,8 +723,7 @@ else
 #endif
    if(ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,
-               "Configuration Request Handling Failed");
+      DU_LOG("\nERROR  -->  SCH : Configuration Request Handling Failed");
       return RFAILED;
    }
 
@@ -786,9 +760,7 @@ S16 RgUiRgrWarningSiStopReq(Pst *pst,SpId  spId,RgrCfgTransId transId,uint8_t si
       if(LRG_BND != rgSchCb[instId].rgrSap[spId].sapSta.sapState)
       {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-         RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG025, 
-               (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-               "Invalid SAP State: RgUiRgrWarningSiStopReq failed\n");
+         DU_LOG("\nERROR  -->  SCH : Invalid SAP State: RgUiRgrWarningSiStopReq failed\n");
 #endif
          return RFAILED;
       }
@@ -796,9 +768,7 @@ S16 RgUiRgrWarningSiStopReq(Pst *pst,SpId  spId,RgrCfgTransId transId,uint8_t si
    else
    {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-      RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG026,
-            (ErrVal)rgSchCb[instId].rgrSap[spId].sapCfg.spId,
-            "Invalid SAP Id:RgUiRgrWarningSiStopReq failed\n");
+      DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:RgUiRgrWarningSiStopReq failed\n");
 #endif
       return RFAILED;
    }
@@ -845,7 +815,7 @@ S16 RgUiRgrLoadInfReq(Pst *pst, SpId spId, RgrCfgTransId  transId,RgrLoadInfReqI
 
    if (loadInfReq == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer "
+      DU_LOG("\nERROR  -->  SCH : Input Message Buffer "
                "is NULL");
       return RFAILED;
    }
@@ -855,9 +825,7 @@ S16 RgUiRgrLoadInfReq(Pst *pst, SpId spId, RgrCfgTransId  transId,RgrLoadInfReqI
       if(LRG_BND != rgSchCb[instId].rgrSap[spId].sapSta.sapState)
       {
 #if (ERRCLASS & ERRCLS_ADD_RES)
-         RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG007, 
-               (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
-               "Invalid SAP State: RgUiRgrLoadInfReq failed\n");
+         DU_LOG("\nERROR  -->  SCH : Invalid SAP State: RgUiRgrLoadInfReq failed\n");
 #endif
          SPutSBuf(pst->region, pst->pool, (Data *)loadInfReq,
                (Size)sizeof(*loadInfReq));
@@ -867,9 +835,7 @@ S16 RgUiRgrLoadInfReq(Pst *pst, SpId spId, RgrCfgTransId  transId,RgrLoadInfReqI
    else
    {
 #if (ERRCLASS & ERRCLS_ADD_RES)
-      RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG008,
-            (ErrVal)rgSchCb[instId].rgrSap[spId].sapCfg.spId,
-            "Invalid SAP Id:RgUiRgrLoadInfReq failed\n");
+      DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:RgUiRgrLoadInfReq failed\n");
 #endif
       SPutSBuf(pst->region, pst->pool, (Data *)loadInfReq,
             (Size)sizeof(*loadInfReq));
@@ -882,8 +848,7 @@ S16 RgUiRgrLoadInfReq(Pst *pst, SpId spId, RgrCfgTransId  transId,RgrLoadInfReqI
          loadInfReq);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,
-               "Configuration Request Handling Failed");
+      DU_LOG("\nERROR  -->  SCH : Configuration Request Handling Failed");
       return RFAILED;
    }
 
@@ -919,7 +884,7 @@ S16 RgMacSchDedBoUpdtReq(Pst*  pst,RgInfDedBoRpt  *boRpt)
    Inst          inst = (pst->dstInst - SCH_INST_START);
    S16           cellSapId = boRpt->cellSapId;
 /*
-   RLOG_ARG2(L_DEBUG,DBG_CELLID,boRpt->cellId,"rgMacSchDedBoUpdtReq():"
+   DU_LOG("\nDEBUG  -->  SCH : rgMacSchDedBoUpdtReq():"
             " boRpt->rnti = %u  boRpt->lcId = %u",boRpt->rnti, boRpt->lcId);
 */
    /* No need to chk for cell being NULL as MAC wouldn't have found instance if
@@ -930,8 +895,7 @@ S16 RgMacSchDedBoUpdtReq(Pst*  pst,RgInfDedBoRpt  *boRpt)
    if (cell->cellId != boRpt->cellId)
    {
       /* Handle Cell fetch failure */
-      RGSCHLOGERROR(inst, ERRCLS_INT_PAR,ERG009,(ErrVal)boRpt->cellId,
-                            "rgMacSchDedBoUpdtReq(): Invalid cell Id");
+      DU_LOG("\nERROR  -->  SCH : rgMacSchDedBoUpdtReq(): Invalid cell Id");
       return RFAILED;
    }
 #endif
@@ -1046,7 +1010,7 @@ S16 RgMacSchCmnBoUpdtReq(Pst* pst,RgInfCmnBoRpt  *boRpt)
    cell = rgSchCb[inst].rgrSap[cellSapId].cell;
    if (cell->cellId != boRpt->cellId)
    {
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,"RgMacSchCmnBoUpdtReq():"
+      DU_LOG("\nERROR  -->  SCH : RgMacSchCmnBoUpdtReq():"
                "Invalid boRpt cell Id:%d",boRpt->cellId);
       return RFAILED;
    }
@@ -1054,7 +1018,7 @@ S16 RgMacSchCmnBoUpdtReq(Pst* pst,RgInfCmnBoRpt  *boRpt)
    /* handle status response on CCCH */
    if(boRpt->lcId == cell->dlCcchId)
    {
-      RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,"RgMacSchCmnBoUpdtReq():"
+      DU_LOG("\nDEBUG  -->  SCH : RgMacSchCmnBoUpdtReq():"
                " BO update for CCCH");
       rgSCHUtlHndlCcchBoUpdt(cell, boRpt); 
    }
@@ -1091,7 +1055,7 @@ S16 RgMacSchUeDelInd(Pst* pst,RgInfUeDelInd *ueDelInd)
    
    if (rgSchCb[inst].rgrSap == NULLP || rgSchCb[inst].rgrSap[cellSapId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,ueDelInd->cellId,"rgrSap or cell is not configured");
+      DU_LOG("\nERROR  -->  SCH : rgrSap or cell is not configured");
       return ROK;
    }
    cell = rgSchCb[inst].rgrSap[cellSapId].cell;
@@ -1099,8 +1063,7 @@ S16 RgMacSchUeDelInd(Pst* pst,RgInfUeDelInd *ueDelInd)
    if (cell->cellId != ueDelInd->cellId)
    {
       /* Handle Cell fetch failure */
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                       "rgMacSchUeDelInd(): Invalid ueDelInd cell Id:%d",
+      DU_LOG("\nERROR  -->  SCH : rgMacSchUeDelInd(): Invalid ueDelInd cell Id:%d",
                         ueDelInd->cellId);
       return ROK;
    }
@@ -1116,8 +1079,7 @@ S16 RgMacSchUeDelInd(Pst* pst,RgInfUeDelInd *ueDelInd)
          cmLListDelFrm(&cell->rntiDb.rntiGuardPool, tmp);
          tmp->node = NULLP;
          rgSCHDbmRlsRnti(cell, rntiLnk);
-        RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
-                 "RNTI:%d Released from the Guard pool(%ld)",
+         DU_LOG("\nDEBUG  -->  SCH : RNTI:%d Released from the Guard pool(%d)",
                  ueDelInd->rnti, cell->rntiDb.rntiGuardPool.count);
         
          break;
@@ -1132,8 +1094,8 @@ S16 RgMacSchUeDelInd(Pst* pst,RgInfUeDelInd *ueDelInd)
    if(tmp == NULLP)
    {
       /* Fix : syed HO UE does not have a valid ue->rntiLnk */
-      RLOG_ARG2(L_INFO,DBG_CELLID,ueDelInd->cellId,"HO CRNTI:%d not present in the"
-           "Guard Pool:%ld", ueDelInd->rnti, cell->rntiDb.rntiGuardPool.count);
+      DU_LOG("\nINFO  -->  SCH : HO CRNTI:%d not present in the"
+           "Guard Pool:%d", ueDelInd->rnti, cell->rntiDb.rntiGuardPool.count);
    } 
    
    return ROK;
@@ -1226,8 +1188,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
          {
             RGSCH_FREE_MEM(subfrmInfo);
             err.errType = RGSCHERR_TOM_DATIND;
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                      "Received MSG3 with CRNTI:%d and also CCCH ", 
+            DU_LOG("\nDEBUG  -->  SCH : Received MSG3 with CRNTI:%d and also CCCH ", 
                      datInd->ceInfo.ces.cRnti);
             return RFAILED;
          }
@@ -1239,7 +1200,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
             /* ccpu00141318 - Removed condition for SPS rnti checking*/
             RGSCH_FREE_MEM(subfrmInfo);
             err.errType = RGSCHERR_TOM_DATIND;
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Received MSG3 "
+            DU_LOG("\nERROR  -->  SCH : Received MSG3 "
                      "with CRNTI:%d unable to find ueCb", 
                      datInd->ceInfo.ces.cRnti);
             return RFAILED;
@@ -1250,7 +1211,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
          { 
             RGSCH_FREE_MEM(subfrmInfo);
             err.errType = RGSCHERR_TOM_DATIND;
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Processing for MSG3 failed for CRNTI:%d", 
+            DU_LOG("\nERROR  -->  SCH : Processing for MSG3 failed for CRNTI:%d", 
                      datInd->rnti);
             return RFAILED;
          }
@@ -1275,8 +1236,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
             ret = rgSCHUtlFillSndUeStaInd(cell, ue, ueStaInd);
             if(ret != ROK)
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                   "Could not Send Ue Sta Ind UEID:%d",ue->ueId);
+               DU_LOG("\nERROR  -->  SCH : Could not Send Ue Sta Ind UEID:%d",ue->ueId);
             }
          }
          CM_LLIST_NEXT_NODE(lnkLst, tmp);
@@ -1297,7 +1257,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
          { 
             RGSCH_FREE_MEM(subfrmInfo);
             err.errType = RGSCHERR_TOM_DATIND;
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Processing for MSG3 failed for CRNTI:%d", 
+            DU_LOG("\nERROR  -->  SCH : Processing for MSG3 failed for CRNTI:%d", 
                      datInd->rnti);
             return RFAILED;
          }
@@ -1317,7 +1277,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
             {
                RGSCH_FREE_MEM(subfrmInfo);
                err.errType = RGSCHERR_TOM_DATIND;
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the UE CB for CRNTI:%d", 
+               DU_LOG("\nERROR  -->  SCH : Unable to get the UE CB for CRNTI:%d", 
                datInd->rnti);
                return RFAILED;
             }
@@ -1381,7 +1341,7 @@ S16 RgMacSchSfRecpInd(Pst*  pst,RgInfSfDatInd *subfrmInfo)
       {
          RGSCH_FREE_MEM(subfrmInfo);
          err.errType = RGSCHERR_TOM_DATIND;
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to handle Data"
+         DU_LOG("\nERROR  -->  SCH : Unable to handle Data"
                    " Indication for UEID:%d",ue->ueId);
          return RFAILED;
       }
@@ -1435,15 +1395,13 @@ S16 RgMacSchSpsRelInd(Pst *pst,RgInfSpsRelInfo *relInfo)
 
    if ((ue = rgSCHDbmGetUeCb(cell, relInfo->cRnti)) == NULLP)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-           "No Ue exists with CRNTI:%d",relInfo->cRnti);
+      DU_LOG("\nERROR  -->  SCH : No Ue exists with CRNTI:%d",relInfo->cRnti);
       return RFAILED;
    }
 
    if ((rgSCHUtlSpsRelInd(cell, ue, relInfo->isExplRel)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-           "RelInd processing for CRNTI:%d failed",relInfo->cRnti);
+      DU_LOG("\nERROR  -->  SCH : RelInd processing for CRNTI:%d failed",relInfo->cRnti);
       return RFAILED;
    }
    return ROK;
@@ -1499,8 +1457,7 @@ S16 RgMacSchL2MeasCfm(Pst *pst, RgInfL2MeasCfm *measCfm)
    /* If no cellCb return Err with Invalid Cell Id */
    if (cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,measCfm->cellId,
-                  "Meas Cfm Failed.Invalid Cell Id");
+      DU_LOG("\nERROR  -->  SCH : Meas Cfm Failed.Invalid Cell Id");
       return RFAILED;
    }
    
@@ -1631,7 +1588,7 @@ S16 RgLiTfuSchBndCfm (Pst *pst,SuId suId, uint8_t status)
 
    if(suId >= rgSchCb[instId].numSaps)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId, "Incorrect SuId");
+      DU_LOG("\nERROR  -->  SCH : Incorrect SuId");
       return RFAILED;
    }
    /* Lets validate suId first */
@@ -1639,7 +1596,7 @@ S16 RgLiTfuSchBndCfm (Pst *pst,SuId suId, uint8_t status)
 
    if (suId != tfuSap->sapCfg.suId)
    {
-      RLOG_ARG2(L_ERROR,DBG_INSTID,instId, "Incorrect SuId. Configured (%d)"
+      DU_LOG("\nERROR  -->  SCH : Incorrect SuId. Configured (%d)"
             "Recieved (%d)", tfuSap->sapCfg.suId, suId);
       return RFAILED;
    }
@@ -1672,7 +1629,7 @@ S16 RgLiTfuRaReqInd(Pst *pst,SuId suId, TfuRaReqIndInfo *raReqInd)
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_INSTID,inst,"SAP Validation failed SuId(%d)", suId);
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed SuId(%d)", suId);
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(raReqInd);
       return (ret);
@@ -1680,13 +1637,13 @@ S16 RgLiTfuRaReqInd(Pst *pst,SuId suId, TfuRaReqIndInfo *raReqInd)
 
    if(raReqInd == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"Invalid input pointer for raReqInd Failed");
+      DU_LOG("\nERROR  -->  SCH : Invalid input pointer for raReqInd Failed");
       return RFAILED;
    }
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,raReqInd->cellId,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
 
@@ -1722,7 +1679,7 @@ S16 RgLiTfuUlCqiInd(Pst *pst, SuId suId, TfuUlCqiIndInfo *ulCqiInd)
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(ulCqiInd);
       return (ret);
@@ -1730,7 +1687,7 @@ S16 RgLiTfuUlCqiInd(Pst *pst, SuId suId, TfuUlCqiIndInfo *ulCqiInd)
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(ulCqiInd);
       return RFAILED;
@@ -1765,7 +1722,7 @@ S16 RgLiTfuPucchDeltaPwrInd(Pst *pst,SuId suId,TfuPucchDeltaPwrIndInfo *pucchDel
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(pucchDeltaPwr);
       return (ret);
@@ -1773,7 +1730,7 @@ S16 RgLiTfuPucchDeltaPwrInd(Pst *pst,SuId suId,TfuPucchDeltaPwrIndInfo *pucchDel
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
    ret = rgSCHTomPucchDeltaPwrInd (rgSchCb[inst].tfuSap[suId].cell, pucchDeltaPwr);
@@ -1811,14 +1768,14 @@ S16 RgLiTfuHqInd(Pst *pst, SuId suId, TfuHqIndInfo *harqAckInd)
 #ifndef NO_ERRCLS
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       RGSCH_FREE_MEM(harqAckInd);
       return (ret);
    }
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
 #endif
@@ -1857,14 +1814,14 @@ S16 RgLiTfuSrInd(Pst *pst, SuId suId, TfuSrIndInfo *srInd)
 #ifndef NO_ERRCLS
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"() SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH :  SAP Validation failed");
       RGSCH_FREE_MEM(srInd);
       return (ret);
    }
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"RgLiTfuSrInd()No cell exists");
+      DU_LOG("\nERROR  -->  SCH : RgLiTfuSrInd()No cell exists");
       return RFAILED;
    }
 #endif
@@ -1901,7 +1858,7 @@ S16 RgLiTfuDlCqiInd(Pst *pst, SuId suId, TfuDlCqiIndInfo *dlCqiInd)
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst," SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(dlCqiInd);
       return (ret);
@@ -1909,7 +1866,7 @@ S16 RgLiTfuDlCqiInd(Pst *pst, SuId suId, TfuDlCqiIndInfo *dlCqiInd)
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
    ret = rgSCHTomDlCqiInd (rgSchCb[inst].tfuSap[suId].cell, dlCqiInd);
@@ -1945,7 +1902,7 @@ S16 RgLiTfuRawCqiInd(Pst *pst, SuId suId, TfuRawCqiIndInfo *rawCqiInd)
 #ifdef NO_ERRCLS
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(rawCqiInd);
       return (ret);
@@ -1953,7 +1910,7 @@ S16 RgLiTfuRawCqiInd(Pst *pst, SuId suId, TfuRawCqiIndInfo *rawCqiInd)
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst," No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
 #endif
@@ -1988,7 +1945,7 @@ S16 RgLiTfuSrsInd(Pst *pst, SuId suId, TfuSrsIndInfo *srsInd)
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst," SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH :  SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(srsInd);
       return (ret);
@@ -1996,7 +1953,7 @@ S16 RgLiTfuSrsInd(Pst *pst, SuId suId, TfuSrsIndInfo *srsInd)
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
    ret = rgSCHTomSrsInd (rgSchCb[inst].tfuSap[suId].cell, srsInd);
@@ -2032,7 +1989,7 @@ S16 RgLiTfuDoaInd(Pst *pst, SuId suId, TfuDoaIndInfo *doaInd)
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(doaInd);
       return (ret);
@@ -2040,7 +1997,7 @@ S16 RgLiTfuDoaInd(Pst *pst, SuId suId, TfuDoaIndInfo *doaInd)
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
    ret = rgSCHTomDoaInd (rgSchCb[inst].tfuSap[suId].cell, doaInd);
@@ -2077,14 +2034,14 @@ gettimeofday(&start6, NULL);
 #ifndef NO_ERRCLS
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       RGSCH_FREE_MEM(crcInd);
       return (ret);
    }
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
 #endif
@@ -2123,7 +2080,7 @@ S16 RgLiTfuTimingAdvInd(Pst *pst, SuId suId, TfuTimingAdvIndInfo *timingAdvInd)
 
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       /* Free up the memory for the request structure */
       RGSCH_FREE_MEM(timingAdvInd);
       return (ret);
@@ -2131,7 +2088,7 @@ S16 RgLiTfuTimingAdvInd(Pst *pst, SuId suId, TfuTimingAdvIndInfo *timingAdvInd)
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
    /* Now call the TOM (Tfu ownership module) primitive to process further */
@@ -2194,7 +2151,7 @@ S16 RgUiRgmBndReq(Pst *pst,SuId  suId,SpId  spId)
          /* This case might not be needed if SAP not configured then it will go
           * to else of above if condition */
          case LRG_UNBND: /* SAP is not bound */
-                RLOG0(L_DEBUG,"SAP is not yet bound");
+           DU_LOG("\nDEBUG  -->  SCH : SAP is not yet bound");
             rgSchCb[instId].rgmSap[spId].sapSta.sapState = LRG_BND;
             rgSchCb[instId].rgmSap[spId].sapCfg.suId = suId;
             /* Send Bind Confirm with status as SUCCESS */
@@ -2202,14 +2159,12 @@ S16 RgUiRgmBndReq(Pst *pst,SuId  suId,SpId  spId)
              /*Indicate to Layer manager  */
             break;
          case LRG_BND: /* SAP is already bound*/
-                RLOG0(L_DEBUG,"SAP is already bound");
+           DU_LOG("\nDEBUG  -->  SCH : SAP is already bound");
             ret = rgSCHUtlRgmBndCfm(instId, suId, CM_BND_OK);
             break;
          default: /* Should Never Enter here */
 #if (ERRCLASS & ERRCLS_ADD_RES) 
-            RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG001, 
-                 (ErrVal)rgSchCb[instId].rgmSap[spId].sapSta.sapState,
-                  "Invalid SAP State:RgUiRgmBndReq failed\n");
+            DU_LOG("\nERROR  -->  SCH : Invalid SAP State:RgUiRgmBndReq failed\n");
 #endif
             ret = rgSCHUtlRgmBndCfm(instId, suId, CM_BND_NOK);
             break;
@@ -2220,8 +2175,7 @@ S16 RgUiRgmBndReq(Pst *pst,SuId  suId,SpId  spId)
 #if (ERRCLASS & ERRCLS_ADD_RES)      
 /* ccpu00117035 - MOD - Changed ErrVal argument from accessing sap state 
    to spId to avoid seg fault due to invalid sapID */
-      RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG002,
-            (ErrVal)spId, "Invalid SAP Id:RgUiRrmBndReq failed\n");
+      DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:RgUiRrmBndReq failed\n");
 #endif
       ret = RgUiRgmBndCfm(&tmpPst, suId, CM_BND_NOK);
    }
@@ -2258,14 +2212,12 @@ S16 RgUiRgmUbndReq(Pst    *pst,SpId   spId,Reason reason)
       {
          case LRG_BND: /* SAP is already bound*/
             /* setting SAP state to UN BOUND */
-                RLOG0(L_DEBUG,"SAP is already bound");
+                DU_LOG("\nDEBUG  -->  SCH : SAP is already bound");
             rgSchCb[instId].rgmSap[spId].sapSta.sapState = LRG_UNBND;
             break;
          default:
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-            RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG003,
-                   (ErrVal)rgSchCb[instId].rgmSap[spId].sapSta.sapState,
-                  "Invalid SAP State: RgUiRgmUbndReq failed\n");
+            DU_LOG("\nERROR  -->  SCH : Invalid SAP State: RgUiRgmUbndReq failed\n");
 #endif
             return RFAILED;
       }
@@ -2273,9 +2225,7 @@ S16 RgUiRgmUbndReq(Pst    *pst,SpId   spId,Reason reason)
    else
    {
 #if (ERRCLASS & ERRCLS_ADD_RES)      
-      RGSCHLOGERROR(instId,ERRCLS_INT_PAR, ERG004, 
-            (ErrVal)rgSchCb[instId].rgmSap[spId].sapSta.sapState,
-            "Invalid SAP Id:RgUiRgmUbndReq failed\n");
+      DU_LOG("\nERROR  -->  SCH : Invalid SAP Id:RgUiRgmUbndReq failed\n");
 #endif
       return RFAILED;
    }
@@ -2318,9 +2268,7 @@ S16 RgUiRgmCfgPrbRprt(Pst   *pst, SpId  spId,RgmPrbRprtCfg *prbRprtCfg)
    /* clear the qciPrbRpts for all GBR QCIs */
    memset(&prbUsage->qciPrbRpts[0], 0, 
              (RGM_MAX_QCI_REPORTS * sizeof(RgSchQciPrbUsage)));
-
-   RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
-            "RgUiRgmCfgPrbRprt config type %d with the report period %d",
+   DU_LOG("\nDEBUG  -->  SCH : RgUiRgmCfgPrbRprt config type %d with the report period %d",
             prbUsage->prbRprtEnabld,prbUsage->rprtPeriod);
 
    /* ccpu00134393 : mem leak fix */
@@ -2359,13 +2307,13 @@ S16 RgLiTfuErrInd(Pst *pst, SuId suId, TfuErrIndInfo  *errInd)
    if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
    {
 
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
+      DU_LOG("\nERROR  -->  SCH : SAP Validation failed");
       return (ret);
    }
 
    if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
+      DU_LOG("\nERROR  -->  SCH : No cell exists");
       return RFAILED;
    }
 #endif
index e66826e..2bbecc2 100755 (executable)
@@ -484,25 +484,25 @@ RgrSchedEnbCfg   *schedEnbCfg,
 RgSchErrInfo     *errInfo
 )
 {
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "VALIDATE RGR SCH ENB CONFIG: \n"));
+   DU_LOG("\nDEBUG  -->  SCH : VALIDATE RGR SCH ENB CONFIG: \n");
 
    errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_ENB_CFG;
 
    // TODO
    if ((rgSCHCfgVldtRgrSchCfg(inst, schedEnbCfg)) != ROK)
    {
-      RGSCHDBGERR(inst, (rgSchPBuf(inst), "Validation for scheduler related "
-                          "config failed\n"));
+      DU_LOG("\nERROR  -->  SCH : Validation for scheduler related "
+                          "config failed\n");
       return RFAILED;
    }
 
-   RLOG1(L_INFO, "MIMO_DBG:: SCH:: numAntPorts=%d\n",schedEnbCfg->numTxAntPorts);
+   DU_LOG("\nINFO  -->  SCH : MIMO_DBG:: SCH:: numAntPorts=%d\n",schedEnbCfg->numTxAntPorts);
    
    /* Validation for the ENB parameters */
    if ((schedEnbCfg->numTxAntPorts == 0) || (schedEnbCfg->numTxAntPorts > 4))
    {
-      RGSCHDBGERR(inst, (rgSchPBuf(inst),"Invalid number of transmit antenna" 
-            " ports %d\n", schedEnbCfg->numTxAntPorts));
+      DU_LOG("\nERROR  -->  SCH : Invalid number of transmit antenna" 
+            " ports %d\n", schedEnbCfg->numTxAntPorts);
       return RFAILED;
    }
 
@@ -510,12 +510,12 @@ RgSchErrInfo     *errInfo
    if((schedEnbCfg->accsMode < RGR_CELL_ACCS_OPEN) ||
       (schedEnbCfg->accsMode > RGR_CELL_ACCS_HYBRID))
    {
-      RGSCHDBGERR(inst, (rgSchPBuf(inst), "Invalid CSG Access mode\n"));
+      DU_LOG("\nERROR  -->  SCH : Invalid CSG Access mode\n");
       return RFAILED;
    }
 
    errInfo->errCause = RGSCHERR_NONE;
-   RGSCHDBGINFO(inst, (rgSchPBuf(inst), "RGR SCHED ENB config validation done:"\n));
+   DU_LOG("\nINFO  -->  SCH : RGR SCHED ENB config validation done:");
 
    return ROK;
 }  /* rgSCHCfgVldtRgrSchedEnbCfg */
@@ -558,27 +558,27 @@ RgSchErrInfo *errInfo
    /* check if cell exists already */
    if ((uint8_t *)cell != NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Cell Id already exists");
+      DU_LOG("\nERROR  -->  SCH : Cell Id already exists");
       return RFAILED;
    }
    
    if(cellCfg->macInst >= SCH_INST_START)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid MAC Instance %d ",
+      DU_LOG("\nERROR  -->  SCH : Invalid MAC Instance %d ",
                cellCfg->macInst);
       return RFAILED;
    }
    
    if (cellCfg->macRnti.startRnti < RGSCH_MIN_MAC_RNTI )
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid start RNTI %d for cell ",
+      DU_LOG("\nERROR  -->  SCH : Invalid start RNTI %d for cell ",
                cellCfg->macRnti.startRnti);
       return RFAILED;
    }
 
    if ((rgSCHCfgVldtRgrCellSchCfg(inst, cellCfg)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for scheduler related "
+      DU_LOG("\nERROR  -->  SCH : Validation for scheduler related "
                           "config failed");
       return RFAILED;
    }
@@ -586,7 +586,7 @@ RgSchErrInfo *errInfo
    if ((cellCfg->dlHqCfg.maxDlHqTx < RGSCH_MIN_HQ_TX) ||
          (cellCfg->dlHqCfg.maxMsg4HqTx < RGSCH_MIN_HQ_TX))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId, "Invalid Downlink HARQ configuration:"
+      DU_LOG("\nERROR  -->  SCH : Invalid Downlink HARQ configuration:"
                " maxDlHqTx %d maxMsg4HqTx %d", cellCfg->dlHqCfg.maxDlHqTx,
                cellCfg->dlHqCfg.maxMsg4HqTx);
       return RFAILED;
@@ -594,7 +594,7 @@ RgSchErrInfo *errInfo
    if ((cellCfg->cfiCfg.cfi < RGSCH_MIN_CFI_VAL) ||
          (cellCfg->cfiCfg.cfi > RGSCH_MAX_CFI_VAL))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid CFI configuration %d",
+      DU_LOG("\nERROR  -->  SCH : Invalid CFI configuration %d",
            cellCfg->cfiCfg.cfi);
       return RFAILED;
    }
@@ -602,7 +602,7 @@ RgSchErrInfo *errInfo
         ((cellCfg->puschSubBand.numSubbands -1) * cellCfg->puschSubBand.size))
          > (cellCfg->bwCfg.ulTotalBw - 1))
    {
-      RLOG_ARG4(L_ERROR,DBG_CELLID,cellCfg->cellId, "Invalid PUSCH subband configuration:"
+      DU_LOG("\nERROR  -->  SCH : Invalid PUSCH subband configuration:"
                " subBandStart %d numSubBands %d subBandSize %d ulTotBw %d",
                cellCfg->puschSubBand.subbandStart, 
                cellCfg->puschSubBand.numSubbands, cellCfg->puschSubBand.size,
@@ -615,14 +615,14 @@ RgSchErrInfo *errInfo
          ((cellCfg->bwCfg.ulTotalBw < RGSCH_MIN_UL_BW) || 
           (cellCfg->bwCfg.ulTotalBw > RGSCH_MAX_UL_BW)))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid Bandwidth configuration:"
+      DU_LOG("\nERROR  -->  SCH : Invalid Bandwidth configuration:"
             " ul %d dl %d",cellCfg->bwCfg.ulTotalBw,
             cellCfg->bwCfg.dlTotalBw);
       return RFAILED;
    }
    if (cellCfg->phichCfg.ngEnum > RGR_NG_TWO)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid PHICH Ng configuration %d",
+      DU_LOG("\nERROR  -->  SCH : Invalid PHICH Ng configuration %d",
                (uint8_t)cellCfg->phichCfg.ngEnum);
       return RFAILED;
    }
@@ -630,7 +630,7 @@ RgSchErrInfo *errInfo
    if ((cellCfg->phichCfg.isDurExtend == TRUE) && 
          (cellCfg->bwCfg.dlTotalBw <= 10) && (cellCfg->cfiCfg.cfi < 2))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid cfi value for"
+      DU_LOG("\nERROR  -->  SCH : Invalid cfi value for"
                "Extended PHICH duration cfi:%d dlBw:%d",
                (uint8_t)cellCfg->cfiCfg.cfi, cellCfg->bwCfg.dlTotalBw);
       return RFAILED;
@@ -638,12 +638,12 @@ RgSchErrInfo *errInfo
    if ((cellCfg->phichCfg.isDurExtend == TRUE) &&
          (cellCfg->bwCfg.dlTotalBw > 10) && (cellCfg->cfiCfg.cfi < 3))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid cfi value for"
+      DU_LOG("\nERROR  -->  SCH : Invalid cfi value for"
                "Extended PHICH duration cfi:%d dlBw:%d",
                (uint8_t)cellCfg->cfiCfg.cfi, cellCfg->bwCfg.dlTotalBw);
       return RFAILED;
    }
-   RLOG4(L_INFO,"CA_DBG:: PUCCH configuration:"
+   DU_LOG("\nINFO  -->  SCH : CA_DBG:: PUCCH configuration:"
          " N2_RB %d N1_PUCCH %d deltaShift %d cyclicShift %d",
          cellCfg->pucchCfg.resourceSize,
          cellCfg->pucchCfg.n1PucchAn,
@@ -658,7 +658,7 @@ RgSchErrInfo *errInfo
          (cellCfg->pucchCfg.deltaShift > RGSCH_PUCCH_MAXVAL_DS) ||
          (cellCfg->pucchCfg.cyclicShift > RGSCH_PUCCH_MAXVAL_CS))
    {
-      RLOG_ARG4(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid PUCCH configuration:"
+      DU_LOG("\nERROR  -->  SCH : Invalid PUCCH configuration:"
               " N2_RB %d N1_PUCCH %d deltaShift %d cyclicShift %d",
                cellCfg->pucchCfg.resourceSize,
                cellCfg->pucchCfg.n1PucchAn,
@@ -668,21 +668,21 @@ RgSchErrInfo *errInfo
    }
    if (cellCfg->srsCfg.isSrsCfgSetup && cellCfg->srsCfg.srsBwEnum > RGR_SRS_BWCFG_7)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid SRS configuration: "
+      DU_LOG("\nERROR  -->  SCH : Invalid SRS configuration: "
                " srsBw %d", (uint8_t)cellCfg->srsCfg.srsBwEnum);
       return RFAILED;
    }
 
    if ((rgSCHCfgVldtRgrCellRACfg(inst, cellCfg)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for Random access related"
+      DU_LOG("\nERROR  -->  SCH : Validation for Random access related"
                           "config failed");
       return RFAILED;
    }
 
    if ((rgSCHCfgVldtRgrCellPwrCfg(inst, cellCfg, errInfo)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for cell power "
+      DU_LOG("\nERROR  -->  SCH : Validation for cell power "
                           "config failed");
       return RFAILED;
    }
@@ -691,13 +691,13 @@ RgSchErrInfo *errInfo
    if( (cellCfg->numCmnLcs < RGR_MIN_CMN_LC_PER_CELL)||
        (cellCfg->numCmnLcs > RGR_MAX_CMN_LC_PER_CELL))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid number(%d) of common logical"
+      DU_LOG("\nERROR  -->  SCH : Invalid number(%d) of common logical"
               "channels in cell config", cellCfg->numCmnLcs);
       return RFAILED;
    }
    if ((rgSCHCfgVldtRgrCmnLcCfg(inst, cellCfg, errInfo)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for common logical"
+      DU_LOG("\nERROR  -->  SCH : Validation for common logical"
                           "channels failed");
       return RFAILED;
    }
@@ -708,7 +708,7 @@ RgSchErrInfo *errInfo
 #ifdef RGR_SI_SCH
    if ((rgSCHCfgVldtRgrCellSiCfg(inst, &(cellCfg->siCfg))) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for SI"
+      DU_LOG("\nERROR  -->  SCH : Validation for SI"
                           "configuration failed");
       return RFAILED;
    }
@@ -722,7 +722,7 @@ RgSchErrInfo *errInfo
       if(cellCfg->srsCfg.isSrsCfgSetup && cellCfg->srsCfg.srsSubFrameCfg > 14)
 #endif
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid"
+         DU_LOG("\nERROR  -->  SCH : Invalid"
                   "Subframe configuration");
          return RFAILED;
       }
@@ -735,8 +735,8 @@ RgSchErrInfo *errInfo
        (cellCfg->phichTxPwrOffset > 10000) 
       )
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId, 
-            "Invalid txPower offset ");
+      DU_LOG("\nERROR  -->  SCH : Invalid txPower offset ");
+
       return RFAILED;
    }
 
@@ -747,7 +747,7 @@ RgSchErrInfo *errInfo
       (!((cellCfg->rgrLteAdvCfg.pres & RGR_SFR) &&
          (RGR_ENABLE == cellCfg->rgrLteAdvCfg.sfrCfg.status))))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "DSFR is enbaled"
+      DU_LOG("\nERROR  -->  SCH : DSFR is enbaled"
                "Without enabling SFR");
       return RFAILED;
    }
@@ -755,14 +755,14 @@ RgSchErrInfo *errInfo
    if ((rgSCHCfgVldtRgrCellLteAdvCfg(inst, &(cellCfg->rgrLteAdvCfg), 
                                       cellCfg->bwCfg.dlTotalBw)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for LTE Adv"
+      DU_LOG("\nERROR  -->  SCH : Validation for LTE Adv"
                "configuration failed");
       return RFAILED;
    }
 #ifdef LTE_ADV
    if ((rgSCHCfgVldtRgrCellLteLAACfg(inst, cellCfg)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Validation for LTE LAA"
+      DU_LOG("\nERROR  -->  SCH : Validation for LTE LAA"
                "configuration failed");
       return RFAILED;
    }
@@ -770,7 +770,7 @@ RgSchErrInfo *errInfo
 /* LTE_ADV_FLAG_REMOVED_END */
    if (cellCfg->msg4pAVal > RGRUE_DLPWRCNTRL_PA_DB3)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,  "Invalid"
+      DU_LOG("\nERROR  -->  SCH : Invalid"
                "msg4pAVal %u", cellCfg->msg4pAVal);
       return RFAILED;
    }
@@ -781,8 +781,8 @@ RgSchErrInfo *errInfo
       if((rgSCHCfgVldtRgrCellCsgParamCfg(inst, 
                   &(cellCfg->csgParamCfg)) != ROK))
       {
-         RGSCHDBGERR(inst, (rgSchPBuf(inst), "Validation failed for \n"
-                  "Access CSG parameter failed\n"));
+         DU_LOG("\nERROR  -->  SCH : Validation failed for \n"
+                  "Access CSG parameter failed\n");
          return RFAILED;
       }
    }
@@ -791,7 +791,7 @@ RgSchErrInfo *errInfo
           {
             if(ROK != rgSCHCfgVldtRgrEmtcCellCfg(cellCfg))
             {
-                        RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,"Invalid EMTC cell Configuration %d for cell" ,cellCfg->cellId);
+                DU_LOG("\nERROR  -->  SCH : Invalid EMTC cell Configuration %d for cell" ,cellCfg->cellId);
                         return RFAILED;
             }
           }
@@ -827,18 +827,18 @@ Inst         inst,
 RgrSchedEnbCfg   *rgSchedCfg
 )
 {
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "rgSCHCfgVldtRgrSchCfg:Validating \
-               scheduler related Configuration"));
+   DU_LOG("\nDEBUG  -->  SCH : rgSCHCfgVldtRgrSchCfg:Validating \
+               scheduler related Configuration");
    if (rgSchedCfg->ulSchdType > (RGSCH_NUM_SCHEDULERS - 1))
    {
-      RGSCHDBGERR(inst, (rgSchPBuf(inst), "rgSCHCfgVldtRgrSchCfg:Invalid \
-                  UL scheduler type %d \n", rgSchedCfg->ulSchdType));
+      DU_LOG("\nERROR  -->  SCH : rgSCHCfgVldtRgrSchCfg:Invalid \
+                  UL scheduler type %d \n", rgSchedCfg->ulSchdType);
       return RFAILED;
    }
    if (rgSchedCfg->dlSchdType > (RGSCH_NUM_SCHEDULERS - 1))
    {
-      RGSCHDBGERR(inst, (rgSchPBuf(inst), "rgSCHCfgVldtRgrSchCfg:Invalid \
-                  DL scheduler type %d \n", rgSchedCfg->dlSchdType));
+      DU_LOG("\nERROR  -->  SCH : rgSCHCfgVldtRgrSchCfg:Invalid \
+                  DL scheduler type %d \n", rgSchedCfg->dlSchdType);
       return RFAILED;
    }
    return ROK;
@@ -874,7 +874,7 @@ RgrCellCfg   *cellCfg
 #if RGSCH_NUM_DLFS_SCHEDULERS
    if (cellCfg->dlfsSchdType > RGSCH_NUM_DLFS_SCHEDULERS - 1)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId,"Invalid dlfs scheduler type %d for cell",
+      DU_LOG("\nERROR  -->  SCH : Invalid dlfs scheduler type %d for cell",
                 cellCfg->dlfsSchdType);
       return RFAILED;
    }
@@ -924,11 +924,11 @@ RgrCellCfg   *cellCfg
          (cellCfg->rachCfg.prachResource > 
           (cellCfg->bwCfg.ulTotalBw - RGSCH_NUM_RA_RB)))
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cellCfg->cellId,"Invalid RACH configuration:"
+      DU_LOG("\nERROR  -->  SCH : Invalid RACH configuration:"
                 "preamble Fmt %d raWinSize %d maxMsg3Tx %d",
                 cellCfg->rachCfg.preambleFormat, cellCfg->rachCfg.raWinSize,
                 cellCfg->rachCfg.maxMsg3Tx);
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId,"Invalid numRaPreamble %d sizeRaPreambleGrpA %d",
+      DU_LOG("\nERROR  -->  SCH : Invalid numRaPreamble %d sizeRaPreambleGrpA %d",
                 cellCfg->rachCfg.numRaPreamble,
                 cellCfg->rachCfg.sizeRaPreambleGrpA);
       return RFAILED;
@@ -947,7 +947,7 @@ RgrCellCfg   *cellCfg
                                        cellCfg->rachCfg.numRaPreamble) ||
        (cellCfg->rachCfg.raOccasion.sfnEnum == RGR_SFN_NA)))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId,"Invalid RACH Preambleset conf:"
+       DU_LOG("\nERROR  -->  SCH : Invalid RACH Preambleset conf:"
                 "preambleSet Start %d preambleSet Size %d",
                 cellCfg->macPreambleSet.start, cellCfg->macPreambleSet.size);
       return RFAILED;
@@ -969,8 +969,7 @@ RgrCellCfg   *cellCfg
 
       if(maxMsg4TxDelay >= cellCfg->rachCfg.contResTmr)
       {
-         RLOG_ARG2(L_WARNING,DBG_CELLID,cellCfg->cellId ,
-               "Warining !: Contention Resolution timer not greater than the "
+         DU_LOG("\nERROR  -->  SCH : Warining !: Contention Resolution timer not greater than the "
                "guard timer. Conte Res timer %d Guard timer %d",
                cellCfg->rachCfg.contResTmr, 
                maxMsg4TxDelay );
@@ -984,8 +983,7 @@ RgrCellCfg   *cellCfg
    {
       /* ccpu00128575 ADD - If contention resolution timer is configured as 0,
          Then return fail*/
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId, 
-               "Contention Resolution timer is configured as '0'");
+      DU_LOG("\nERROR  -->  SCH : Contention Resolution timer is configured as '0'");
       return RFAILED;
    }
 #endif
@@ -1483,12 +1481,12 @@ RgSchErrInfo *err
 #endif      
       ue->numSCells++;
 #ifdef CA_DBG      
-      printf("\n SCell added for ue %d numScells %d\n",ue->ueId,ue->numSCells);
+      DU_LOG("\nDEBUG  -->  SCH : SCell added for ue %d numScells %d\n",ue->ueId,ue->numSCells);
 #endif
       /* retrieve teh sec cell Cb */
       if((secCellCb = (RgSchCellCb *)rgSchUtlGetCellCb(inst, sCellInfo->sCellId)) == NULLP)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "SCell doesnt exists"));
+         DU_LOG("\nERROR  -->  SCH : SCell doesnt exists");
          rgSCHSCellFreeBuf (inst,ue,ueRecfg,idx);
          return RFAILED;
       }
@@ -1499,7 +1497,7 @@ RgSchErrInfo *err
       }
       else
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%d]SCellIdx Tx mode not present ",idx));
+         DU_LOG("\nERROR  -->  SCH : [%d]SCellIdx Tx mode not present ",idx);
          sCellInfoCfg->txMode.pres = TRUE;
          sCellInfoCfg->txMode.txModeEnum = RGR_UE_TM_1;
       
@@ -1528,10 +1526,9 @@ RgSchErrInfo *err
       }
 
       aCqiCfg = &sCellInfoCfg->ueSCellDlCqiCfg.aprdCqiCfg; 
-      RGSCHDBGPRM(cell->instIdx, (rgSchPBuf(cell->instIdx), 
-            "rgSCHCfgACqiUeCfg cellId =%d,Config Presence =%d for \
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCfgACqiUeCfg cellId =%d,Config Presence =%d for \
             Sec Cell Id = %d\n",
-            cellCb->cellId,  aCqiCfg->pres,sCellInfo->sCellId));
+            cellCb->cellId,  aCqiCfg->pres,sCellInfo->sCellId);
 
       /* if aperiodic cqi is present then only call the below function as it is
        * not mandatory*/
@@ -1540,8 +1537,8 @@ RgSchErrInfo *err
          if( ROK != rgSCHCfgACqiUeCfg(secCellCb,ue, &sCellInfo->acqiCb,
                   sCellInfo->txMode.txModeEnum, aCqiCfg, ue->ueCatEnum))
          {
-            RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%d]SCellIdx ACQI Cfg"
-                     "failed..n\n", idx));
+            DU_LOG("\nERROR  -->  SCH : [%d]SCellIdx ACQI Cfg"
+                     "failed..n\n", idx);
             rgSCHSCellFreeBuf (inst,ue,ueRecfg,idx);
             return RFAILED;
          }
@@ -1554,7 +1551,7 @@ RgSchErrInfo *err
       if(ROK != rgSCHSCellPCqiCfg(cell,secCellCb,ue,pCqiCfg,
             ue->ueCatEnum,sCellInfoCfg->sCellIdx))
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%d]SCellIdx PCQI Cfg failed..n\n", idx));
+         DU_LOG("\nERROR  -->  SCH : [%d]SCellIdx PCQI Cfg failed..n\n", idx);
          rgSCHSCellFreeBuf (inst,ue,ueRecfg,idx);
          return RFAILED;
       }
@@ -1578,8 +1575,8 @@ RgSchErrInfo *err
       sCellInfo->hqEnt = rgSCHDhmHqEntInit(secCellCb);
       if (sCellInfo->hqEnt == NULLP)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%d]UEID:Hq Entity Initialization "
-                  "failed in config\n", ue->ueId));
+         DU_LOG("\nERROR  -->  SCH : [%d]UEID:Hq Entity Initialization "
+                  "failed in config\n", ue->ueId);
          rgSCHSCellFreeBuf (inst,ue,ueRecfg,idx);
          return RFAILED;
       }
@@ -1592,7 +1589,7 @@ RgSchErrInfo *err
       /* Init SCell Specific Sched Spfc UE DL CB */
       if ((secCellCb->sc.apis->rgSCHRgrSCellUeCfg(secCellCb, ue, sCellInfoCfg, err)) != ROK)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Spec Sched DL UE CFG FAILED\n"));
+         DU_LOG("\nERROR  -->  SCH : Spec Sched DL UE CFG FAILED\n");
          rgSCHSCellFreeBuf (inst,ue,ueRecfg,idx);
          return RFAILED;
       }
@@ -1600,9 +1597,9 @@ RgSchErrInfo *err
 #ifdef LTE_TDD
      if((rgSCHUtlAllocUeANFdbkInfo(ue,sCellInfoCfg->sCellIdx)) != ROK)
      {
-        RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%d]UEID:Memomy allocation "
+        DU_LOG("\nERROR  -->  SCH : [%d]UEID:Memomy allocation "
                  "Failed while UE related Ack Nack Information\n",
-                 ue->ueId));
+                 ue->ueId);
         rgSCHSCellFreeBuf (inst,ue,ueRecfg,idx);
         return RFAILED;
      }
@@ -1712,7 +1709,7 @@ RgSchErrInfo *err
 #endif
    else
    {
-      RLOG1(L_ERROR,"Wrong PUCCH Format:%d configured for CA",ue->uciFrmtTyp);
+      DU_LOG("\nERROR  -->  SCH : Wrong PUCCH Format:%d configured for CA",ue->uciFrmtTyp);
    }
 
    return ROK;
@@ -1758,15 +1755,15 @@ RgSchErrInfo   *errInfo
    Inst    inst = cell->instIdx;
 
 
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "VALIDATE RGR UE SCELL RECONFIG: cellId %d "
-            "oldUeId %d cell %p \n", ueRecfg->cellId, ueRecfg->oldCrnti));
+   DU_LOG("\nDEBUG  -->  SCH : VALIDATE RGR UE SCELL RECONFIG: cellId %d "
+            "oldUeId %d cell %p \n", ueRecfg->cellId, ueRecfg->oldCrnti);
    errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_UE_SCELL_RECFG;
 
    if((ueRecfg->ueSCellCfgInfo.numSCells > RGR_MAX_SCELL_PER_UE) ||
          (ueRecfg->ueSCellCfgInfo.numSCells < 1))
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Invalid number of SCELL "
-               " in SCELL Recfg\n"));
+      DU_LOG("\nERROR  -->  SCH : Invalid number of SCELL "
+               " in SCELL Recfg\n");
       return RFAILED;
    }
    
@@ -1775,14 +1772,14 @@ RgSchErrInfo   *errInfo
       ueSCellDedCfg = &ueRecfg->ueSCellCfgInfo.ueSCellDedCfg[idx];
       if(ROK != rgSchUtlVldtCellId(inst, ueSCellDedCfg->sCellId))
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "SCellId is out of range"));
+         DU_LOG("\nERROR  -->  SCH : SCellId is out of range");
          return RFAILED;
       }
       /* Validate existence of sec cell */
       sCell = rgSchUtlGetCellCb(inst, ueSCellDedCfg->sCellId);
       if(NULLP == sCell )
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "SCell doesnt exists"));
+         DU_LOG("\nERROR  -->  SCH : SCell doesnt exists");
          return RFAILED;
       }
 
@@ -1790,24 +1787,24 @@ RgSchErrInfo   *errInfo
       if((ueSCellDedCfg->sCellIdx < 1) ||
             (ueSCellDedCfg->sCellIdx > RGR_MAX_SCELL_PER_UE))
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid Serv Cell Idx %d\n",
-                  ueSCellDedCfg->sCellIdx));
+         DU_LOG("\nERROR  -->  SCH : Invalid Serv Cell Idx %d\n",
+                  ueSCellDedCfg->sCellIdx);
          return RFAILED;
       }
 
       /* Is this sec cell alredy confiured */
       if(NULLP != ue->cellInfo[ueSCellDedCfg->sCellIdx])
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Secll with id %d already added\n",
-                  ueSCellDedCfg->sCellIdx));
+         DU_LOG("\nERROR  -->  SCH : Secll with id %d already added\n",
+                  ueSCellDedCfg->sCellIdx);
          return RFAILED;
       }
 
       /* Validate CQI config  params */
       if((rgSCHCfgVldtUeCqiModeCfg(sCell, &ueSCellDedCfg->ueSCellDlCqiCfg)) != ROK)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Invalid CQI Mode "
-                  " configuration for Ue %d\n",ue->ueId));
+         DU_LOG("\nERROR  -->  SCH : Invalid CQI Mode "
+                  " configuration for Ue %d\n",ue->ueId);
          return RFAILED;
       }
 #ifdef TFU_UPGRADE
@@ -1816,8 +1813,7 @@ RgSchErrInfo   *errInfo
                &ueSCellDedCfg->ueSCellDlCqiCfg.aprdCqiCfg, ueSCellDedCfg->txMode,
                errInfo ))
       {
-         RGSCHDBGERR(sCell->instIdx, (rgSchPBuf(sCell->instIdx),
-                  "rgSCHCfgVldtCqiSrSrsUeCfg: Invalid Aperiodic CQI configuration\n"));
+         DU_LOG("\nERROR  -->  SCH : rgSCHCfgVldtCqiSrSrsUeCfg: Invalid Aperiodic CQI configuration\n");
          return RFAILED;
       }
 
@@ -1832,24 +1828,23 @@ RgSchErrInfo   *errInfo
                errInfo )) 
 #endif
       {
-         RGSCHDBGERR(sCell->instIdx, (rgSchPBuf(sCell->instIdx),
-                     "rgSCHCfgVldtCqiSrSrsUeCfg: Invalid Periodic CQI configuration\n"));
+         DU_LOG("\nERROR  -->  SCH : rgSCHCfgVldtCqiSrSrsUeCfg: Invalid Periodic CQI configuration\n");
          return RFAILED;
       }
 
       if((ueSCellDedCfg->txMode.txModeEnum < RGR_UE_TM_1) ||
             (ueSCellDedCfg->txMode.txModeEnum > RGR_UE_TM_9))
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "SCELL Invalid transmission mode for"
-                  " UE %d\n", (uint8_t)ueSCellDedCfg->txMode.txModeEnum));
+         DU_LOG("\nERROR  -->  SCH : SCELL Invalid transmission mode for"
+                  " UE %d\n", (uint8_t)ueSCellDedCfg->txMode.txModeEnum);
          return RFAILED;
       }
 #endif
    }
 
    errInfo->errCause = RGSCHERR_NONE;
-   RGSCHDBGINFO(inst, (rgSchPBuf(inst), "RGR Ue SCell Reconfig validation done: "
-            "cellId %d oldUeId %d\n", ueRecfg->cellId, ue->ueId));
+   DU_LOG("\nDEBUG  -->  SCH : RGR Ue SCell Reconfig validation done: "
+            "cellId %d oldUeId %d\n", ueRecfg->cellId, ue->ueId);
    return ROK;
 }  /* rgSCHCfgVldtRgrUeSCellRecfg */
 
@@ -1968,15 +1963,14 @@ RgSchErrInfo   *errInfo
    if (((*cell) == NULLP) ||
        ((*cell)->cellId != ueRecfg->cellId))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,
-                "Cell does not exist for OLD CRNTI:%d",ueRecfg->oldCrnti);
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist for OLD CRNTI:%d",ueRecfg->oldCrnti);
       return RFAILED;
    }
 
    /* Fetch the Old Ue */
    if ((*ue = rgSCHDbmGetUeCb(*cell, ueRecfg->oldCrnti)) == NULLP)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"OLD CRNTI:%d does not exist", 
+      DU_LOG("\nERROR  -->  SCH : OLD CRNTI:%d does not exist", 
             ueRecfg->oldCrnti);
       return RFAILED;
    }
@@ -1987,7 +1981,7 @@ RgSchErrInfo   *errInfo
       S16 ret = rgSCHCfgVldtRgrUeSCellRecfg(ueRecfg,*cell, *ue, errInfo);
       if ( ret != ROK)
       {
-         RGSCHDBGERR(inst,(rgSchPBuf(inst), "Ue SCell Recfg Validation FAILED\n"));
+         DU_LOG("\nERROR  -->  SCH : Ue SCell Recfg Validation FAILED\n");
          return RFAILED;
       }
       errInfo->errCause = RGSCHERR_NONE;
@@ -1999,7 +1993,7 @@ RgSchErrInfo   *errInfo
    {
       if (rgSCHDbmGetUeCb(*cell, ueRecfg->newCrnti) != NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"NEW CRNTI:%d already exists", 
+         DU_LOG("\nERROR  -->  SCH : NEW CRNTI:%d already exists", 
               ueRecfg->newCrnti);
          return RFAILED;
       }
@@ -2008,7 +2002,7 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_CSG_PARAM_RECFG) &&\
        ((*ue)->csgMmbrSta == ueRecfg->csgMmbrSta))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"UE ID [%d] invalid CSG Membership reconfig :%d ", 
+      DU_LOG("\nERROR  -->  SCH : UE ID [%d] invalid CSG Membership reconfig :%d ", 
               ueRecfg->newCrnti, (uint8_t)ueRecfg->csgMmbrSta);
       return RFAILED;
    }
@@ -2018,7 +2012,7 @@ RgSchErrInfo   *errInfo
          ((ueRecfg->txMode.txModeEnum < RGR_UE_TM_1) ||
           (ueRecfg->txMode.txModeEnum > RGR_UE_TM_7)))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid transmission mode %d"
+      DU_LOG("\nERROR  -->  SCH : Invalid transmission mode %d"
             "for NEW CRNTI:%d", (uint8_t)ueRecfg->txMode.txModeEnum,ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2028,7 +2022,7 @@ RgSchErrInfo   *errInfo
          ((ueRecfg->prdDlCqiRecfg.cqiPmiCfgIdx < 1) || 
          (ueRecfg->prdDlCqiRecfg.cqiPmiCfgIdx > 1024))))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid Periodic CQI INFO"
+      DU_LOG("\nERROR  -->  SCH : Invalid Periodic CQI INFO"
                "OLD CRNTI:%d NEW CRNTI:%d",(uint8_t)ueRecfg->oldCrnti,ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2036,7 +2030,7 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_ULHARQ_RECFG) &&
          (ueRecfg->ueUlHqRecfg.maxUlHqTx < RGSCH_MIN_HQ_TX))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid Uplink HARQ config %d"
+      DU_LOG("\nERROR  -->  SCH : Invalid Uplink HARQ config %d"
           "for NEW CRNTI:%d", ueRecfg->ueUlHqRecfg.maxUlHqTx,ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2044,7 +2038,7 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_PRD_DLCQI_RECFG) &&
          (ueRecfg->prdDlCqiRecfg.prdModeEnum > RGR_PRD_CQI_MOD21))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid periodic mode config for"
+      DU_LOG("\nERROR  -->  SCH : Invalid periodic mode config for"
           " DL CQI %d NEW CRNTI:%d", (uint8_t)ueRecfg->prdDlCqiRecfg.prdModeEnum,ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2052,7 +2046,7 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_PCQI_RECFG) &&
        (ueRecfg->cqiCfg.cqiSetup.prdModeEnum > RGR_PRD_CQI_MOD21))
    {
-     RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid periodic mode config for "
+     DU_LOG("\nERROR  -->  SCH : Invalid periodic mode config for "
             "DL CQI %d for NEW CRNTI:%d",(uint8_t)ueRecfg->cqiCfg.cqiSetup.prdModeEnum,ueRecfg->newCrnti);
      return RFAILED;
    }
@@ -2060,7 +2054,7 @@ RgSchErrInfo   *errInfo
    /* Validate UE Category */
    if (ueRecfg->ueCatEnum > CM_LTE_UE_CAT_8)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid category %d for NEW CRNTI:%d",
+      DU_LOG("\nERROR  -->  SCH : Invalid category %d for NEW CRNTI:%d",
                (uint8_t)ueRecfg->ueCatEnum,ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2069,26 +2063,26 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_UE_ACCESS_STRATUM_REL_RECFG) && \
          (ueRecfg->accessStratumRls > RGR_REL_11))
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Invalid Access Stratum Release %u for UE\n",
-               ueRecfg->accessStratumRls));
+      DU_LOG("\nERROR  -->  SCH : Invalid Access Stratum Release %u for UE\n",
+               ueRecfg->accessStratumRls);
       return RFAILED;
    }
-   RGSCHDBGINFONEW(inst, (rgSchPBuf(inst), "Configured Access Stratum Release %u\n", \
-            ueRecfg->accessStratumRls));
+   DU_LOG("\nINFO  -->  SCH : Configured Access Stratum Release %u\n", \
+            ueRecfg->accessStratumRls);
 
    if ((ueRecfg->ueRecfgTypes & RGR_UE_APRD_DLCQI_RECFG) && 
          ((ueRecfg->aprdDlCqiRecfg.pres == TRUE) &&
           ((ueRecfg->aprdDlCqiRecfg.aprdModeEnum > RGR_APRD_CQI_MOD31) ||
           (*cell)->bwCfg.dlTotalBw <= 7)))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid aperiodic mode config for"
+      DU_LOG("\nERROR  -->  SCH : Invalid aperiodic mode config for"
           " DL CQI %d for NEW CRNTI:%d", (uint8_t)ueRecfg->aprdDlCqiRecfg.aprdModeEnum,ueRecfg->newCrnti);
       return RFAILED;
    }
    if ((ueRecfg->ueRecfgTypes & RGR_UE_ULPWR_RECFG) &&
          (rgSCHCfgVldtUePwrCfg(*cell, &ueRecfg->ueUlPwrRecfg) != ROK))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid PUSCH Group power"
+      DU_LOG("\nERROR  -->  SCH : Invalid PUSCH Group power"
            " Reconfiguration for NEW CRNTI:%d",ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2097,14 +2091,14 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_ACKNACK_MEASGAP_RECFG) &&
       (rgSCHCfgVldtUeMeasGapAckNakRepRecfg(*cell, ueRecfg) != ROK))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid MeasGap/AckNackRep"
+      DU_LOG("\nERROR  -->  SCH : Invalid MeasGap/AckNackRep"
             " Reconfiguration for NEW CRNTI:%d",ueRecfg->newCrnti);
       return RFAILED;
    }
 #ifdef LTEMAC_SPS
    if(rgSCHCfgVldtSpsReCfg(*cell, *ue, ueRecfg)!= ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid SPS"
+      DU_LOG("\nERROR  -->  SCH : Invalid SPS"
            " Reconfiguration for NEW CRNTI:%d",ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2113,7 +2107,7 @@ RgSchErrInfo   *errInfo
    /* Validated Periodic CQI/PMI, RI , SRS and SR related UeCfg */
    if ( ROK != rgSCHCfgVldtCqiSrSrsUeReCfg(*cell, *ue, ueRecfg,  errInfo))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid ACQI, PCQI/SR/SRS "
+      DU_LOG("\nERROR  -->  SCH : Invalid ACQI, PCQI/SR/SRS "
                "Re-configuration for NEW CRNTI:%d",ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2121,7 +2115,7 @@ RgSchErrInfo   *errInfo
    if ((ueRecfg->ueRecfgTypes & RGR_UE_DRX_RECFG) &&
       (rgSCHCfgVldtDrxUeCfg(*cell, &(ueRecfg->ueDrxRecfg)) != ROK))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid drxParams"
+      DU_LOG("\nERROR  -->  SCH : Invalid drxParams"
             " Reconfiguration for NEW CRNTI:%d",ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2132,7 +2126,7 @@ RgSchErrInfo   *errInfo
    /* Validate DL Power Control Config parameters */
    if(rgSCHCfgVldtCqiReptReCfg(*cell, ueRecfg)!= ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid DL Power Control"
+      DU_LOG("\nERROR  -->  SCH : Invalid DL Power Control"
            " Reconfiguration for NEW CRNTI:%d",ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -2186,7 +2180,7 @@ RgSchErrInfo   *errInfo
    if (((*cell) == NULLP) ||
        ((*cell)->cellId != lcRecfg->cellId))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcRecfg->cellId,"Cell does not exist " 
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist " 
                 "for CRNTI:%d LCID:%d",lcRecfg->crnti,lcRecfg->lcId);
       return RFAILED;
    }
@@ -2194,14 +2188,14 @@ RgSchErrInfo   *errInfo
    /* Fetch the Ue for dedicated channels */
    if ((*ue = rgSCHDbmGetUeCb(*cell, lcRecfg->crnti)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcRecfg->cellId,"UEID does not exist"
+      DU_LOG("\nERROR  -->  SCH : UEID does not exist"
          "dedicated logical channel for CRNTI:%d LCID:%d",lcRecfg->crnti,lcRecfg->lcId);
       return RFAILED;
    }
    
    if ((*dlLc = rgSCHDbmGetDlDedLcCb((*ue), lcRecfg->lcId)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcRecfg->cellId,"Dedicated DL LC does not "
+      DU_LOG("\nERROR  -->  SCH : Dedicated DL LC does not "
                "exist for CRNTI:%d LCID:%d",lcRecfg->crnti,lcRecfg->lcId);
       return RFAILED;
    }
@@ -2247,14 +2241,14 @@ RgSchErrInfo *errInfo
    
    if ((cell == NULLP) || (cell->cellId != reset->cellId))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,reset->cellId,"CELL does not exist for CRNTI:%d",
+      DU_LOG("\nERROR  -->  SCH : CELL does not exist for CRNTI:%d",
                reset->crnti);
       return RFAILED;
    }
    /* Fetch the Ue  */
    if ((*ue = rgSCHDbmGetUeCb(&(*cell), reset->crnti)) == NULLP)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,reset->cellId,"UE does not exist for CRNTI:%d",
+      DU_LOG("\nERROR  -->  SCH : UE does not exist for CRNTI:%d",
                reset->crnti);
       return RFAILED;
    }
@@ -2306,7 +2300,7 @@ RgSchErrInfo   *errInfo
    if (((cell) == NULLP) ||
        ((cell)->cellId != lcgRecfg->cellId))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcgRecfg->cellId,"Cell does not exist for" 
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist for" 
                 "CRNTI:%d LCGID:%d",lcgRecfg->crnti,lcgRecfg->ulRecfg.lcgId);
       return RFAILED;
    }
@@ -2314,14 +2308,14 @@ RgSchErrInfo   *errInfo
    /* Fetch the Ue for dedicated channels */
    if ((*ue = rgSCHDbmGetUeCb(&(*cell), lcgRecfg->crnti)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcgRecfg->cellId,"UE does not exist for "
+      DU_LOG("\nERROR  -->  SCH : UE does not exist for "
                 "dedicated logical channel group CRNTI:%d LCGID:%d",
                 lcgRecfg->crnti,lcgRecfg->ulRecfg.lcgId);
       return RFAILED;
    }
    if (lcgRecfg->ulRecfg.lcgId > (RGSCH_MAX_LCG_PER_UE - 1))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcgRecfg->cellId,"Invalid lcgId for uplink logical"
+      DU_LOG("\nERROR  -->  SCH : Invalid lcgId for uplink logical"
                 "channel CRNTI:%d LCGID:%d",
                 lcgRecfg->crnti,lcgRecfg->ulRecfg.lcgId);
       return RFAILED;
@@ -2329,8 +2323,8 @@ RgSchErrInfo   *errInfo
    
    if ((lcgRecfg->ulRecfg.gbr != 0) && (lcgRecfg->ulRecfg.mbr < lcgRecfg->ulRecfg.gbr))
    {
-      RGSCHDBGINFO(inst, (rgSchPBuf(inst), "Dedicated Logical Group %d validation failed"
-               " for ue %d for cell %d\n", lcgCfg->ulInfo.lcgId, lcgCfg->crnti, lcgCfg->cellId));
+      DU_LOG("\nERROR  -->  SCH : Dedicated Logical Group %d validation failed"\
+         " for ue %d for cell %d\n", lcgRecfg->ulRecfg.lcgId,(*ue)->ueId, cell->cellId);
       return RFAILED;
    }
    errInfo->errCause = RGSCHERR_NONE;
@@ -2377,7 +2371,7 @@ RgrCellCfg    *cellCfg
    if((rgSCHUtlAllocSBuf(cell->instIdx, (Data**)&(cell->dynCfiCb.cceFailSamples),
                (cell->dynCfiCb.numFailSamples * sizeof(uint16_t)))) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for cell");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for cell");
       return RFAILED;
    }
 
@@ -2481,15 +2475,15 @@ RgSchErrInfo   *errInfo
 )
 {
 
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "APPLYING RGR SCH ENB CONFIG: \n"));
+   DU_LOG("\nDEBUG  -->  SCH : APPLYING RGR SCH ENB CONFIG: \n");
    errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_ENB_CFG;
 
    rgSchCb[inst].rgrSchedEnbCfg = *schedEnbCfg;
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst),"\ndlSchdType %d ulSchdType %d dlTptCoeffi %d"
+   DU_LOG("\nDEBUG  -->  SCH : dlSchdType %d ulSchdType %d dlTptCoeffi %d"
            "dlFairCoeffi %d  ulTptCoeffi %d ulFairCoeffi %d\n",
          schedEnbCfg->dlSchdType, schedEnbCfg->ulSchdType, schedEnbCfg->dlSchInfo.dlPfs.tptCoeffi,
          schedEnbCfg->dlSchInfo.dlPfs.fairCoeffi, schedEnbCfg->ulSchInfo.ulPfs.tptCoeffi,
-         schedEnbCfg->ulSchInfo.ulPfs.fairCoeffi));
+         schedEnbCfg->ulSchInfo.ulPfs.fairCoeffi);
 
 #ifdef RG_5GTF
    rgSchCb[inst].rgSchDynTdd.isDynTddEnbld = schedEnbCfg->isDynTddEnbld;
@@ -2501,7 +2495,7 @@ RgSchErrInfo   *errInfo
    }
 #endif
    errInfo->errCause = RGSCHERR_NONE;
-   RGSCHDBGINFO(inst, (rgSchPBuf(inst), "RGR SCH ENBconfig done: \n"));
+   DU_LOG("\nINFO  -->  SCH : RGR SCH gNB done: \n");
    return ROK;
 }  /* rgSCHCfgRgrSchedEnbCfg */
 
@@ -2541,7 +2535,7 @@ RgrCellCfg    *cellCfg
    cell->cell5gtfCb.ueGrpPerTti = cellCfg->Cell5gtfCfg.ueGrpPerTti;
    cell->cell5gtfCb.numCCs = cellCfg->Cell5gtfCfg.numOfCC;
    cell->cell5gtfCb.bwPerCC = cellCfg->Cell5gtfCfg.bwPerCC;
-   printf("\ncell cfg at schd,numUes:%u,uepergrp:%u,uegrppertti:%u,numCC:%u,bwPerc:%u cfi %u\n",
+   DU_LOG("\nINFO  -->  SCH : cell cfg at schd,numUes:%u,uepergrp:%u,uegrppertti:%u,numCC:%u,bwPerc:%u cfi %u\n",
          cell->cell5gtfCb.numUes,cell->cell5gtfCb.uePerGrpPerTti,cell->cell5gtfCb.ueGrpPerTti,
          cell->cell5gtfCb.numCCs,cell->cell5gtfCb.bwPerCC, cell->cell5gtfCb.cfi);
    return ROK;
@@ -2599,7 +2593,7 @@ RgSchErrInfo  *errInfo
    if((ret = rgSCHUtlAllocSBuf(inst, (Data**)&cell, sizeof(RgSchCellCb))) 
          != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for cell");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for cell");
       return RFAILED;
    }
 #ifdef EMTC_ENABLE
@@ -2608,21 +2602,21 @@ RgSchErrInfo  *errInfo
       if((ret = rgSCHEmtcCellAlloc(cell)) 
             != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for emtc cell");
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for emtc cell");
          return RFAILED;
       }
    }
 #endif
    if ((uint8_t *)cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for cell");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for cell");
       return RFAILED;
    }
    /* Initialize the lists of the cell */
    ret = rgSCHDbmInitCell(cell);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"DBM initialization FAILED for cell");
+      DU_LOG("\nERROR  -->  SCH : DBM initialization FAILED for cell");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
    }
@@ -2732,7 +2726,7 @@ RgSchErrInfo  *errInfo
    ret = rgSCHDynCfiCfg(cell, cellCfg);
    if(ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Rgr cell Config failed at "
+      DU_LOG("\nERROR  -->  SCH : Rgr cell Config failed at "
        "Scheduler for cell");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
@@ -2742,14 +2736,14 @@ RgSchErrInfo  *errInfo
    {
      if(cell->isAutoCfgModeEnb)
      {
-        RLOG0(L_INFO,"Auto Mode Cfg enabled durint cell cfg\n");
+        DU_LOG("\nINFO  -->  SCH : Auto Mode Cfg enabled durint cell cfg\n");
      }
    }
    /* CPU OvrLoad State Initialization */
 #ifdef XEON_LMT_ITBS
    cell->thresholds.maxDlItbs = gWrMaxDlItbs;
    cell->thresholds.maxUlItbs = gWrMaxUlItbs;
-   RLOG2(L_INFO,"LIMIT DL and UL ITBS %d:%d \n",gWrMaxDlItbs,gWrMaxUlItbs);
+   DU_LOG("\nINFO  -->  SCH : LIMIT DL and UL ITBS %d:%d \n",gWrMaxDlItbs,gWrMaxUlItbs);
 #else
    cell->thresholds.maxDlItbs = RG_SCH_DL_MAX_ITBS;
    cell->thresholds.maxUlItbs = RG_SCH_UL_MAX_ITBS;
@@ -2771,7 +2765,7 @@ RgSchErrInfo  *errInfo
    ret =  rgSCHUtlRgrCellCfg(cell, cellCfg, errInfo);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Rgr cell Config failed at "
+      DU_LOG("\nERROR  -->  SCH : Rgr cell Config failed at "
        "Scheduler for cell ");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
@@ -2786,7 +2780,7 @@ RgSchErrInfo  *errInfo
          cellCfg->macRnti.size);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Rgr Cell Config failed at"
+      DU_LOG("\nERROR  -->  SCH : Rgr Cell Config failed at"
           " RNTI DB init for cell");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
@@ -2795,13 +2789,13 @@ RgSchErrInfo  *errInfo
    /* Update the cell with recieved configuration */
    cell->dlHqCfg  =  cellCfg->dlHqCfg;
 
-   RLOG1(L_INFO,"Config DL HQTX = %d\n",cell->dlHqCfg.maxDlHqTx);
+   DU_LOG("\nINFO  -->  SCH : Config DL HQTX = %d\n",cell->dlHqCfg.maxDlHqTx);
 
    cell->crntSfIdx = 0; 
    /* Allocate the subframe allocation information */
    if((ret = rgSCHUtlGetSfAlloc(cell)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for "
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
                "cell");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
@@ -2816,7 +2810,7 @@ RgSchErrInfo  *errInfo
    /* Allocate the subframe allocation information */
    if((ret = rgSCHUtlGetRlsHqAlloc(cell)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for"
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for"
                "cell");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
@@ -2850,7 +2844,7 @@ RgSchErrInfo  *errInfo
 
    if (rgSCHDrxCellCfg(cell,cellCfg) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Drx Memory allocation FAILED for"
+      DU_LOG("\nERROR  -->  SCH : Drx Memory allocation FAILED for"
          " cell");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
@@ -2888,14 +2882,14 @@ RgSchErrInfo  *errInfo
    ret = rgSCHLaaSCellCbInit(cell, cellCfg);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Rgr Cell Config failed at"
+      DU_LOG("\nERROR  -->  SCH : Rgr Cell Config failed at"
           " Initializing the LAA Cell Control Cb");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
    }
    cell->isPucchFormat3Sptd = cellCfg->isPucchFormat3Sptd;
-   RLOG_ARG0(L_INFO,DBG_CELLID,cellCfg->cellId,"Format 3 is Enabled");
-   printf ("\n Format 3 is Enabled for CELL:%d",cell->cellId);
+   DU_LOG("\nINFO  -->  SCH : Format 3 is Enabled");
+   DU_LOG ("\n Format 3 is Enabled for CELL:%d",cell->cellId);
 #endif
 
 
@@ -2905,8 +2899,7 @@ RgSchErrInfo  *errInfo
        {       
          if (rgSCHCfgEmtcCellCfg(cell,&(cellCfg->emtcCellCfg)) != ROK)
          {
-                RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"EMTC Config Failed"
-                                         " cell");
+                DU_LOG("\nERROR  -->  SCH : EMTC Config Failed cell");
                 return RFAILED;
          }
        }
@@ -2916,7 +2909,7 @@ RgSchErrInfo  *errInfo
    ret = rgSCH5gtfCellCfg(cell, cellCfg);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR, DBG_CELLID,cellCfg->cellId,"5GTF Rgr Cell Config failed");
+      DU_LOG("\nERROR  -->  SCH : 5GTF Rgr Cell Config failed");
       rgSCHCfgFreeCellCb(cell);
       return RFAILED;
    }
@@ -2980,7 +2973,7 @@ RgSchErrInfo *errInfo
      {
         if ((raCb = rgSCHDbmGetRaCb(cell, ueCfg->crnti)) == NULLP)
         {
-           RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"No RaCb exists for"
+           DU_LOG("\nERROR  -->  SCH : No RaCb exists for"
                     "CRNTI:%d ",ueCfg->crnti);
            break;
         }
@@ -2991,7 +2984,7 @@ RgSchErrInfo *errInfo
      if (((rgSCHUtlAllocSBuf(inst, (Data **)&ue, sizeof(RgSchUeCb))) != ROK) ||
             ((uint8_t *)ue == NULLP))
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId, "Memory allocation"
+        DU_LOG("\nERROR  -->  SCH : Memory allocation"
            " FAILED for CRNTI:%d", ueCfg->crnti);
         break;
      }
@@ -3011,11 +3004,11 @@ RgSchErrInfo *errInfo
                   sizeof(RgSchUeCellInfo))) != ROK))
    {
 #ifndef ALIGN_64BIT
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%lu]SCellIdx :Memomy allocation "
-               "Failed while Adding SCell Information\n", idx));
+      DU_LOG("\nERROR  -->  SCH : [%lu]SCellIdx :Memomy allocation "
+               "Failed while Adding SCell Information\n", idx);
 #else
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%u]SCellIdx :Memomy allocation "
-               "Failed while Adding SCell Information\n", idx));
+      DU_LOG("\nERROR  -->  SCH : [%u]SCellIdx :Memomy allocation "
+               "Failed while Adding SCell Information\n", idx);
 #endif
       return RFAILED;
    }
@@ -3050,7 +3043,7 @@ RgSchErrInfo *errInfo
      /* Initialize the lists of the UE */
      if((rgSCHDbmInitUe(ue)) != ROK)
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"DBM initialization "
+        DU_LOG("\nERROR  -->  SCH : DBM initialization "
            "failed for CRNTI:%d", ueCfg->crnti);
         break;
      }
@@ -3062,7 +3055,7 @@ RgSchErrInfo *errInfo
            ue->isEmtcUe = TRUE;
            if (rgSCHUtlUpdUeEmtcInfo(cell, ueCfg, ue) != ROK)
            {
-              RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"EMTC UE Cfg"
+              DU_LOG("\nERROR  -->  SCH : EMTC UE Cfg"
                     "failed for CRNTI:%d", ueCfg->crnti);
               break;
            }
@@ -3073,7 +3066,7 @@ RgSchErrInfo *errInfo
      /* Initialize scheduler related information for UE */
      if(rgSCHUtlRgrUeCfg(cell, ue, ueCfg, errInfo) != ROK)
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"Scheduler handling "
+        DU_LOG("\nERROR  -->  SCH : Scheduler handling "
                  "failed in config for CRNTI:%d", ueCfg->crnti);
         break;
      }
@@ -3081,7 +3074,7 @@ RgSchErrInfo *errInfo
      ret = rgSCHUhmHqEntInit(cell, ue);
      if (ret != ROK)
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"UHM HARQ Ent Init "
+        DU_LOG("\nERROR  -->  SCH : UHM HARQ Ent Init "
            "Failed for CRNTI:%d", ueCfg->crnti);
         break;
      }
@@ -3093,7 +3086,7 @@ RgSchErrInfo *errInfo
      {
         if((rgSCHRamRgrUeCfg(cell, ue, raCb, errInfo)) != ROK)
         {
-           RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"Random access "
+           DU_LOG("\nERROR  -->  SCH : Random access "
               "handling config failed for CRNTI:%d", ueCfg->crnti);
            break;
         }
@@ -3104,7 +3097,7 @@ RgSchErrInfo *errInfo
         hqEnt = RG_SCH_CMN_GET_UE_HQE(ue, cell);
         if (hqEnt == NULLP)
         {
-           RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"Hq Entity Initialization "
+           DU_LOG("\nERROR  -->  SCH : Hq Entity Initialization "
                     "failed in config for CRNTI:%d", ueCfg->crnti);
            break;
         }
@@ -3173,8 +3166,7 @@ RgSchErrInfo *errInfo
          * do this. */
         if (raCb->raState == RGSCH_RA_MSG4_DONE)
         {
-           RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-                 "RNTI:%d RaCb deleted as Msg4 transmission is done",
+           DU_LOG("\nERROR  -->  SCH : RNTI:%d RaCb deleted as Msg4 transmission is done",
                  raCb->tmpCrnti);
            rgSCHRamDelRaCb(cell, raCb, FALSE);
         }
@@ -3201,7 +3193,7 @@ RgSchErrInfo *errInfo
      /* Initialize MeasureGap and Acknack Rep Information for UE */
      if((rgSCHMeasGapANRepUeCfg(cell, ue, ueCfg)) != ROK)
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"Measurement Gap and"
+        DU_LOG("\nERROR  -->  SCH : Measurement Gap and"
                  " AckNack Rep failed in Config for CRNTI:%d", ueCfg->crnti);
         break;
      }
@@ -3210,7 +3202,7 @@ RgSchErrInfo *errInfo
 #ifdef LTE_TDD
      if((rgSCHUtlAllocUeANFdbkInfo(ue,RGSCH_PCELL_INDEX)) != ROK)
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"Memomy allocation "
+        DU_LOG("\nERROR  -->  SCH : Memomy allocation "
                  "Failed while UE related Ack Nack Information for CRNTI:%d",
                  ueCfg->crnti);
         break;
@@ -3224,9 +3216,8 @@ RgSchErrInfo *errInfo
 #ifdef TFU_UPGRADE
      /*  Int ialize APeriodic CQI/PMI/RI Information for UE */
 
-   RGSCHDBGPRM(cell->instIdx,(rgSchPBuf(cell->instIdx), 
-            "\n rgSCHCfgRgrUeCfg : CellID=%d  UeId =%d  AcqiCfg Pres =%d",
-            cell->cellId, ue->ueId, ueCfg->ueDlCqiCfg.aprdCqiCfg.pres));
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCfgRgrUeCfg CellID=%d UeId =%d AcqiCfg Pres =%d", cell->cellId, ue->ueId,\
+      ueCfg->ueDlCqiCfg.aprdCqiCfg.pres);
 
       /*Store Trigger Set Bit String to UE */
       
@@ -3249,8 +3240,7 @@ RgSchErrInfo *errInfo
 #ifdef LTEMAC_HDFDD
      if (rgSCHHdFddUeCfg(cell, ue, ueCfg->isHdFddEnbld) != ROK)
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,
-                 "Could not do HD-FDD config for CRNTI:%d",ueCfg->crnti);
+        DU_LOG("\nERROR  -->  SCH : Could not do HD-FDD config for CRNTI:%d",ueCfg->crnti);
         break;
      }
 
@@ -3275,8 +3265,7 @@ RgSchErrInfo *errInfo
      {
         if((rgSCHDrxUeCfg(cell,ue,ueCfg)) != ROK )
         {
-           RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId,"DRX configuration failed",
-                     ueCfg->crnti);
+           DU_LOG("\nERROR  -->  SCH : DRX configuration failed");
            break;
         }
      }
@@ -3296,8 +3285,7 @@ RgSchErrInfo *errInfo
 #ifdef LTE_ADV
      /*Update A Value for PCell TBs*/
      ue->f1bCsAVal = rgSCHUtlGetMaxTbSupp(ue->mimoInfo.txMode); 
-     RLOG_ARG1(L_ERROR,DBG_CELLID, ueCfg->cellId,
-            "\n UeCfg A value is %d\n",ue->f1bCsAVal);
+     DU_LOG("\nERROR  -->  SCH :  UeCfg A value is %d\n",ue->f1bCsAVal);
 #endif
      errInfo->errCause = RGSCHERR_NONE;
 
@@ -3444,7 +3432,7 @@ RgSchErrInfo  *errInfo
    ret =  rgSCHUtlRgrCellRecfg(cell, cellRecfg, errInfo);
    if (ret != ROK)
    {
-     RLOG_ARG0(L_ERROR,DBG_CELLID,cellRecfg->cellId, "RGR Cell re-configuration failed "
+     DU_LOG("\nERROR  -->  SCH : RGR Cell re-configuration failed "
           "at Scheduler ");
       return RFAILED;
    }
@@ -3516,8 +3504,7 @@ RgSchErrInfo  *errInfo
          if( ROK != rgSCHUtlResetCpuOvrLdState(cell, cellRecfg->cntrlCmdCfg.cmdDesc.\
                                           cpuOvrLd.instruction))
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID, cellRecfg->cellId,
-               "Invalid CPU OvrLd Ins %d for cell", 
+            DU_LOG("\nERROR  -->  SCH : Invalid CPU OvrLd Ins %d for cell", 
               cellRecfg->cntrlCmdCfg.cmdDesc.cpuOvrLd.instruction);
             return RFAILED;
          }
@@ -3593,8 +3580,7 @@ RgSchErrInfo  *errInfo
                if((rgSCHUtlAllocSBuf(inst, (Data**)&(cell->rntpAggrInfo.val),
                            (len * sizeof(uint8_t)))) != ROK)
                {
-                  RLOG_ARG0(L_ERROR,DBG_CELLID,cellRecfg->cellId,
-                            "Memory allocation FAILED for RNTP Alloc");
+                  DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for RNTP Alloc");
                   return RFAILED;
                }
                cell->rntpAggrInfo.pres = PRSNT_NODEF;
@@ -3651,7 +3637,7 @@ RgSchErrInfo  *errInfo
    {
      if(cell->isAutoCfgModeEnb)
      {
-        RLOG0(L_INFO,"Auto Mode Cfg enabled durint cell recfg\n");
+        DU_LOG("\nINFO  -->  SCH : Auto Mode Cfg enabled durint cell recfg\n");
      }
    }
 
@@ -3711,7 +3697,7 @@ RgSchErrInfo   *errInfo
       CmLteRnti      oldRnti = 0;
       if ((raCb = rgSCHDbmGetRaCb(cell, ueRecfg->newCrnti)) == NULLP)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"UEID:No RaCb exists while"
+         DU_LOG("\nERROR  -->  SCH : UEID:No RaCb exists while"
               "Reconfig for OLD CRNTI:%d NEW CRNTI:%d",ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
       }
@@ -3727,7 +3713,7 @@ RgSchErrInfo   *errInfo
          oldRnti = ue->ueId;
       }
      
-      RLOG2(L_INFO,"UE ID CHNG OLD %d new %d",ueRecfg->oldCrnti, ueRecfg->newCrnti); 
+      DU_LOG("\nINFO  -->  SCH : UE ID CHNG OLD %d new %d",ueRecfg->oldCrnti, ueRecfg->newCrnti); 
 
       /* Fix : syed Deleting Old DL HqEnt. It would be assigned after
        * reest RACH(msg4) is completed. */
@@ -3737,7 +3723,7 @@ RgSchErrInfo   *errInfo
       ret = rgSCHRamRgrUeCfg(cell, ue, raCb, errInfo);
       if (ret != ROK)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"RAM Handling for UE Reconfig failed"
+         DU_LOG("\nERROR  -->  SCH : RAM Handling for UE Reconfig failed"
               "for OLD CRNTI:%d NEW CRNTI:%d",ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
       }
@@ -3759,8 +3745,7 @@ RgSchErrInfo   *errInfo
 
       /* Inititialize Ue control block */
       ue->ueId = ueRecfg->newCrnti;
-      RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
-            "Changing RNTI from %d to %d",
+      DU_LOG("\nDEBUG  -->  SCH : Changing RNTI from %d to %d",
             ueRecfg->oldCrnti, 
             ueRecfg->newCrnti);
 #ifdef EMTC_ENABLE 
@@ -3798,7 +3783,7 @@ RgSchErrInfo   *errInfo
 
          if ( ret != ROK )
          {
-             RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"UE DRX re-est failed"
+             DU_LOG("\nERROR  -->  SCH : UE DRX re-est failed"
               "for OLD CRNTI:%d NEW CRNTI:%d",ueRecfg->oldCrnti,ueRecfg->newCrnti);
              return RFAILED;
          }
@@ -3833,8 +3818,7 @@ RgSchErrInfo   *errInfo
        * for msg4 */
       if (raCb->raState == RGSCH_RA_MSG4_DONE)
       {
-         RLOG_ARG1(L_DEBUG,DBG_CELLID,ueRecfg->cellId,
-               "RNTI:%d with RaCb deleted as Msg4 transmission is done", 
+         DU_LOG("\nDEBUG  -->  SCH : RNTI:%d with RaCb deleted as Msg4 transmission is done", 
                raCb->tmpCrnti);
          rgSCHRamDelRaCb(cell, raCb, FALSE);
       }
@@ -3859,8 +3843,7 @@ RgSchErrInfo   *errInfo
       {
         /* Fix : syed HO UE does not have a valid ue->rntiLnk */
             /* Just indicate to MAC, no need to release at SCH */
-         RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
-               "HO OldRnti:%d RLS and NewRnti:%d CHNG IND TO MAC",
+         DU_LOG("\nDEBUG  -->  SCH : HO OldRnti:%d RLS and NewRnti:%d CHNG IND TO MAC",
                oldRnti, ueRecfg->newCrnti);
          rgSCHUtlIndRntiRls2Mac(cell, oldRnti, TRUE, ueRecfg->newCrnti);
       }
@@ -3973,8 +3956,7 @@ RgSchErrInfo   *errInfo
       ret = rgSCHUtlRgrUeRecfg(cell, ue, ueRecfg, errInfo);
       if (ret != ROK)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,
-             "Scheduler handling while reconfig failed"
+         DU_LOG("\nERROR  -->  SCH : Scheduler handling while reconfig failed"
               "for OLD CRNTI:%d NEW CRNTI:%d",ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
       }
@@ -3995,7 +3977,7 @@ RgSchErrInfo   *errInfo
          ret = rgSCHMeasGapANRepUeRecfg(cell, ue, ueRecfg);
          if (ret != ROK)
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Measurement Gap and"
+            DU_LOG("\nERROR  -->  SCH : Measurement Gap and"
                      "AckNack Rep Recfg failed for OLD CRNTI:%d NEW CRNTI:%d",
                       ueRecfg->oldCrnti,ueRecfg->newCrnti);
             return RFAILED;
@@ -4015,7 +3997,7 @@ RgSchErrInfo   *errInfo
 
    if (RFAILED == rgSCHCfgRgrUeRecfgRntiChg (cell, ue, ueRecfg, errInfo))
    {
-       RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"RNTI change "
+       DU_LOG("\nERROR  -->  SCH : RNTI change "
                "failed for OLD CRNTI:%d NEW CRNTI:%d",
                 ueRecfg->oldCrnti,ueRecfg->newCrnti);
        return RFAILED;
@@ -4064,7 +4046,7 @@ RgSchErrInfo   *errInfo
 
      if ( ret != ROK )
      {
-        RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"UE DRX reconfig failed"
+        DU_LOG("\nERROR  -->  SCH : UE DRX reconfig failed"
                "failed for OLD CRNTI:%d NEW CRNTI:%d",
                 ueRecfg->oldCrnti,ueRecfg->newCrnti);
         return RFAILED;
@@ -4166,7 +4148,7 @@ RgSchErrInfo   *errInfo
    ret = rgSCHUtlRgrLcRecfg(cell, ue, dlLc, lcRecfg, errInfo);
    if (ret != ROK)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcRecfg->cellId,"Scheduler handling for LC Recfg"
+      DU_LOG("\nERROR  -->  SCH : Scheduler handling for LC Recfg"
               " failed for CRNTI:%d LCID:%d",lcRecfg->crnti,lcRecfg->lcId);
       return RFAILED;
    }
@@ -4215,7 +4197,7 @@ RgSchErrInfo   *errInfo
    ret = rgSCHUtlRgrLcgRecfg(cell, ue, lcgRecfg, errInfo);
    if (ret != ROK)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcgRecfg->cellId,"Scheduler handling for LCG Recfg"
+      DU_LOG("\nERROR  -->  SCH : Scheduler handling for LCG Recfg"
               " failed for CRNTI:%d LCGID:%d",lcgRecfg->crnti,lcgRecfg->ulRecfg.lcgId);
       return RFAILED;
    }
@@ -4357,8 +4339,7 @@ RgSchErrInfo   *errInfo
 
    if (cell->cellId != cellDelInfo->u.cellDel.cellId)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cellDelInfo->u.cellDel.cellId, 
-                "Cell does not exist");
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist");
       return RFAILED;
    }
 
@@ -4408,8 +4389,7 @@ RgSchErrInfo        *errInfo
 
    if (cell->cellId != ueDelInfo->u.ueDel.cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,ueDelInfo->u.ueDel.cellId, 
-                "Cell does not exist CRNTI:%d",
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist CRNTI:%d",
                 ueDelInfo->u.ueDel.crnti);
       return RFAILED;
    }
@@ -4417,8 +4397,7 @@ RgSchErrInfo        *errInfo
    {
       if((raCb = rgSCHDbmGetRaCb(cell, ueDelInfo->u.ueDel.crnti)) == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,ueDelInfo->u.ueDel.cellId,
-                  "RaCb does not exist for CRNTI:%d",ueDelInfo->u.ueDel.crnti);
+         DU_LOG("\nERROR  -->  SCH : RaCb does not exist for CRNTI:%d",ueDelInfo->u.ueDel.crnti);
          return RFAILED;
       }
       else
@@ -4545,7 +4524,7 @@ RgSchErrInfo   *errInfo
    /* Fetch the Active cell */
    if (cell->cellId != lcDelInfo->u.lchDel.cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,  "Cell does not exist %d",
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist %d",
                   lcDelInfo->u.lchDel.cellId);
       return RFAILED;
    }
@@ -4553,15 +4532,13 @@ RgSchErrInfo   *errInfo
    /* Fetch the Ue */
    if ((ue = rgSCHDbmGetUeCb(cell, lcDelInfo->u.lchDel.crnti)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcDelInfo->u.lchDel.cellId, 
-                "UE does not exist for CRNTI:%d LCID:%d",
+      DU_LOG("\nERROR  -->  SCH : UE does not exist for CRNTI:%d LCID:%d",
                lcDelInfo->u.lchDel.crnti,lcDelInfo->u.lchDel.lcId);
       return RFAILED;
    }
    if (lcDelInfo->u.lchDel.lcgId > 3)
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,lcDelInfo->u.lchDel.cellId, 
-                "[%d]UEID:For LC %d, LCGid %d is invalid",
+      DU_LOG("\nERROR  -->  SCH : [%d]UEID:For LC %d, LCGid %d is invalid",
                lcDelInfo->u.lchDel.crnti,lcDelInfo->u.lchDel.lcId,
                lcDelInfo->u.lchDel.lcgId);
       return RFAILED;
@@ -4569,8 +4546,7 @@ RgSchErrInfo   *errInfo
    if ((dlLc = rgSCHDbmGetDlDedLcCb(ue, lcDelInfo->u.lchDel.lcId))
          == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcDelInfo->u.lchDel.cellId,
-                "LC does not exist for CRNTI:%d LCID:%d",
+      DU_LOG("\nERROR  -->  SCH : LC does not exist for CRNTI:%d LCID:%d",
                lcDelInfo->u.lchDel.crnti, lcDelInfo->u.lchDel.lcId);
       return RFAILED;
    }
@@ -4664,8 +4640,7 @@ RgSchErrInfo   *errInfo
    /* Fetch the Active cell */
    if (cell->cellId != lcDelInfo->u.lcgDel.cellId)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcDelInfo->u.lchDel.cellId,
-                "CELL does not exist for CRNTI:%d LCGID:%d",
+      DU_LOG("\nERROR  -->  SCH : CELL does not exist for CRNTI:%d LCGID:%d",
                lcDelInfo->u.lchDel.crnti,lcDelInfo->u.lchDel.lcId);
       return RFAILED;
    }
@@ -4673,8 +4648,7 @@ RgSchErrInfo   *errInfo
    /* Fetch the Ue */
    if ((ue = rgSCHDbmGetUeCb(cell, lcDelInfo->u.lcgDel.crnti)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcDelInfo->u.lchDel.cellId,
-                "UE does not exist for CRNTI:%d LCGID:%d",
+      DU_LOG("\nERROR  -->  SCH : UE does not exist for CRNTI:%d LCGID:%d",
                lcDelInfo->u.lchDel.crnti,lcDelInfo->u.lchDel.lcId);
       return RFAILED;
    }
@@ -4745,7 +4719,7 @@ RgSchErrInfo     *errInfo
    if (((*cell) == NULLP) ||
        ((*cell)->cellId != lcCfg->cellId))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcCfg->cellId,"Cell does not existi for "
+      DU_LOG("\nERROR  -->  SCH : Cell does not existi for "
                "CRNTI:%d LCID:%d",lcCfg->crnti, lcCfg->lcId);
       return RFAILED;
    }
@@ -4753,7 +4727,7 @@ RgSchErrInfo     *errInfo
    /* Fetch the Ue */
    if ((*ue = rgSCHDbmGetUeCb(*cell, lcCfg->crnti)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcCfg->cellId,"UE does not exist for dedicated"
+      DU_LOG("\nERROR  -->  SCH : UE does not exist for dedicated"
          " logical channel CRNTI:%d LCID:%d", lcCfg->crnti, lcCfg->lcId);
       return RFAILED;
    }
@@ -4762,14 +4736,14 @@ RgSchErrInfo     *errInfo
    if ((lcCfg->lcId < RGSCH_DEDLC_MIN_LCID)
             ||(lcCfg->lcId > RGSCH_DEDLC_MAX_LCID))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcCfg->cellId,"Invalid logical channel Id:%d"
+      DU_LOG("\nERROR  -->  SCH : Invalid logical channel Id:%d"
                "for CRNTI:%d",lcCfg->lcId,lcCfg->crnti);
       return RFAILED;
    }
 
    if (lcCfg->lcType != CM_LTE_LCH_DTCH && lcCfg->lcType != CM_LTE_LCH_DCCH)
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,lcCfg->cellId,"Invalid logical channel Type %d"
+      DU_LOG("\nERROR  -->  SCH : Invalid logical channel Type %d"
                "CRNTI:%d LCID:%d",lcCfg->lcType,lcCfg->crnti, lcCfg->lcId);
       return RFAILED;
    }
@@ -4808,7 +4782,7 @@ RgSchErrInfo     *errInfo
    if (((*cell) == NULLP) ||
        ((*cell)->cellId != lcgCfg->cellId))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcgCfg->cellId,"Cell does not exist for"
+      DU_LOG("\nERROR  -->  SCH : Cell does not exist for"
                "CRNTI:%d LCGID:%d",lcgCfg->crnti,lcgCfg->ulInfo.lcgId);
       return RFAILED;
    }
@@ -4816,7 +4790,7 @@ RgSchErrInfo     *errInfo
    /* Fetch the Ue */
    if ((*ue = rgSCHDbmGetUeCb(*cell, lcgCfg->crnti)) == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcgCfg->cellId,"UE does not exist for "
+      DU_LOG("\nERROR  -->  SCH : UE does not exist for "
         "dedicated logical channel CRNTI:%d LCGID:%d", lcgCfg->crnti, lcgCfg->ulInfo.lcgId);
       return RFAILED;
    }
@@ -4931,8 +4905,7 @@ RgSchErrInfo     *errInfo
                   }
                   else
                   {
-                     RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,
-                           "Invalid si config for cell");
+                     DU_LOG("\nERROR  -->  SCH : Invalid si config for cell");
                      return RFAILED;
                   }
                }
@@ -4943,8 +4916,7 @@ RgSchErrInfo     *errInfo
             }
             else
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID, cellCfg->cellId,
-                     "Invalid transport channel %d for cell", lcCfg->dlTrchType);
+               DU_LOG("\nERROR  -->  SCH : Invalid transport channel %d for cell", lcCfg->dlTrchType);
                return RFAILED;
             }
          }
@@ -4965,8 +4937,7 @@ RgSchErrInfo     *errInfo
          /* Uplink CCCH */
          if (lcCfg->lcType != CM_LTE_LCH_CCCH)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID, cellCfg->cellId,"Invalid UL common lcType %d "
-             "for cell", lcCfg->lcType);
+            DU_LOG("\nERROR  -->  SCH : Invalid UL common lcType %d for cell", lcCfg->lcType);
             return RFAILED;
          }
          else
@@ -4979,15 +4950,13 @@ RgSchErrInfo     *errInfo
       /* Invalid direction */
       if (!dirVld)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID, cellCfg->cellId,"Invalid Direction %d", 
-            lcCfg->dir);
+         DU_LOG("\nERROR  -->  SCH : Invalid Direction %d", lcCfg->dir);
          return RFAILED;
       }
    }
    if (bitMask != RGSCH_CELL_ACTIVE_CFG)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID, cellCfg->cellId,
-                "Invalid Common channel config for cell");
+      DU_LOG("\nERROR  -->  SCH : Invalid Common channel config for cell");
       return RFAILED;
    }
 
@@ -5022,8 +4991,7 @@ RgrUeDlCqiCfg     *ueDlCqiCfg
    if((ueDlCqiCfg->prdCqiCfg.cqiPmiCfgIdx < 1) || 
          (ueDlCqiCfg->prdCqiCfg.cqiPmiCfgIdx > 1024))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                  "Invalid Periodic CQI Info");
+      DU_LOG("\nERROR  -->  SCH : Invalid Periodic CQI Info");
       return RFAILED;
    }
 #endif
@@ -5032,18 +5000,14 @@ RgrUeDlCqiCfg     *ueDlCqiCfg
        ((ueDlCqiCfg->aprdCqiCfg.aprdModeEnum > RGR_APRD_CQI_MOD31) ||
         (cell->bwCfg.dlTotalBw <= 7)))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                  "Invalid Aperiodic mode config for DL CQI",
-            ueDlCqiCfg->aprdCqiCfg.aprdModeEnum);
+      DU_LOG("\nERROR  -->  SCH : Invalid Aperiodic mode config for DL CQI");
       return RFAILED;
    }
 #ifndef TFU_UPGRADE
    /* Validate UE Periodic CQI mode */ 
    if (ueDlCqiCfg->prdCqiCfg.prdModeEnum > RGR_PRD_CQI_MOD21)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                  "Invalid periodic mode config for DL CQI",
-                  ueDlCqiCfg->prdCqiCfg.prdModeEnum);
+      DU_LOG("\nERROR  -->  SCH : Invalid periodic mode config for DL CQI");
       return RFAILED;
    }
    /* Validate K value in periodic CQI Config */
@@ -5052,17 +5016,14 @@ RgrUeDlCqiCfg     *ueDlCqiCfg
          ((ueDlCqiCfg->prdCqiCfg.k < 1)||
             (ueDlCqiCfg->prdCqiCfg.k > 4)))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                  "Invalid K for Subband CQI reporting");
+      DU_LOG("\nERROR  -->  SCH : Invalid K for Subband CQI reporting");
       return RFAILED;
    }
 #else
    if ((ueDlCqiCfg->prdCqiCfg.type == 1) &&
        (ueDlCqiCfg->prdCqiCfg.cqiSetup.prdModeEnum > RGR_PRD_CQI_MOD21))
    {
-     RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                 "Invalid periodic mode config for DL CQI",
-                 ueDlCqiCfg->prdCqiCfg.cqiSetup.prdModeEnum);
+     DU_LOG("\nERROR  -->  SCH : Invalid periodic mode config for DL CQI");
      return RFAILED;
    }
 
@@ -5098,7 +5059,7 @@ RgrUeCfg          *ueCfg
    if ((ueCfg->ackNackModeEnum == RGR_TDD_ACKNACK_MODE_MULT) &&
          (ueCfg->ueAckNackCfg.isAckNackEnabled == TRUE))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueCfg->cellId,"TDD ACK NACK Multiplexing Mode"
+      DU_LOG("\nERROR  -->  SCH : TDD ACK NACK Multiplexing Mode"
       "is not allowed when Ack/Nack is Enabled: %d CRNTI:%d",
        ueCfg->ueAckNackCfg.ackNackRepFactor,ueCfg->crnti);
       return RFAILED;
@@ -5116,7 +5077,7 @@ RgrUeCfg          *ueCfg
    if ( (ueCfg->ueAckNackCfg.ackNackRepFactor < RGR_ACKNACK_REPFACT_N2)
          || (ueCfg->ueAckNackCfg.ackNackRepFactor > RGR_ACKNACK_REPFACT_N6))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueCfg->cellId, "Invalid ACK NACK REP Factor:%d CRNTI:%d",
+      DU_LOG("\nERROR  -->  SCH : Invalid ACK NACK REP Factor:%d CRNTI:%d",
                ueCfg->ueAckNackCfg.ackNackRepFactor,ueCfg->crnti);
       return RFAILED;
    }
@@ -5128,7 +5089,7 @@ RgrUeCfg          *ueCfg
       case RG_MEAS_GAPPRD_40:
          if(ueCfg->ueMesGapCfg.gapOffst >= RG_MEAS_GAPPRD_40)
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueCfg->cellId,"Invalid GAP Offset:%d CRNTI:%d",
+            DU_LOG("\nERROR  -->  SCH : Invalid GAP Offset:%d CRNTI:%d",
                      ueCfg->ueMesGapCfg.gapOffst,ueCfg->crnti);
             return RFAILED;
          }
@@ -5136,14 +5097,14 @@ RgrUeCfg          *ueCfg
       case RG_MEAS_GAPPRD_80:
          if(ueCfg->ueMesGapCfg.gapOffst >= RG_MEAS_GAPPRD_80)
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueCfg->cellId,"Invalid GAP Offset:%d CRNTI:%d",
+            DU_LOG("\nERROR  -->  SCH : Invalid GAP Offset:%d CRNTI:%d",
                      ueCfg->ueMesGapCfg.gapOffst,ueCfg->crnti);
             return RFAILED;
          }
          break;
          default:
          { 
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueCfg->cellId,"Invalid GAP Periodicity Settings:%d"
+            DU_LOG("\nERROR  -->  SCH : Invalid GAP Periodicity Settings:%d"
                       "CRNTI:%d", ueCfg->ueMesGapCfg.gapPrd,ueCfg->crnti);
             return RFAILED;
          }
@@ -5189,7 +5150,7 @@ RgrUeRecfg        *ueRecfg
    if ( (ueRecfg->ueAckNackRecfg.ackNackRepFactor < RGR_ACKNACK_REPFACT_N2)
          || (ueRecfg->ueAckNackRecfg.ackNackRepFactor > RGR_ACKNACK_REPFACT_N6))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid ACK NACK REP Factor:%d"
+      DU_LOG("\nERROR  -->  SCH : Invalid ACK NACK REP Factor:%d"
                "NEW CRNTI:%d",ueRecfg->ueAckNackRecfg.ackNackRepFactor,ueRecfg->newCrnti);
       return RFAILED;
    }
@@ -5201,7 +5162,7 @@ RgrUeRecfg        *ueRecfg
       case RG_MEAS_GAPPRD_40:
          if(ueRecfg->ueMeasGapRecfg.gapOffst >= RG_MEAS_GAPPRD_40)
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid GAP Offset:%d"
+            DU_LOG("\nERROR  -->  SCH : Invalid GAP Offset:%d"
                      "NEW CRNTI:%d",ueRecfg->ueMeasGapRecfg.gapOffst,ueRecfg->newCrnti);
             return RFAILED;
          }
@@ -5209,14 +5170,14 @@ RgrUeRecfg        *ueRecfg
       case RG_MEAS_GAPPRD_80:
          if(ueRecfg->ueMeasGapRecfg.gapOffst >= RG_MEAS_GAPPRD_80)
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid GAP Offset:%d"
+            DU_LOG("\nERROR  -->  SCH : Invalid GAP Offset:%d"
                      "NEW CRNTI:%d",ueRecfg->ueMeasGapRecfg.gapOffst,ueRecfg->newCrnti);
             return RFAILED;
          }
          break;
          default:
          { 
-            RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid GAP Periodicity Settings:%d"
+            DU_LOG("\nERROR  -->  SCH : Invalid GAP Periodicity Settings:%d"
                      "NEW CRNTI:%d",ueRecfg->ueMeasGapRecfg.gapPrd,ueRecfg->newCrnti);
             return RFAILED;
          }
@@ -5256,7 +5217,7 @@ RgrUeSpsDlCfg     *dlSpsCfg
    if ((dlSpsCfg->numPucchVal > RG_SCH_MAX_NUM_N1PUCCH_PER_UE) ||
          (dlSpsCfg->numPucchVal == 0))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid number of n1Pucch values"
+      DU_LOG("\nERROR  -->  SCH : Invalid number of n1Pucch values"
                " in DL SPS Config");
       return RFAILED;
    }
@@ -5266,10 +5227,10 @@ RgrUeSpsDlCfg     *dlSpsCfg
       if (dlSpsCfg->n1PucchVal[idx] > RG_SCH_MAX_N1PUCCH_VAL)
       {
 #ifdef ALIGN_64BIT
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid N1Pucch value"
+         DU_LOG("\nERROR  -->  SCH : Invalid N1Pucch value"
                   " in DL SPS Config %u", dlSpsCfg->n1PucchVal[idx]);
 #else
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid N1Pucch value"
+         DU_LOG("\nERROR  -->  SCH : Invalid N1Pucch value"
                   " in DL SPS Config %lu", dlSpsCfg->n1PucchVal[idx]);
 #endif
          return RFAILED;
@@ -5279,7 +5240,7 @@ RgrUeSpsDlCfg     *dlSpsCfg
    if ((dlSpsCfg->numSpsHqProc == 0) ||
          (dlSpsCfg->numSpsHqProc > RGSCH_MAX_DL_HQ_PROC))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid number of SPS HARQ procs"
+      DU_LOG("\nERROR  -->  SCH : Invalid number of SPS HARQ procs"
                " in DL SPS Config");
       return RFAILED;
    }
@@ -5317,7 +5278,7 @@ RgrUeUlPwrCfg     *pwrCfg
       /* Fix */
       if (pwrCfg->uePuschPwr.pres)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Accumulation configutation"
+         DU_LOG("\nERROR  -->  SCH : Accumulation configutation"
               " not in sync with group power configuration");
          return RFAILED;
       }
@@ -5325,13 +5286,13 @@ RgrUeUlPwrCfg     *pwrCfg
 
    if (rgSCHCfgVldtUeGrpPwrCfg(cell, &pwrCfg->uePuschPwr) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid PUSCH Group power"
+      DU_LOG("\nERROR  -->  SCH : Invalid PUSCH Group power"
            " configuration");
       return RFAILED;
    }
    if (rgSCHCfgVldtUeGrpPwrCfg(cell, &pwrCfg->uePucchPwr) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid PUSCH Group power"
+      DU_LOG("\nERROR  -->  SCH : Invalid PUSCH Group power"
            " configuration");
       return RFAILED;
    }
@@ -5367,7 +5328,7 @@ RgrUeGrpPwrCfg *grpPwrCfg
         ((grpPwrCfg->tpcRnti <
                      (cell->rntiDb.rntiStart + cell->rntiDb.maxRntis))))))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid Uplink Group power " 
+      DU_LOG("\nERROR  -->  SCH : Invalid Uplink Group power " 
              "configuration");
       return RFAILED;
    }
@@ -5411,14 +5372,14 @@ RgrUeRecfg        *ueRecfg
           (ueRecfg->ueSpsRecfg.spsRnti == RGSCH_SI_RNTI) ||
           (ueRecfg->ueSpsRecfg.spsRnti == RGSCH_P_RNTI))
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid SPS RNTI "
+         DU_LOG("\nERROR  -->  SCH : Invalid SPS RNTI "
                   " in DL SPS Recfg OLD CRNTI:%d NEW CCRNTI:%d",
                   ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
       }
       if (rgSCHCfgVldtUeDlSpsCfg(cell, &ueRecfg->ueSpsRecfg.dlSpsCfg) != ROK)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid DL SPS configuration"
+         DU_LOG("\nERROR  -->  SCH : Invalid DL SPS configuration"
                   " for the OLD CRNTI:%d NEW CRNTI:%d",
                   ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
@@ -5432,10 +5393,9 @@ RgrUeRecfg        *ueRecfg
      {
      /* ccpu00117035 - MOD - changed instIdx to inst */
      /* ccpu00117035 - MOD - changed ueID to oldCrnti*/
-      RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId, 
-               " DRX reconfig not supported DL SPS enabled for OLD CRNTI:%d NEW CRNTI:%d", 
+       DU_LOG("\nERROR  -->  SCH :  DRX reconfig not supported DL SPS enabled for OLD CRNTI:%d NEW CRNTI:%d", 
                   ueRecfg->oldCrnti,ueRecfg->newCrnti);
-      return RFAILED;
+       return RFAILED;
      }
    }
 #endif
@@ -5445,8 +5405,7 @@ RgrUeRecfg        *ueRecfg
    {
       if(ue->hdFddEnbld == TRUE)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,
-                  "DL SPS is not supported for HDFDD enabled for OLD CRNTI:%d NEW CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : DL SPS is not supported for HDFDD enabled for OLD CRNTI:%d NEW CRNTI:%d",
                   ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
       }
@@ -5455,8 +5414,7 @@ RgrUeRecfg        *ueRecfg
    {
       if(ue->hdFddEnbld == TRUE)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,
-                  "UL SPS is not supported for HDFDD enabled for OLD CRNTI:%d NEW CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : UL SPS is not supported for HDFDD enabled for OLD CRNTI:%d NEW CRNTI:%d",
                   ueRecfg->oldCrnti,ueRecfg->newCrnti);
          return RFAILED;
       }
@@ -5495,7 +5453,7 @@ RgrUeRecfg     *ueRecfg
    /* Validate DL Power Control Config parameters */
    if (ueRecfg->ueCqiReptCfg.numColltdCqiRept > RGR_CQIRPTS_MAXN)
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalide numColltdCqiRept,"
+      DU_LOG("\nERROR  -->  SCH : Invalide numColltdCqiRept,"
                "MAX supported %d for OLD CRNTI:%d NEW CRNTI:%d",RGR_CQIRPTS_MAXN,
                   ueRecfg->oldCrnti,ueRecfg->newCrnti);
       return RFAILED;
@@ -5543,13 +5501,13 @@ RgSchErrInfo     *errInfo
    if((ret = rgSCHUtlAllocSBuf(inst, (Data**)&dlLc, 
                sizeof(RgSchDlLcCb))) != ROK)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcCfg->cellId,"Memory allocation FAILED for "
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
                "Downlink LCId:%d CRNTI:%d", lcCfg->lcId,lcCfg->crnti);
       return RFAILED;
    }
    if ((uint8_t *)dlLc == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,lcCfg->cellId,"Memory allocation FAILED for "
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
                "Downlink LCID:%d CRNTI:%d", lcCfg->lcId,lcCfg->crnti);
       return RFAILED;
    }
@@ -5571,7 +5529,7 @@ RgSchErrInfo     *errInfo
          rgSCHCfgFreeDlDedLcCb(cell, ue, dlLc);
       }
 
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,"Dedicated logical channel "
+      DU_LOG("\nERROR  -->  SCH : Dedicated logical channel "
         "configuration failed at SCH:UEID:%d LCID:%d CRNTI:%d",
         ue->ueId, lcCfg->lcId,lcCfg->crnti);
       return RFAILED;
@@ -5588,7 +5546,7 @@ RgSchErrInfo     *errInfo
          rgSCHCfgFreeDlDedLcCb(cell, ue, dlLc);
       }
 
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,"Dedicated logical channel "
+      DU_LOG("\nERROR  -->  SCH : Dedicated logical channel "
         "configuration failed at SCH: UL LC CB already existing"
         " UEID:%d LCID:%d CRNTI:%d",
         ue->ueId, lcCfg->lcId,lcCfg->crnti);
@@ -5660,7 +5618,7 @@ RgSchErrInfo     *errInfo
    ret = rgSCHUtlRgrLcgCfg(cell, ue, lcgCfg, errInfo);
    if (ret != ROK)
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,"Dedicated logical channel "
+      DU_LOG("\nERROR  -->  SCH : Dedicated logical channel "
         "configuration failed at SCH: UEID:%d LCGID:%d CRNTI:%d",
         ue->ueId, lcgCfg->ulInfo.lcgId,lcgCfg->crnti);
       /* Roll back lcgCfg */
@@ -5677,12 +5635,12 @@ RgSchErrInfo     *errInfo
       if((ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data**)&ulLc, 
                   sizeof(RgSchUlLcCb))) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Memory allocation FAILED for ");
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED ");
          return RFAILED;
       }
       if ((uint8_t *)ulLc == NULLP)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Memory allocation FAILED for ");
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED ");
          return RFAILED;
       }
       /* Create UL LC context to maintain LCG to LC mapping and 
@@ -6299,7 +6257,7 @@ RgrSiCfg         *siCfg
    This validation is only applicable for FDD mode. */
    if(siCfg->retxCnt > siCfg->siWinSize) 
    {
-      RLOG0(L_ERROR,"retxCnt is greater than siWinSize, validation failed");
+      DU_LOG("\nERROR  -->  SCH : retxCnt is greater than siWinSize, validation failed");
       return RFAILED;
    }
 #endif
@@ -6307,7 +6265,7 @@ RgrSiCfg         *siCfg
    /* Validate that a valid value for numSi has been specified */
    if(siCfg->numSi > RGR_MAX_NUM_SI) 
    {
-      RLOG0(L_ERROR,"Validation for numSi in SI CFG failed");
+      DU_LOG("\nERROR  -->  SCH : Validation for numSi in SI CFG failed");
       return RFAILED;
    }
 
@@ -6333,7 +6291,7 @@ RgrSiCfg         *siCfg
                continue;
 
          default:
-            RLOG0(L_ERROR,"Validation for SI Periodicity in SI-CFG failed");
+            DU_LOG("\nERROR  -->  SCH : Validation for SI Periodicity in SI-CFG failed");
             return RFAILED;
       }
    }
@@ -6372,20 +6330,20 @@ uint8_t                       dlTotalBw
    {
       if(lteAdvCfg->sfrCfg.cellEdgeRbRange.startRb > lteAdvCfg->sfrCfg.cellEdgeRbRange.endRb)
       {
-         RLOG0(L_ERROR,"Invalid configuration of cell edge bandwidth for SFR feature");
+         DU_LOG("\nERROR  -->  SCH : Invalid configuration of cell edge bandwidth for SFR feature");
          return RFAILED;
       }
 
       if(lteAdvCfg->sfrCfg.cellEdgeRbRange.endRb >= dlTotalBw)
       {
-         RLOG0(L_ERROR,"Invalid configuration of cell edge end RB for SFR feature");
+        DU_LOG("\nERROR  -->  SCH : Invalid configuration of cell edge end RB for SFR feature");
          return RFAILED;
       }
          
 #ifdef TFU_UPGRADE      
       if(lteAdvCfg->sfrCfg.pwrThreshold.pLow >= lteAdvCfg->sfrCfg.pwrThreshold.pHigh)
       {
-         RLOG0(L_ERROR,"Invalid configuration of power threshold for SFR feature");
+         DU_LOG("\nERROR  -->  SCH : Invalid configuration of power threshold for SFR feature");
          return RFAILED;
       }
 #endif      
@@ -6396,7 +6354,7 @@ uint8_t                       dlTotalBw
       if((RGR_ABS_MUTE != lteAdvCfg->absCfg.absPatternType) && 
             (RGR_ABS_TRANSMIT != lteAdvCfg->absCfg.absPatternType)) 
       {
-         RLOG0(L_ERROR,"Invalid configuration of ABS pattern type");
+         DU_LOG("\nERROR  -->  SCH : Invalid configuration of ABS pattern type");
          return RFAILED;
       }
 
@@ -6407,8 +6365,8 @@ uint8_t                       dlTotalBw
       {   
          if((temp[idx] != 1) && (temp[idx] != 0))
         {
-         RLOG0(L_ERROR,"Invalid configuration of ABS pattern type");
-         return RFAILED;
+           DU_LOG("\nERROR  -->  SCH : Invalid configuration of ABS pattern type");
+           return RFAILED;
         }
       }
    }
@@ -6440,17 +6398,17 @@ RgrCellCsgParamCfg       *csgParam
 )
 {
 
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "Validating CSG Parameters \n"));
+   DU_LOG("\nDEBUG  -->  SCH : Validating CSG Parameters \n");
 
    if(csgParam->minDlResNonCsg > 100)
    {
-      RLOG0(L_ERROR,"Invalid Configuration of minimum DL resources "
+      DU_LOG("\nERROR  -->  SCH : Invalid Configuration of minimum DL resources "
             "for NON-CSG");
       return RFAILED;
    }
    if(csgParam->minUlResNonCsg > 100)
    {
-      RLOG0(L_ERROR,"Invalid Configuration of minimum UL resources "
+      DU_LOG("\nERROR  -->  SCH : Invalid Configuration of minimum UL resources "
             "for NON-CSG");
       return RFAILED;
    }
@@ -6503,7 +6461,7 @@ RgSchErrInfo *errInfo
          if((siCfg->siId < RGSCH_SI_SIID_LOWER_LMT) ||
                  (siCfg->siId > numSi))
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid SI Id value"
+            DU_LOG("\nERROR  -->  SCH : Invalid SI Id value"
                      " specified");
             return RFAILED;
          }
@@ -6529,14 +6487,14 @@ RgSchErrInfo *errInfo
          if((siCfg->siId < RGSCH_SI_SIID_LOWER_LMT) || 
                (siCfg->siId > numSi))
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid SI Id value"
+            DU_LOG("\nERROR  -->  SCH : Invalid SI Id value"
                      " specified");
             return RFAILED;
          }
 
          if(siCfg->siId > ((cell->siCfg.minPeriodicity * 10)/cell->siCfg.siWinSize))
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "SiId can not be scheduled ");
+            DU_LOG("\nERROR  -->  SCH : SiId can not be scheduled ");
             return RFAILED;
          }
          break;
@@ -6551,7 +6509,7 @@ RgSchErrInfo *errInfo
          break;
 #endif
       default:
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid cfgType "
+         DU_LOG("\nERROR  -->  SCH : Invalid cfgType "
                       "parameter value");
          return RFAILED;
    }
@@ -6559,7 +6517,7 @@ RgSchErrInfo *errInfo
    /*Validate the specified pdu */
    if(NULLP == siCfg->pdu)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid NULLP pdu "
+      DU_LOG("\nERROR  -->  SCH : Invalid NULLP pdu "
                    "specified");
       return RFAILED;
    }
@@ -6568,7 +6526,7 @@ RgSchErrInfo *errInfo
    SFndLenMsg(siCfg->pdu, &msgLen);
    if(0 == msgLen)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid pdu "
+      DU_LOG("\nERROR  -->  SCH : Invalid pdu "
                    "specified");
       return RFAILED;
    }
@@ -6619,7 +6577,7 @@ RgSchErrInfo      *errInfo
    if((loadInfReq->rgrCcPHighStartRb >= cell->lteAdvCb.sfrCfg.cellEdgeRbRange.startRb) && 
          (loadInfReq->rgrCcPHighStartRb <= cell->lteAdvCb.sfrCfg.cellEdgeRbRange.endRb))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid rgrCcPHighStartRb received specified");
+      DU_LOG("\nERROR  -->  SCH : Invalid rgrCcPHighStartRb received specified");
       return RFAILED;
    }
 
@@ -6627,7 +6585,7 @@ RgSchErrInfo      *errInfo
    if((loadInfReq->rgrCcPHighEndRb >= cell->lteAdvCb.sfrCfg.cellEdgeRbRange.startRb) && 
          (loadInfReq->rgrCcPHighEndRb <= cell->lteAdvCb.sfrCfg.cellEdgeRbRange.endRb))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid rgrCcPHighEndRb received specified");
+      DU_LOG("\nERROR  -->  SCH : Invalid rgrCcPHighEndRb received specified");
       return RFAILED;
    }
 
@@ -6765,8 +6723,7 @@ RgSchErrInfo       *errInfo
          if ( ROK != rgSCHCfgVldtRgrTxmodePuschMode(cellCb, txMde,
                   puschMode, errInfo))
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-                     "Invalid Aperiodic CQI configuration CRNTI:%d",crnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid Aperiodic CQI configuration CRNTI:%d",crnti);
             return RFAILED;
          } 
       }
@@ -6885,8 +6842,7 @@ RgSchErrInfo       *errInfo
          if ( ROK != rgSCHCfgVldtRgrTxmodePucchMode(cellCb, txMde,
                   pucchMode, errInfo))
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-                     "Invalid Tx Mode-PUCCH Mode combination CRNTI:%d",crnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid Tx Mode-PUCCH Mode combination CRNTI:%d",crnti);
             return RFAILED;
          } 
       }
@@ -6896,8 +6852,7 @@ RgSchErrInfo       *errInfo
               ((pucchMode == RGR_PRD_CQI_MOD20) ||
                (pucchMode == RGR_PRD_CQI_MOD21)))
       {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-                     "Invalid Reporting Type-PUCCH Mode combination CRNTI:%d",crnti);
+          DU_LOG("\nERROR  -->  SCH : Invalid Reporting Type-PUCCH Mode combination CRNTI:%d",crnti);
             return RFAILED;
       }
 
@@ -6905,8 +6860,7 @@ RgSchErrInfo       *errInfo
               ((pucchMode == RGR_PRD_CQI_MOD10) ||
                (pucchMode == RGR_PRD_CQI_MOD11)))
       {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-                     "Invalid Reporting Type-PUCCH Mode combination CRNTI:%d",crnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid Reporting Type-PUCCH Mode combination CRNTI:%d",crnti);
             return RFAILED;
       }
 
@@ -6914,8 +6868,7 @@ RgSchErrInfo       *errInfo
       /*TODO- To be compared with configured n2Pucch Index*/
       if (cqiCfg->cqiSetup.cqiPResIdx > RG_SCH_PUCCH_RES_MAX_SUPP ) 
       {
-         RLOG_ARG3(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                  "Not Supported or Invalid CQI-PUCCH resourceIndex=%d Cfg Val=%d CRNTI:%d", 
+         DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid CQI-PUCCH resourceIndex=%d Cfg Val=%d CRNTI:%d", 
                   RG_SCH_PUCCH_RES_MAX_SUPP, cqiCfg->type,crnti);
          return RFAILED;
       } 
@@ -6927,8 +6880,7 @@ RgSchErrInfo       *errInfo
                (cqiCfg->cqiSetup.cqiPCfgIdx < 7) ||
                (cqiCfg->cqiSetup.cqiPCfgIdx == 317))
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                     "Not Supported or Invalid Cfg CQI Min Index Sup =%d"
+            DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg CQI Min Index Sup =%d"
                      "Max Index Sup=%d  Cfg Val=%d CRNTI:%d", RG_SCH_ICQI_MIN_SUPP, 
                      RG_SCH_ICQI_MAX_SUPP, cqiCfg->type,crnti);
             return RFAILED;
@@ -6939,8 +6891,7 @@ RgSchErrInfo       *errInfo
          if((cqiCfg->cqiSetup.cqiPCfgIdx > RG_SCH_ICQI_MAX_SUPP)||
                (cqiCfg->cqiSetup.cqiPCfgIdx == 317))
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                     "Not Supported or Invalid Cfg CQI Min Index Sup =%d "
+            DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg CQI Min Index Sup =%d "
                      "Max Index Sup=%d  Cfg Val=%d CRNTI:%d", RG_SCH_ICQI_MIN_SUPP, 
                      RG_SCH_ICQI_MAX_SUPP, cqiCfg->type,crnti);
             return RFAILED;
@@ -6950,8 +6901,7 @@ RgSchErrInfo       *errInfo
       if((cqiCfg->cqiSetup.cqiPCfgIdx > RG_SCH_ICQI_MAX_SUPP)||
             (cqiCfg->cqiSetup.cqiPCfgIdx == 317))
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                  "Not Supported or Invalid Cfg CQI Min Index Sup =%d"
+         DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg CQI Min Index Sup =%d"
                   "Max Index Sup=%d  Cfg Val=%d CRNTI;%d", RG_SCH_ICQI_MIN_SUPP, 
                   RG_SCH_ICQI_MAX_SUPP, cqiCfg->type,crnti);
          return RFAILED;
@@ -6961,8 +6911,7 @@ RgSchErrInfo       *errInfo
       if((cqiCfg->cqiSetup.cqiRepType < RGR_UE_PCQI_WB_REP) ||
             (cqiCfg->cqiSetup.cqiRepType > RGR_UE_PCQI_SB_REP))
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                  "Invalid Cfg CQI Report"
+         DU_LOG("\nERROR  -->  SCH : Invalid Cfg CQI Report"
                   "ModeCfg Val=%d CRNTI:%d", cqiCfg->type,crnti);
          return RFAILED;
       }
@@ -6971,16 +6920,14 @@ RgSchErrInfo       *errInfo
             ((cqiCfg->cqiSetup.k < RG_SCH_CQI_K_MIN) ||
             (cqiCfg->cqiSetup.k > RG_SCH_CQI_K_MAX)))
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                  "Invalid CQI Cfg K Cfg Val=%d CRNTI:%d", cqiCfg->type,crnti);
+         DU_LOG("\nERROR  -->  SCH : Invalid CQI Cfg K Cfg Val=%d CRNTI:%d", cqiCfg->type,crnti);
          return RFAILED;
       }
 
       if((cqiCfg->cqiSetup.cqiRepType == RGR_UE_PCQI_SB_REP) && 
             (cellCb->bwCfg.dlTotalBw <= 7))
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                  "Invalid Periodic CQI mode Cfg for dlTotalBw (%d) for CRNTI:%d", 
+         DU_LOG("\nERROR  -->  SCH : Invalid Periodic CQI mode Cfg for dlTotalBw (%d) for CRNTI:%d", 
                   cellCb->bwCfg.dlTotalBw, crnti);
          return RFAILED;
       }
@@ -6988,8 +6935,7 @@ RgSchErrInfo       *errInfo
 #ifndef LTE_TDD
       if (cqiCfg->cqiSetup.cqiPCfgIdx == RG_SCH_ICQI_RESV_FDD ) 
       {  
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                  "Reserved value Cfg =%d CRNTI:%d", 
+         DU_LOG("\nERROR  -->  SCH : Reserved value Cfg =%d CRNTI:%d", 
                   cqiCfg->cqiSetup.cqiPResIdx,crnti);
          return RFAILED;
       }
@@ -7008,8 +6954,7 @@ RgSchErrInfo       *errInfo
 #endif
              )
             {
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                  "Invalid Transmission Mode =%d CRNTI:%d",
+               DU_LOG("\nERROR  -->  SCH : Invalid Transmission Mode =%d CRNTI:%d",
                   txMde,crnti);
                return RFAILED;
             }
@@ -7017,10 +6962,9 @@ RgSchErrInfo       *errInfo
          
          if(cqiCfg->cqiSetup.riCfgIdx > RG_SCH_IRI_MAX_SUPP)
          {
-          RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                  "Invalid Index RI value Cfg =%d CRNTI:%d",
+            DU_LOG("\nERROR  -->  SCH : Invalid Index RI value Cfg =%d CRNTI:%d",
                   cqiCfg->cqiSetup.riCfgIdx,crnti);
-          return RFAILED;
+            return RFAILED;
          }
       }
    }
@@ -7081,8 +7025,7 @@ RgSchErrInfo      *errInfo
       /*ccpu00130768 - ADD - if cell specific SRS is not configured*/
       if(cellCb->srsCfg.isSrsCfgPres == FALSE)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-              "Cell specific SRS is not configured CRNTI:%d",crnti);
+         DU_LOG("\nERROR  -->  SCH : Cell specific SRS is not configured CRNTI:%d",crnti);
          return RFAILED;
       }
 
@@ -7094,8 +7037,7 @@ RgSchErrInfo      *errInfo
          if ( (srsCfg->srsSetup.srsCfgIdx < 7) || 
                (srsCfg->srsSetup.srsCfgIdx > RG_SCH_ISRS_MAX_SUPP) )
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                     "Not Supported or Invalid Cfg "
+            DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg "
                      "SRS Min Index Sup =%d   Max Index Sup=%d  Cfg Val=%d CRNTI:%d",
                      RG_SCH_ISRS_MIN_SUPP, RG_SCH_ISRS_MAX_SUPP,
                      srsCfg->srsSetup.srsCfgIdx,crnti);
@@ -7106,8 +7048,7 @@ RgSchErrInfo      *errInfo
       {
          if ( srsCfg->srsSetup.srsCfgIdx > RG_SCH_ISRS_MAX_SUPP )
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                     "Not Supported or Invalid Cfg"
+            DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg"
                      "SRS Min Index Sup =%d   Max Index Sup=%d  Cfg Val=%d CRNTI:%d",
                      RG_SCH_ISRS_MIN_SUPP, RG_SCH_ISRS_MAX_SUPP,
                      srsCfg->srsSetup.srsCfgIdx,crnti);
@@ -7118,8 +7059,7 @@ RgSchErrInfo      *errInfo
 #else
       if ( srsCfg->srsSetup.srsCfgIdx > RG_SCH_ISRS_MAX_SUPP )
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                  "Not Supported or Invalid Cfg" 
+         DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg" 
                   "SRS Min Index Sup =%d   Max Index Sup=%d  Cfg Val=%d CRNTI:%d",
                   RG_SCH_ISRS_MIN_SUPP, RG_SCH_ISRS_MAX_SUPP,
                   srsCfg->srsSetup.srsCfgIdx,crnti);
@@ -7142,8 +7082,7 @@ RgSchErrInfo      *errInfo
 #else   
       if(rgSchFddCellSpSrsSubfrmTbl[cellCb->srsCfg.srsSubFrameCfg][srsSubframe] == FALSE)   {
 #endif
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cellCb->cellId, 
-               "UE specific SRS is not occuring in Cell specific SRS subframe"
+         DU_LOG("\nERROR  -->  SCH : UE specific SRS is not occuring in Cell specific SRS subframe"
                "srs Cfg Idx =%d CRNTI:%d",
                srsCfg->srsSetup.srsCfgIdx,crnti);
          return RFAILED;
@@ -7152,8 +7091,7 @@ RgSchErrInfo      *errInfo
 
       if ( srsCfg->srsSetup.fDomPosi > RG_SCH_SRS_FREQDOM_POS_MAX )
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                  "Not Supported or Invalid Cfg" 
+         DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg" 
                   "SRS Min Freq Domain Position =%d"   
                   "Max Freq Domain Position =%d  Cfg Val=%d CRNTI:%d",
                   RG_SCH_SRS_FREQDOM_POS_MIN, RG_SCH_SRS_FREQDOM_POS_MAX,
@@ -7163,8 +7101,7 @@ RgSchErrInfo      *errInfo
 
       if ( srsCfg->srsSetup.txComb > RG_SCH_SRS_TXCOMB_MAX )
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                  "Not Supported or Invalid Cfg" 
+         DU_LOG("\nERROR  -->  SCH : Not Supported or Invalid Cfg" 
                   "SRS Min TX Comb =%d   Max TX Comb =%d  Cfg Val=%d CRNTI:%d",
                   RG_SCH_SRS_TXCOMB_MIN, RG_SCH_SRS_TXCOMB_MAX,
                   srsCfg->srsSetup.srsCfgIdx,crnti);
@@ -7227,8 +7164,7 @@ S16 rgSCHCfgVldtRgrUeSrCfg
                ( srCfg->srSetup.srCfgIdx < 5 ) ||
                ( srCfg->srSetup.srCfgIdx > RG_SCH_ISR_MAX_SUPP )) 
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                     "Invalid SR Index Cfg =%d"
+             DU_LOG("\nERROR  -->  SCH : Invalid SR Index Cfg =%d"
                       "Max Supp=%d,Min Supp=%d CRNTI:%d", srCfg->srSetup.srCfgIdx, 
                      RG_SCH_ISR_MAX_SUPP, RG_SCH_ISR_MIN_SUPP,crnti);
 
@@ -7240,8 +7176,7 @@ S16 rgSCHCfgVldtRgrUeSrCfg
          if (( srCfg->srSetup.srResIdx > RG_SCH_SR_RES_IDX   ) ||
                ( srCfg->srSetup.srCfgIdx > RG_SCH_ISR_MAX_SUPP )) 
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                     "Invalid SR Index Cfg =%d" 
+            DU_LOG("\nERROR  -->  SCH : Invalid SR Index Cfg =%d" 
                       "Max Supp=%d,Min Supp=%d CRNTI:%d", srCfg->srSetup.srCfgIdx, 
                      RG_SCH_ISR_MAX_SUPP, RG_SCH_ISR_MIN_SUPP,crnti);
 
@@ -7252,8 +7187,7 @@ S16 rgSCHCfgVldtRgrUeSrCfg
       if (( srCfg->srSetup.srResIdx > RG_SCH_SR_RES_IDX   ) ||
             ( srCfg->srSetup.srCfgIdx > RG_SCH_ISR_MAX_SUPP )) 
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cellCb->cellId,  
-                  "Invalid SR Index Cfg =%d"
+         DU_LOG("\nERROR  -->  SCH : Invalid SR Index Cfg =%d"
                   "Max Supp=%d,Min Supp=%d CRNTI:%d", srCfg->srSetup.srCfgIdx, 
                   RG_SCH_ISR_MAX_SUPP, RG_SCH_ISR_MIN_SUPP,crnti);
 
@@ -7300,8 +7234,7 @@ RgSchErrInfo      *errInfo
    if ( ROK != rgSCHCfgVldtRgrUeACqiCfg (cellCb, ueCfg->crnti,
             &ueCfg->ueDlCqiCfg.aprdCqiCfg, ueCfg->txMode, errInfo ))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-       "Invalid Aperiodic CQI configuration CRNTI:%d",ueCfg->crnti);
+      DU_LOG("\nERROR  -->  SCH : Invalid Aperiodic CQI configuration CRNTI:%d",ueCfg->crnti);
       return RFAILED;
    }
 
@@ -7315,8 +7248,7 @@ RgSchErrInfo      *errInfo
              &ueCfg->ueDlCqiCfg.prdCqiCfg, ueCfg->txMode, errInfo ))
 #endif
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-          "Invalid Periodic CQI configuration CRNTI:%d",ueCfg->crnti);
+         DU_LOG("\nERROR  -->  SCH : Invalid Periodic CQI configuration CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       }
 
@@ -7329,8 +7261,7 @@ RgSchErrInfo      *errInfo
                   &ueCfg->srsCfg, errInfo ))
 #endif
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-           "Invalid SRS  configuration CRNTI:%d",ueCfg->crnti);
+         DU_LOG("\nERROR  -->  SCH : Invalid SRS  configuration CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       } 
 
@@ -7343,8 +7274,7 @@ RgSchErrInfo      *errInfo
                   &ueCfg->srCfg, errInfo))
 #endif
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-            "Invalid SR  configuration CRNTI:%d",ueCfg->crnti);
+         DU_LOG("\nERROR  -->  SCH : Invalid SR  configuration CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       }
 
@@ -7411,8 +7341,7 @@ RgSchErrInfo         *errInfo
       if ( ROK != rgSCHCfgVldtRgrUeACqiCfg (cellCb, ueReCfg->oldCrnti,     
                &ueReCfg->aprdDlCqiRecfg, txMode, errInfo ))
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-         "Invalid Aperiodic CQI configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
+         DU_LOG("\nERROR  -->  SCH : Invalid Aperiodic CQI configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
          return RFAILED;
       }
    }
@@ -7431,8 +7360,7 @@ RgSchErrInfo         *errInfo
 #endif
 
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-            "Invalid Periodic CQI configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid Periodic CQI configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
             return RFAILED;
          }
    }
@@ -7447,8 +7375,7 @@ RgSchErrInfo         *errInfo
                   &ueReCfg->srsCfg, errInfo ))
 #endif
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-              "Invalid SRS  configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid SRS  configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
             return RFAILED;
          } 
 
@@ -7464,8 +7391,7 @@ RgSchErrInfo         *errInfo
             &ueReCfg->srCfg, errInfo))
 #endif
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, 
-                     "Invalid SR configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid SR configuration OLD CRNTI:%d",ueReCfg->oldCrnti);
             return RFAILED;
          }
    }
@@ -7668,8 +7594,7 @@ CmLteUeCategory     ueCat
             cqiCfg->cqiSetup.cqiPCfgIdx,
             &cqiCb->cqiPeri, &cqiCb->cqiOffset);    
 #endif
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cellCb->cellId,
-            "rgSCHCfgPCqiUeCfg(): UEID:%d CQI Peri=%d, CQI Offset=%d",
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCfgPCqiUeCfg(): UEID:%d CQI Peri=%d, CQI Offset=%d",
             ueCb->ueId,
             cqiCb->cqiPeri,
             cqiCb->cqiOffset);
@@ -7819,8 +7744,7 @@ CmLteUeCategory    ueCat
             cqiCfg->cqiSetup.riCfgIdx,
             &cqiCb->riPeri, &cqiCb->riOffset);
 
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cellCb->cellId,
-            "rgSCHCfgRiUeCfg(): RI Peri=%d, RI Offset=%d UEID:%d", 
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCfgRiUeCfg(): RI Peri=%d, RI Offset=%d UEID:%d", 
             cqiCb->riPeri, cqiCb->riOffset,ueCb->ueId);
 
       cqiCb->perRiVal = 1;
@@ -7861,7 +7785,7 @@ CmLteUeCategory    ueCat
          periodicity = cqiCb->cqiOffset - cqiCb->riOffset + 
                        RGSCH_MAX_SUBFRM_5G - (crntTime);
          tempIdx = crntTime + periodicity;
-                       printf("CHECK_SID - periodicity %d tempIdx %d\n", periodicity, tempIdx);
+        DU_LOG("\nINFO  -->  SCH : CHECK_SID - periodicity %d tempIdx %d\n", periodicity, tempIdx);
       }
       else
       {
@@ -7997,8 +7921,7 @@ RgrUeUlSrsCfg   *srsCfg
             &ueCb->srsCb.peri, &ueCb->srsCb.offset);      
 #endif       
 
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cellCb->cellId,
-            "rgSCHCfgSrsUeCfg(): SRS Peri=%d, SRS Offset=%d UEID:%d", 
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCfgSrsUeCfg(): SRS Peri=%d, SRS Offset=%d UEID:%d", 
             ueCb->srsCb.peri,ueCb->srsCb.offset,ueCb->ueId);
 
       /*  3. Compute next Tranmission index for SRS */ 
@@ -8131,8 +8054,7 @@ RgrUeSrCfg       *srCfg
             srCfg->srSetup.srCfgIdx,
             &ueCb->srCb.peri, &ueCb->srCb.offset);
     
-      RLOG_ARG4(L_DEBUG,DBG_CELLID,cellCb->cellId ,
-            "SR Config: idx(%u), period (%u) offset (%u) UEID:%d",
+      DU_LOG("\nDEBUG  -->  SCH : SR Config: idx(%u), period (%u) offset (%u) UEID:%d",
             srCfg->srSetup.srCfgIdx,
             ueCb->srCb.peri, 
             ueCb->srCb.offset,
@@ -8929,10 +8851,10 @@ RgrUeDrxCfg       *ueDrxCfg
       if ( ueDrxCfg->cqiMask.val != RGR_DRX_SETUP )
       {
 #ifdef ALIGN_64BIT
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid cqiMask configuration (%d)",
+         DU_LOG("\nERROR  -->  SCH : Invalid cqiMask configuration (%d)",
                   ueDrxCfg->cqiMask.val);
 #else
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid cqiMask configuration(%ld)",
+         DU_LOG("\nERROR  -->  SCH : Invalid cqiMask configuration(%ld)",
                   ueDrxCfg->cqiMask.val);
 #endif
          return RFAILED;
@@ -8946,7 +8868,7 @@ RgrUeDrxCfg       *ueDrxCfg
       {
          if ( rgSCHEmtcCfgVldtDrxOnDurCfg(ueDrxCfg->drxOnDurTmr) != ROK )
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid onDurTimer configuration(%d)",
+            DU_LOG("\nERROR  -->  SCH : Invalid onDurTimer configuration(%d)",
                ueDrxCfg->drxOnDurTmr);
             return RFAILED;
          }
@@ -8955,7 +8877,7 @@ RgrUeDrxCfg       *ueDrxCfg
          {
             if (rgSCHCfgVldtDrxOnDurCfg(ueDrxCfg->drxOnDurTmr) != ROK )
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid onDurTimer configuration(%d) for EMTC",
+               DU_LOG("\nERROR  -->  SCH : Invalid onDurTimer configuration(%d) for EMTC",
                ueDrxCfg->drxOnDurTmr);
                return RFAILED;
             }
@@ -8967,7 +8889,7 @@ RgrUeDrxCfg       *ueDrxCfg
    {
       if ( rgSCHCfgVldtDrxOnDurCfg(ueDrxCfg->drxOnDurTmr) != ROK )
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid onDurTimer configuration(%d) for EMTC",
+         DU_LOG("\nERROR  -->  SCH : Invalid onDurTimer configuration(%d) for EMTC",
                ueDrxCfg->drxOnDurTmr);
          return RFAILED;
       }
@@ -8975,7 +8897,7 @@ RgrUeDrxCfg       *ueDrxCfg
 
    if ( rgSCHCfgVldtDrxInActvCfg(ueDrxCfg->drxInactvTmr) != ROK )
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid Inactivity configuration(%d)",
+      DU_LOG("\nERROR  -->  SCH : Invalid Inactivity configuration(%d)",
                ueDrxCfg->drxInactvTmr);
       return RFAILED;
    }
@@ -8986,7 +8908,7 @@ RgrUeDrxCfg       *ueDrxCfg
       {
          if ( rgSCHEmtcCfgVldtDrxReTxCfg(ueDrxCfg->drxRetxTmr) != ROK )
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid DrxReTX configuration(%d) for EMTC",
+            DU_LOG("\nERROR  -->  SCH : Invalid DrxReTX configuration(%d) for EMTC",
                ueDrxCfg->drxRetxTmr);
             return RFAILED;
          }
@@ -8995,7 +8917,7 @@ RgrUeDrxCfg       *ueDrxCfg
          {
             if (rgSCHCfgVldtDrxReTxCfg(ueDrxCfg->drxRetxTmr) != ROK )
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid DrxReTX configuration(%d)",
+               DU_LOG("\nERROR  -->  SCH : Invalid DrxReTX configuration(%d)",
                ueDrxCfg->drxRetxTmr);
                return RFAILED;
             }
@@ -9007,7 +8929,7 @@ RgrUeDrxCfg       *ueDrxCfg
    {
       if ( rgSCHCfgVldtDrxReTxCfg(ueDrxCfg->drxRetxTmr) != ROK )
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid DrxReTX configuration(%d)",
+         DU_LOG("\nERROR  -->  SCH : Invalid DrxReTX configuration(%d)",
                ueDrxCfg->drxRetxTmr);
          return RFAILED;
       }
@@ -9017,7 +8939,7 @@ RgrUeDrxCfg       *ueDrxCfg
    {
       if ( rgSCHEmtcCfgVldtDrxUlReTxCfg(ueDrxCfg->emtcDrxUlRetxTmr) != ROK )
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid DrxReTX configuration(%d) for EMTC",
+         DU_LOG("\nERROR  -->  SCH : Invalid DrxReTX configuration(%d) for EMTC",
                ueDrxCfg->drxRetxTmr);
          return RFAILED;
       }
@@ -9027,13 +8949,13 @@ RgrUeDrxCfg       *ueDrxCfg
 
    if ( rgSCHCfgVldtDrxLngCycCfg(ueDrxCfg->drxLongCycleOffst) != ROK )
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid LongCycle configuration");
+      DU_LOG("\nERROR  -->  SCH : Invalid LongCycle configuration");
       return RFAILED;
    }
 
    if ( ueDrxCfg->drxLongCycleOffst.longDrxCycle < ueDrxCfg->drxOnDurTmr ) 
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid combination of Long DRX Cycle " 
+      DU_LOG("\nERROR  -->  SCH : Invalid combination of Long DRX Cycle " 
               " and onDuration timer values");
       return RFAILED;
    }
@@ -9042,7 +8964,7 @@ RgrUeDrxCfg       *ueDrxCfg
    if( rgSCHCfgVldtTddDrxCycCfg(cell, ueDrxCfg->drxLongCycleOffst.longDrxCycle, 
        ueDrxCfg->drxOnDurTmr, ueDrxCfg->drxLongCycleOffst.drxStartOffst) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid combination of Long DRX Cycle " 
+      DU_LOG("\nERROR  -->  SCH : Invalid combination of Long DRX Cycle " 
               " and onDuration timer values");
       return RFAILED;
    }
@@ -9052,7 +8974,7 @@ RgrUeDrxCfg       *ueDrxCfg
    { 
       if ( ueDrxCfg->drxShortDrx.shortDrxCycle < ueDrxCfg->drxOnDurTmr )
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid combination of short DRX "
+         DU_LOG("\nERROR  -->  SCH : Invalid combination of short DRX "
                  "Cycle and onDuration timer values");
          return RFAILED;
       }
@@ -9060,14 +8982,14 @@ RgrUeDrxCfg       *ueDrxCfg
       if ( (ueDrxCfg->drxLongCycleOffst.longDrxCycle %
                ueDrxCfg->drxShortDrx.shortDrxCycle) != 0)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId," Long DRX cycle is not multiple of "
+         DU_LOG("\nERROR  -->  SCH : Long DRX cycle is not multiple of "
                  "short DRX cycle");
          return RFAILED;
       }
 
       if ( rgSCHCfgVldtDrxShrtCycCfg(ueDrxCfg->drxShortDrx) != ROK )
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid Short Cycle configuration");
+         DU_LOG("\nERROR  -->  SCH : Invalid Short Cycle configuration");
          return RFAILED;
       }
 
@@ -9077,7 +8999,7 @@ RgrUeDrxCfg       *ueDrxCfg
              ueDrxCfg->drxLongCycleOffst.drxStartOffst % 
              ueDrxCfg->drxShortDrx.shortDrxCycle) != ROK)
       { 
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid combination of Long DRX Cycle " 
+         DU_LOG("\nERROR  -->  SCH : Invalid combination of Long DRX Cycle " 
                  " and onDuration timer values");
          return RFAILED;
       }
@@ -9467,8 +9389,7 @@ RgrUeRecfg     *ueRecfg
                   sizeof(RgrStaIndInfo));
          if(retVal != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "Could not allocate memory for sending StaInd OLD CRNTI:%d",ueRecfg->oldCrnti);
+            DU_LOG("\nERROR  -->  SCH : Could not allocate memory for sending StaInd OLD CRNTI:%d",ueRecfg->oldCrnti);
             return (retVal);
          }
 
index 9ef9e9f..2a6cf68 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This file implements the schedulers main access to MAC layer code.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=187;
-static int RLOG_MODULE_ID=4096;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -2813,15 +2810,13 @@ static S16 rgSCHCmnCcchSduAlloc(RgSchCellCb *cell,RgSchUeCb *ueCb,RgSchCmnDlRbAl
    if (allocInfo->ccchSduAlloc.ccchSduDlSf->bw <=
        allocInfo->ccchSduAlloc.ccchSduDlSf->bwAssigned)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "bw<=bwAssigned for UEID:%d",ueCb->ueId);
+      DU_LOG("\nERROR  -->  SCH : bw<=bwAssigned for UEID:%d",ueCb->ueId);
       return RFAILED;
    }
 
    if (rgSCHDhmGetCcchSduHqProc(ueCb, cellSch->dl.time, &(ueDl->proc)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHDhmGetCcchSduHqProc failed UEID:%d",ueCb->ueId);
+      DU_LOG("\nERROR  -->  SCH : rgSCHDhmGetCcchSduHqProc failed UEID:%d",ueCb->ueId);
       return RFAILED;
    }
 
@@ -2832,8 +2827,7 @@ static S16 rgSCHCmnCcchSduAlloc(RgSchCellCb *cell,RgSchUeCb *ueCb,RgSchCmnDlRbAl
    {
       /* Fix : syed Minor failure handling, release hqP if Unsuccessful */    
       rgSCHDhmRlsHqpTb(ueDl->proc, 0, FALSE);
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHCmnCcchSduDedAlloc failed UEID:%d",ueCb->ueId);
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnCcchSduDedAlloc failed UEID:%d",ueCb->ueId);
       return RFAILED;
    }
    cmLListAdd2Tail(&allocInfo->ccchSduAlloc.ccchSduTxLst, &ueDl->proc->reqLnk);
@@ -2894,7 +2888,7 @@ static Void rgSCHCmnDlCcchSduTx(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocIn
          }
          else
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"ERROR!! THIS SHOULD "
+            DU_LOG("\nERROR  -->  SCH :  THIS SHOULD "
                      "NEVER HAPPEN for UEID:%d", ueCb->ueId);
             continue;
          }
@@ -3167,7 +3161,7 @@ static Void rgSCHCmnDlBcchPcch(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInf
 #if (ERRCLASS & ERRCLS_DEBUG)
    if (bch == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"BCCH on BCH is not configured");
+      DU_LOG("\nERROR  -->  SCH : BCCH on BCH is not configured");
       return;
    }
 #endif
@@ -3196,7 +3190,7 @@ static Void rgSCHCmnDlBcchPcch(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInf
 #if (ERRCLASS & ERRCLS_DEBUG)
    if (bcch == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"BCCH on DLSCH is not configured");
+      DU_LOG("\nERROR  -->  SCH : BCCH on DLSCH is not configured");
       return;
    }
 #endif
@@ -3219,7 +3213,7 @@ static Void rgSCHCmnDlBcchPcch(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInf
 #if (ERRCLASS & ERRCLS_DEBUG)
       if (bcch == NULLP)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"BCCH on DLSCH is not configured");
+         DU_LOG("\nERROR  -->  SCH : BCCH on DLSCH is not configured");
          return;
       }
 #endif
@@ -3259,7 +3253,7 @@ static Void rgSCHCmnDlBcchPcch(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInf
 #ifdef ERRCLS_KW
    if (pcch == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"PCCH on DLSCH is not configured");
+      DU_LOG("\nERROR  -->  SCH : PCCH on DLSCH is not configured");
       return;
    }
 #endif
@@ -3438,7 +3432,7 @@ static Void rgSCHCmnClcAlloc(RgSchCellCb *cell,RgSchDlSf *sf,RgSchClcDlLcCb  *lc
     * exceeds the available */
    if (rb > sf->bw - sf->bwAssigned)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"BW allocation "
+      DU_LOG("\nERROR  -->  SCH : BW allocation "
                 "failed for CRNTI:%d",rnti);
       return;
    }
@@ -3547,9 +3541,7 @@ RgSchPdcch *rgSCHCmnCmnPdcchAlloc(RgSchCellCb *cell,RgSchDlSf *subFrm)
 
    /* PDCCH Allocation Failed, Mark cceFailure flag as TRUE */
    subFrm->isCceFailure = TRUE;
-
-   RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-           "PDCCH ERR: NO PDDCH AVAIL IN COMMON SEARCH SPACE aggr:%u", 
+   DU_LOG("\nDEBUG  -->  SCH : PDCCH ERR: NO PDDCH AVAIL IN COMMON SEARCH SPACE aggr:%u", 
            aggrLvl);
    return (NULLP);
 }
@@ -3672,15 +3664,13 @@ static S16 rgSCHCmnMsg4Alloc(RgSchCellCb *cell,RgSchRaCb *raCb,RgSchCmnDlRbAlloc
    if (allocInfo->msg4Alloc.msg4DlSf->bw <=
        allocInfo->msg4Alloc.msg4DlSf->bwAssigned)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId ,
-         "bw<=bwAssigned");
+      DU_LOG("\nERROR  -->  SCH : bw<=bwAssigned");
       return RFAILED;
    }
 
    if (rgSCHDhmGetMsg4HqProc(raCb, cellSch->dl.time) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHDhmGetMsg4HqProc failed");
+      DU_LOG("\nERROR  -->  SCH : rgSCHDhmGetMsg4HqProc failed");
       return RFAILED;
    }
 
@@ -3690,8 +3680,7 @@ static S16 rgSCHCmnMsg4Alloc(RgSchCellCb *cell,RgSchRaCb *raCb,RgSchCmnDlRbAlloc
    {
       /* Fix : syed Minor failure handling, release hqP if Unsuccessful */    
       rgSCHDhmRlsHqpTb(raCb->dlHqE->msg4Proc, 0, FALSE);
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHCmnMsg4DedAlloc failed.");
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnMsg4DedAlloc failed.");
       return RFAILED;
    }
    cmLListAdd2Tail(&allocInfo->msg4Alloc.msg4TxLst, &raCb->dlHqE->msg4Proc->reqLnk);
@@ -3796,8 +3785,7 @@ RgSchPdcch *rgSCHCmnPdcchAlloc(RgSchCellCb *cell,RgSchUeCb *ue,RgSchDlSf *subFrm
    {
       /* PDCCH Allocation Failed, Mark cceFailure flag as TRUE */
       subFrm->isCceFailure = TRUE;
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-            "PDCCH ERR: NO PDDCH AVAIL IN UE SEARCH SPACE :aggr(%u)", 
+      DU_LOG("\nDEBUG  -->  SCH : PDCCH ERR: NO PDDCH AVAIL IN UE SEARCH SPACE :aggr(%u)", 
             aggrLvl);
 
       return (NULLP);
@@ -3842,8 +3830,7 @@ RgSchPdcch *rgSCHCmnPdcchAlloc(RgSchCellCb *cell,RgSchUeCb *ue,RgSchDlSf *subFrm
    /* PDCCH Allocation Failed, Mark cceFailure flag as TRUE */
    subFrm->isCceFailure = TRUE;
 
-   RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-         "PDCCH ERR: NO PDDCH AVAIL IN UE SEARCH SPACE :aggr(%u)",
+   DU_LOG("\nDEBUG  -->  SCH : PDCCH ERR: NO PDDCH AVAIL IN UE SEARCH SPACE :aggr(%u)",
          aggrLvl);
    return (NULLP);
 }
@@ -4243,16 +4230,14 @@ static S16 rgSCHCmnRaRspAlloc(RgSchCellCb *cell,RgSchDlSf *subFrm,uint16_t raInd
 
    if (subFrm->bw == subFrm->bwAssigned)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "bw == bwAssigned RARNTI:%d",rarnti);
+      DU_LOG("\nERROR  -->  SCH : bw == bwAssigned RARNTI:%d",rarnti);
       return RFAILED;
    }
 
    reqLst = &cell->raInfo.raReqLst[raIndex];
    if (reqLst->count == 0)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "reqLst Count=0 RARNTI:%d",rarnti);
+      DU_LOG("\nERROR  -->  SCH : reqLst Count=0 RARNTI:%d",rarnti);
       return RFAILED;
    }
    remNumRapid = reqLst->count;
@@ -4315,13 +4300,13 @@ static S16 rgSCHCmnRaRspAlloc(RgSchCellCb *cell,RgSchDlSf *subFrm,uint16_t raInd
       /* Allocation succeeded for 'remNumRapid' */
       isAlloc = TRUE;
       tbs = allwdTbSz/8;
-      printf("\n!!!RAR alloc noBytes:%u,allwdTbSz:%u,tbs:%u,rb:%u\n",
+      DU_LOG("\nINFO  -->  SCH : RAR alloc noBytes:%u,allwdTbSz:%u,tbs:%u,rb:%u\n",
                                       noBytes,allwdTbSz,tbs,rb);
       break;
    }
    if (!isAlloc)
    {
-      RLOG_ARG0(L_INFO,DBG_CELLID,cell->cellId,"BW alloc Failed");
+      DU_LOG("\nERROR  -->  SCH : BW alloc Failed");
       return RFAILED;
    }
 
@@ -4447,8 +4432,7 @@ uint8_t         *hqProcIdRef
          }
          else
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                     "Error! holeDb sanity check failed RNTI:%d",rnti);
+            DU_LOG("\nERROR  -->  SCH :  holeDb sanity check failed RNTI:%d",rnti);
          } 
       }
       if (numSb <= hole->num)
@@ -4478,16 +4462,13 @@ uint8_t         *hqProcIdRef
          alloc->forMsg3       = TRUE;
          alloc->hqProc        = hqProc;
          rgSCHUhmNewTx(hqProc, (uint8_t)(cell->rachCfg.maxMsg3Tx - 1), alloc);
-         //RLOG_ARG4(L_DEBUG,DBG_CELLID,cell->cellId,
-         printf(
-               "\nRNTI:%d MSG3 ALLOC proc(%lu)procId(%d)schdIdx(%d)\n",
+         DU_LOG("\nDEBUG  -->  SCH : RNTI:%d MSG3 ALLOC proc(%lu)procId(%d)schdIdx(%d)\n",
                alloc->rnti,
                ((PTR)alloc->hqProc),
                alloc->hqProc->procId,
                alloc->hqProc->ulSfIdx);
-         RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
-               "alloc(%p)maxMsg3Tx(%d)",
-               ((PTR)alloc),
+         DU_LOG("\nDEBUG  -->  SCH : alloc(%p)maxMsg3Tx(%d)",
+               ((void *)alloc),
                cell->rachCfg.maxMsg3Tx);
       }
    }
@@ -4791,7 +4772,7 @@ Void rgSCHCmnDlSetUeAllocLmtLa(RgSchCellCb *cell,RgSchUeCb *ue)
 #ifdef RG_5GTF
          ue->ue5gtfCb.mcs = ueDl->mimoInfo.cwInfo[cwIdx].iTbs[0];
          /*
-         printf("reportediTbs[%d] cqiBasediTbs[%d] deltaiTbs[%d] iTbsNew[%d] mcs[%d] cwIdx[%d]\n", 
+         DU_LOG("\nINFO   -->  SCH : reportediTbs[%d] cqiBasediTbs[%d] deltaiTbs[%d] iTbsNew[%d] mcs[%d] cwIdx[%d]\n", 
                  reportediTbs, ueDl->laCb[cwIdx].cqiBasediTbs, ueDl->laCb[cwIdx].deltaiTbs,
                  iTbsNew, ue->ue5gtfCb.mcs, cwIdx);
          */
@@ -4968,7 +4949,7 @@ Void rgSCHCmnFillPdcch(RgSchCellCb *cell,RgSchPdcch *pdcch,RgSchDlRbAlloc *rbAll
 
       case TFU_DCI_FORMAT_B2:
         {
-            //printf(" RG_5GTF:: Pdcch filling with DCI format B2\n");
+            //DU_LOG("\nINFO   -->  SCH : RG_5GTF:: Pdcch filling with DCI format B2\n");
            /* ToDo: Anoop */
            break; /* case TFU_DCI_FORMAT_B2: */
         }
@@ -5041,7 +5022,7 @@ Void rgSCHCmnFillPdcch(RgSchCellCb *cell,RgSchPdcch *pdcch,RgSchDlRbAlloc *rbAll
 #endif
          break;
       default:
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Allocator's icorrect "
+         DU_LOG("\nERROR  -->  SCH : Allocator's icorrect "
             "dciForamt Fill RNTI:%d",rbAllocInfo->rnti);
          break;
    }
@@ -5418,7 +5399,7 @@ uint8_t         tpc
 
    rgSCHCmnFillHqPTb(cell, rbAllocInfo, 0, pdcch);   
    //Currently hardcoding values here.
-   //printf("Filling 5GTF UL DCI for rnti %d \n",alloc->rnti);
+   //DU_LOG("\nINFO   -->  SCH : Filling 5GTF UL DCI for rnti %d \n",alloc->rnti);
    switch(rbAllocInfo->dciFormat)
    {
       case TFU_DCI_FORMAT_B1:
@@ -5478,7 +5459,7 @@ uint8_t         tpc
             break;
          }
          default:
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId," 5GTF_ERROR Allocator's icorrect "
+            DU_LOG("\nERROR  -->  SCH :  5GTF_ERROR Allocator's incorrect "
                "dciForamt Fill RNTI:%d",rbAllocInfo->rnti);
             break;
    }
@@ -5555,7 +5536,7 @@ Void rgSCHCmnFillHqPPdcch(RgSchCellCb *cell,RgSchDlRbAlloc *rbAllocInfo,RgSchDlH
          addedForScell +=  (rbAllocInfo->tbInfo[0].bytesAlloc << 3);
          addedForScell1 += (rbAllocInfo->tbInfo[0].bytesAlloc << 3);
 /*
-         printf (" Hqp %d cell %d addedForScell %lu addedForScell1 %lu sfn:sf %d:%d \n",
+         DU_LOG("\nINFO   -->  SCH :  Hqp %d cell %d addedForScell %lu addedForScell1 %lu sfn:sf %d:%d \n",
          hqP->procId,
          hqP->hqE->cell->cellId,
          addedForScell,
@@ -5590,7 +5571,7 @@ Void rgSCHCmnFillHqPPdcch(RgSchCellCb *cell,RgSchDlRbAlloc *rbAllocInfo,RgSchDlH
                addedForScell +=  (rbAllocInfo->tbInfo[1].bytesAlloc << 3);
                addedForScell2 += (rbAllocInfo->tbInfo[1].bytesAlloc << 3);
 /*
-         printf (" Hqp %d cell %d addedForScell %lu addedForScell2 %lu \n",
+         DU_LOG("\nINFO   -->  SCH :  Hqp %d cell %d addedForScell %lu addedForScell2 %lu \n",
          hqP->procId,
          hqP->hqE->cell->cellId,
          addedForScell,
@@ -5605,7 +5586,7 @@ Void rgSCHCmnFillHqPPdcch(RgSchCellCb *cell,RgSchDlRbAlloc *rbAllocInfo,RgSchDlH
                (rbAllocInfo->tbInfo[1].bytesAlloc << 3);
          }
          /*
-         printf ("add DL TPT is %lu  sfn:sf %d:%d \n", hqP->hqE->ue->tenbStats->stats.nonPersistent.sch[RG_SCH_CELLINDEX(hqP->hqE->cell)].dlTpt ,
+         DU_LOG("\nINFO   -->  SCH : add DL TPT is %lu  sfn:sf %d:%d \n", hqP->hqE->ue->tenbStats->stats.nonPersistent.sch[RG_SCH_CELLINDEX(hqP->hqE->cell)].dlTpt ,
          cell->crntTime.sfn,
          cell->crntTime.slot);
          */
@@ -5622,15 +5603,14 @@ Void rgSCHCmnFillHqPPdcch(RgSchCellCb *cell,RgSchDlRbAlloc *rbAllocInfo,RgSchDlH
       case TFU_DCI_FORMAT_B1:
       case TFU_DCI_FORMAT_B2:
           {
-        // printf(" RG_5GTF:: Pdcch filling with DCI format B1/B2\n");
+        // DU_LOG("\nINFO   -->  SCH : RG_5GTF:: Pdcch filling with DCI format B1/B2\n");
              rgSCHCmnFillHqPPdcchDciFrmtB1B2(cell, rbAllocInfo, hqP, \
                    pdcch, tpc);
              break;
           }
 #endif
       default:
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-            "Allocator's incorrect dciForamt Fill for RNTI:%d",rbAllocInfo->rnti);
+         DU_LOG("\nERROR  -->  SCH : Allocator's incorrect dciForamt Fill for RNTI:%d",rbAllocInfo->rnti);
          break;
    }
    return;
@@ -5867,8 +5847,7 @@ uint8_t         tpc
        {
           /* Fixing DAI value - ccpu00109162 */
           pdcch->dci.u.format1aInfo.t.pdschInfo.dai.val = RG_SCH_MAX_DAI_IDX;
-          RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                   "PDCCH is been scheduled without updating anInfo RNTI:%d",
+          DU_LOG("\nERROR  -->  SCH : PDCCH is been scheduled without updating anInfo RNTI:%d",
                     rbAllocInfo->rnti);
        }
 #endif
@@ -5989,8 +5968,7 @@ uint8_t         tpc
        else
        {
           pdcch->dci.u.format1bInfo.dai = RG_SCH_MAX_DAI_IDX;
-          RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                   "PDCCH is been scheduled without updating anInfo RNTI:%d",
+          DU_LOG("\nERROR  -->  SCH : PDCCH is been scheduled without updating anInfo RNTI:%d",
                    rbAllocInfo->rnti);
        }
 #endif
@@ -6137,8 +6115,7 @@ uint8_t         tpc
         else
         {
            pdcch->dci.u.format2Info.dai = RG_SCH_MAX_DAI_IDX;
-           RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                    "PDCCH is been scheduled without updating anInfo RNTI:%d",
+           DU_LOG("\nERROR  -->  SCH : PDCCH is been scheduled without updating anInfo RNTI:%d",
                     rbAllocInfo->rnti);
         }
 #endif
@@ -6284,8 +6261,7 @@ uint8_t         tpc
        else
        {
           pdcch->dci.u.format2AInfo.dai = RG_SCH_MAX_DAI_IDX;
-          RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                   "PDCCH is been scheduled without updating anInfo RNTI:%d",
+          DU_LOG("\nERROR  -->  SCH : PDCCH is been scheduled without updating anInfo RNTI:%d",
                    rbAllocInfo->rnti);
        }
 #endif
@@ -6354,7 +6330,7 @@ Void rgSCHCmnUpdVars(RgSchCellCb *cell)
    idx = (cell->crntTime.sfn * RGSCH_NUM_SUB_FRAMES_5G + cell->crntTime.slot);
    cellUl->idx     = ((idx) % (RG_SCH_CMN_UL_NUM_SF));
 #ifdef UL_ADPT_DBG     
-   printf("idx %d cellUl->idx  %d RGSCH_NUM_SUB_FRAMES_5G %d  time(%d %d) \n",idx,cellUl->idx ,RGSCH_NUM_SUB_FRAMES_5G,cell->crntTime.sfn,cell->crntTime.slot);
+   DU_LOG("\nDEBUG  -->  SCH : idx %d cellUl->idx  %d RGSCH_NUM_SUB_FRAMES_5G %d  time(%d %d) \n",idx,cellUl->idx ,RGSCH_NUM_SUB_FRAMES_5G,cell->crntTime.sfn,cell->crntTime.slot);
 #endif    
    /* Need to scheduler for after SCHED_DELTA */
    /* UL allocation has been advanced by 1 subframe
@@ -6388,7 +6364,7 @@ Void rgSCHCmnUpdVars(RgSchCellCb *cell)
    /* take care of getting the correct subframe for feedback                 */
    idx = (cellUl->idx - TFU_CRCIND_ULDELTA + RG_SCH_CMN_UL_NUM_SF);
 #ifdef UL_ADPT_DBG     
-   printf("Finally setting cellUl->hqFdbkIdx[0] = %d TFU_CRCIND_ULDELTA %d RG_SCH_CMN_UL_NUM_SF %d\n",idx,TFU_CRCIND_ULDELTA,RG_SCH_CMN_UL_NUM_SF);
+   DU_LOG("\nDEBUG  -->  SCH : Finally setting cellUl->hqFdbkIdx[0] = %d TFU_CRCIND_ULDELTA %d RG_SCH_CMN_UL_NUM_SF %d\n",idx,TFU_CRCIND_ULDELTA,RG_SCH_CMN_UL_NUM_SF);
 #endif
    cellUl->hqFdbkIdx[0]   = (idx % (RG_SCH_CMN_UL_NUM_SF));
 
@@ -6396,7 +6372,7 @@ Void rgSCHCmnUpdVars(RgSchCellCb *cell)
 
    cellUl->reTxIdx[0] = (uint8_t) idx;
 #ifdef UL_ADPT_DBG     
-   printf("cellUl->hqFdbkIdx[0] %d cellUl->reTxIdx[0] %d \n",cellUl->hqFdbkIdx[0], cellUl->reTxIdx[0] );
+   DU_LOG("\nDEBUG  -->  SCH : cellUl->hqFdbkIdx[0] %d cellUl->reTxIdx[0] %d \n",cellUl->hqFdbkIdx[0], cellUl->reTxIdx[0] );
 #endif
    /* RACHO: update cmn sched specific RACH variables,
     * mainly the prachMaskIndex */
@@ -6786,7 +6762,7 @@ Void rgSCHCmnUlFillPdcchWithAlloc(RgSchPdcch *pdcch,RgSchUlAlloc *alloc,RgSchUeC
    pdcch->dci.dciFormat = alloc->grnt.dciFrmt;
 
    //Currently hardcoding values here.
-   //printf("Filling 5GTF UL DCI for rnti %d \n",alloc->rnti);
+   //DU_LOG("\nINFO   -->  SCH : Filling 5GTF UL DCI for rnti %d \n",alloc->rnti);
    switch(pdcch->dci.dciFormat)
    {
       case TFU_DCI_FORMAT_A1:
@@ -6840,7 +6816,7 @@ Void rgSCHCmnUlFillPdcchWithAlloc(RgSchPdcch *pdcch,RgSchUlAlloc *alloc,RgSchUeC
                        break;
                }
       default:
-         RLOG1(L_ERROR," 5GTF_ERROR UL Allocator's icorrect "
+         DU_LOG("\nERROR  -->  SCH :  5GTF_ERROR UL Allocator's icorrect "
                "dciForamt Fill RNTI:%d",alloc->rnti);
          break;
    }   
@@ -7517,9 +7493,6 @@ S16 rgSCHCmnDlInitHqEnt(RgSchCellCb *cell,RgSchDlHqEnt *hqEnt)
 static uint8_t rgSCHCmnGetRefreshDist(RgSchCellCb *cell,RgSchUeCb *ue)
 {
    uint8_t   refOffst;
-#ifdef DEBUGP
-   Inst inst = cell->instIdx;
-#endif
 
    for(refOffst = 0; refOffst < RGSCH_MAX_REFRESH_OFFSET; refOffst++)
    {
@@ -7527,12 +7500,12 @@ static uint8_t rgSCHCmnGetRefreshDist(RgSchCellCb *cell,RgSchUeCb *ue)
       {
          cell->refreshUeCnt[refOffst]++;
          ue->refreshOffset = refOffst;
-         /* printf("UE[%d] refresh offset[%d]. Cell refresh ue count[%d].\n", ue->ueId, refOffst,  cell->refreshUeCnt[refOffst]); */
+         /* DU_LOG("\nINFO   -->  SCH : UE[%d] refresh offset[%d]. Cell refresh ue count[%d].\n", ue->ueId, refOffst,  cell->refreshUeCnt[refOffst]); */
          return (refOffst);
       }
    }
   
-   RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Allocation of refresh distribution failed\n"));
+   DU_LOG("\nERROR  -->  SCH : Allocation of refresh distribution failed\n");
    /* We should not enter here  normally, but incase of failure, allocating from  last offset*/
    cell->refreshUeCnt[refOffst-1]++;
    ue->refreshOffset = refOffst-1;
@@ -7623,7 +7596,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
    if((rgSCHUtlAllocSBuf(sCell->instIdx,
                (Data**)&(((ue->cellInfo[ue->cellIdToCellIdxMap[idx]])->sch)), (sizeof(RgSchCmnUe))) != ROK))
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Memory allocation FAILED\n"));
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED\n");
       err->errCause = RGSCHERR_SCH_CFG;
       return RFAILED;
    }
@@ -7685,7 +7658,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
 
    if ((cellSchd->apisDl->rgSCHRgrSCellDlUeCfg(sCell, ue, err)) != ROK)
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "Spec Sched DL UE CFG FAILED\n"));
+      DU_LOG("\nERROR  -->  SCH : Spec Sched DL UE CFG FAILED\n");
       return RFAILED;
    }
 
@@ -7696,7 +7669,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
    {
       if ((cellSchd->apisDlfs->rgSCHDlfsSCellUeCfg(sCell, ue, sCellInfoCfg, err)) != ROK)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "DLFS UE config FAILED\n"));
+         DU_LOG("\nERROR  -->  SCH : DLFS UE config FAILED\n");
          return RFAILED;
       }
    }
@@ -7712,7 +7685,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
       ret = rgSCHUhmHqEntInit(sCell, ue);
       if (ret != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,sCell->cellId,"SCELL UHM HARQ Ent Init "
+         DU_LOG("\nERROR  -->  SCH : SCELL UHM HARQ Ent Init "
                "Failed for CRNTI:%d", ue->ueId);
          return RFAILED;
       }
@@ -7745,7 +7718,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
          if((rgSCHUtlAllocSBuf(sCell->instIdx,
                      (Data**)&(allRcd),sizeof(RgSchCmnAllocRecord)) != ROK))
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,sCell->cellId,"SCELL Memory allocation FAILED"
+            DU_LOG("\nERROR  -->  SCH : SCELL Memory allocation FAILED"
                   "for CRNTI:%d",ue->ueId);
             err->errCause = RGSCHERR_SCH_CFG;
             return RFAILED;
@@ -7759,7 +7732,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
       ret = rgSCHPwrUeSCellCfg(sCell, ue, sCellInfoCfg);
       if (ret != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,sCell->cellId, "Could not do "
+         DU_LOG("\nERROR  -->  SCH : Could not do "
                "power config for UE CRNTI:%d",ue->ueId);
          return RFAILED;
       }
@@ -7769,7 +7742,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
       {
          if ((cellSchd->apisEmtcUl->rgSCHRgrUlUeCfg(sCell, ue, NULL, err)) != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,sCell->cellId, "Spec Sched UL UE CFG FAILED"
+            DU_LOG("\nERROR  -->  SCH : Spec Sched UL UE CFG FAILED"
                   "for CRNTI:%d",ue->ueId);
             return RFAILED;
          }
@@ -7779,7 +7752,7 @@ S16 rgSCHCmnRgrSCellUeCfg(RgSchCellCb *sCell,RgSchUeCb *ue,RgrUeSecCellCfg *sCel
       {
       if ((cellSchd->apisUl->rgSCHRgrUlUeCfg(sCell, ue, NULL, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,sCell->cellId, "Spec Sched UL UE CFG FAILED"
+         DU_LOG("\nERROR  -->  SCH : Spec Sched UL UE CFG FAILED"
                "for CRNTI:%d",ue->ueId);
          return RFAILED;
       }
@@ -7835,7 +7808,7 @@ S16 rgSCHCmnRgrSCellUeDel(RgSchUeCellInfo *sCellInfo,RgSchUeCb *ue)
    {
       if ((cellSchd->apisDlfs->rgSCHDlfsSCellUeDel(sCellInfo->cell, ue)) != ROK)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "DLFS Scell del FAILED\n"));
+         DU_LOG("\nERROR  -->  SCH : DLFS Scell del FAILED\n");
          return RFAILED;
       }
    }
@@ -7884,7 +7857,7 @@ S16 rgSCHCmn5gtfUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *cfg)
    ue->ue5gtfCb.nxtCqiRiOccn.slot = 0;
    ue->ue5gtfCb.rank = 1;
 
-   printf("\nschd cfg at mac,%u,%u,%u,%u,%u\n",ue->ue5gtfCb.grpId,ue->ue5gtfCb.BeamId,ue->ue5gtfCb.numCC,
+   DU_LOG("\nINFO  -->  SCH : schd cfg at mac,%u,%u,%u,%u,%u\n",ue->ue5gtfCb.grpId,ue->ue5gtfCb.BeamId,ue->ue5gtfCb.numCC,
         ue->ue5gtfCb.mcs,ue->ue5gtfCb.maxPrb); 
 
    ue5gtfGrp = &(cell->cell5gtfCb.ueGrp5gConf[ue->ue5gtfCb.BeamId]);
@@ -7893,8 +7866,7 @@ S16 rgSCHCmn5gtfUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *cfg)
       scheduling comes into picture */
    if(ue5gtfGrp->beamBitMask & (1 << ue->ue5gtfCb.BeamId))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-           "5GTF_ERROR Invalid beam id CRNTI:%d",cfg->crnti);
+      DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR Invalid beam id CRNTI:%d",cfg->crnti);
       return RFAILED;
    }
    ue5gtfGrp->beamBitMask |= (1 << ue->ue5gtfCb.BeamId);
@@ -7945,8 +7917,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    if((rgSCHUtlAllocSBuf(cell->instIdx,
                (Data**)&(((ue->cellInfo[ue->cellIdToCellIdxMap[idx]])->sch)), (sizeof(RgSchCmnUe))) != ROK))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-            "Memory allocation FAILED for CRNTI:%d",ueCfg->crnti);
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for CRNTI:%d",ueCfg->crnti);
       err->errCause = RGSCHERR_SCH_CFG;
       return RFAILED;
    }
@@ -8023,7 +7994,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
     */     
    if((ueCfg->ueQosCfg.dlAmbr == 0) && (ueCfg->ueQosCfg.ueBr == 0))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"UL Ambr and DL Ambr are"
+      DU_LOG("\nERROR  -->  SCH : UL Ambr and DL Ambr are"
          "configured as 0 for CRNTI:%d",ueCfg->crnti);
       err->errCause = RGSCHERR_SCH_CFG;
       return RFAILED;
@@ -8041,8 +8012,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    {
       if ((cellSchd->apisEmtcDl->rgSCHRgrDlUeCfg(cell, ue, ueCfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "Spec Sched DL UE CFG FAILED for CRNTI:%d",ueCfg->crnti);
+         DU_LOG("\nERROR  -->  SCH : Spec Sched DL UE CFG FAILED for CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       }
 
@@ -8052,8 +8022,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    {
       if ((cellSchd->apisDl->rgSCHRgrDlUeCfg(cell, ue, ueCfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "Spec Sched DL UE CFG FAILED for CRNTI:%d",ueCfg->crnti);
+         DU_LOG("\nERROR  -->  SCH : Spec Sched DL UE CFG FAILED for CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       }
    }
@@ -8081,7 +8050,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
       if((rgSCHUtlAllocSBuf(cell->instIdx,
                   (Data**)&(allRcd),sizeof(RgSchCmnAllocRecord)) != ROK))
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED"
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED"
                    "for CRNTI:%d",ueCfg->crnti);
          err->errCause = RGSCHERR_SCH_CFG;
          return RFAILED;
@@ -8097,8 +8066,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
             (Data**)&(ue->ul.lcgArr[cnt].sch), (sizeof(RgSchCmnLcg)));
       if (ret != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-            "SCH struct alloc failed for CRNTI:%d",ueCfg->crnti);
+         DU_LOG("\nERROR  -->  SCH : SCH struct alloc failed for CRNTI:%d",ueCfg->crnti);
          err->errCause = RGSCHERR_SCH_CFG;
          return (ret);
       }
@@ -8107,7 +8075,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    ret = rgSCHPwrUeCfg(cell, ue, ueCfg);
    if (ret != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Could not do "
+      DU_LOG("\nERROR  -->  SCH : Could not do "
          "power config for UE CRNTI:%d",ueCfg->crnti);
       return RFAILED;
    }
@@ -8115,7 +8083,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    ret = rgSCHCmnSpsUeCfg(cell, ue, ueCfg, err);
    if (ret != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Could not do "
+      DU_LOG("\nERROR  -->  SCH : Could not do "
          "SPS config for CRNTI:%d",ueCfg->crnti);
       return RFAILED;
    }
@@ -8126,7 +8094,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    {
       if ((cellSchd->apisEmtcUl->rgSCHRgrUlUeCfg(cell, ue, ueCfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Spec Sched UL UE CFG FAILED"
+         DU_LOG("\nERROR  -->  SCH : Spec Sched UL UE CFG FAILED"
                   "for CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       }
@@ -8136,7 +8104,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    {
    if ((cellSchd->apisUl->rgSCHRgrUlUeCfg(cell, ue, ueCfg, err)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Spec Sched UL UE CFG FAILED"
+      DU_LOG("\nERROR  -->  SCH : Spec Sched UL UE CFG FAILED"
                "for CRNTI:%d",ueCfg->crnti);
       return RFAILED;
    }
@@ -8147,7 +8115,7 @@ S16 rgSCHCmnRgrUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErrInf
    {
       if ((cellSchd->apisDlfs->rgSCHDlfsUeCfg(cell, ue, ueCfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "DLFS UE config FAILED"
+         DU_LOG("\nERROR  -->  SCH : DLFS UE config FAILED"
                    "for CRNTI:%d",ueCfg->crnti);
          return RFAILED;
       }
@@ -8473,7 +8441,7 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
             && (ueRecfg->prdDlCqiRecfg.prdModeEnum != RGR_PRD_CQI_MOD10)
             && (ueRecfg->prdDlCqiRecfg.prdModeEnum != RGR_PRD_CQI_MOD20))
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Unsupported periodic CQI "
+         DU_LOG("\nERROR  -->  SCH : Unsupported periodic CQI "
             "reporting mode %d for old CRNIT:%d", 
             (int)ueRecfg->prdDlCqiRecfg.prdModeEnum,ueRecfg->oldCrnti);
          err->errCause = RGSCHERR_SCH_CFG;
@@ -8487,8 +8455,7 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
    {
       if (rgSCHPwrUeRecfg(cell, ue, ueRecfg) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "Power Reconfiguration Failed for OLD CRNTI:%d",ueRecfg->oldCrnti);
+         DU_LOG("\nERROR  -->  SCH : Power Reconfiguration Failed for OLD CRNTI:%d",ueRecfg->oldCrnti);
          return RFAILED;
       }
    }
@@ -8498,7 +8465,7 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
       /* Uplink Sched related Initialization */
       if ((ueRecfg->ueQosRecfg.dlAmbr == 0) && (ueRecfg->ueQosRecfg.ueBr == 0))
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Ul Ambr and DL Ambr "
+         DU_LOG("\nERROR  -->  SCH : Ul Ambr and DL Ambr "
             "configured as 0 for OLD CRNTI:%d",ueRecfg->oldCrnti);
          err->errCause = RGSCHERR_SCH_CFG;
          return RFAILED;
@@ -8521,14 +8488,12 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
    {
       if ((cellSchCmn->apisEmtcUl->rgSCHRgrUlUeRecfg(cell, ue, ueRecfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-               "Spec Sched UL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Spec Sched UL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
          return RFAILED;
       }
       if ((cellSchCmn->apisEmtcDl->rgSCHRgrDlUeRecfg(cell, ue, ueRecfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-               "Spec Sched DL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Spec Sched DL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
          return RFAILED;
       }
    }
@@ -8537,14 +8502,12 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
    {
       if ((cellSchCmn->apisUl->rgSCHRgrUlUeRecfg(cell, ue, ueRecfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-            "Spec Sched UL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Spec Sched UL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
          return RFAILED;
       }
       if ((cellSchCmn->apisDl->rgSCHRgrDlUeRecfg(cell, ue, ueRecfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-            "Spec Sched DL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Spec Sched DL UE ReCFG FAILED for CRNTI:%d",ue->ueId);
          return RFAILED;
       }
    }
@@ -8554,8 +8517,7 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
       if ((cellSchCmn->apisDlfs->rgSCHDlfsUeRecfg(cell, ue, \
          ueRecfg, err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-               "DLFS UE re-config FAILED for CRNTI:%d",ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : DLFS UE re-config FAILED for CRNTI:%d",ue->ueId);
          return RFAILED;
       }
    }
@@ -8564,8 +8526,7 @@ S16 rgSCHCmnRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
    /* Invoke re-configuration on SPS module */
    if (rgSCHCmnSpsUeRecfg(cell, ue, ueRecfg, err) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-              "DL SPS ReCFG FAILED for UE CRNTI:%d", ue->ueId);
+      DU_LOG("\nERROR  -->  SCH : DL SPS ReCFG FAILED for UE CRNTI:%d", ue->ueId);
       return RFAILED;
    }
 #endif
@@ -9324,8 +9285,7 @@ static S16 rgSCHCmnDlRgrCellCfg(RgSchCellCb *cell,RgrCellCfg *cfg,RgSchErrInfo *
    /*[ccpu00138609]-ADD- Configure the Max CCCH Counter */
    if (cfg->maxCcchPerDlSf > cfg->maxUePerDlSf)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, 
-                      "Invalid configuration !: "
+      DU_LOG("\nERROR  -->  SCH : Invalid configuration !: "
                       "maxCcchPerDlSf %u > maxUePerDlSf %u",
                    cfg->maxCcchPerDlSf, cfg->maxUePerDlSf );
 
@@ -9524,8 +9484,7 @@ static S16 rgSCHCmnDlRgrCellCfg(RgSchCellCb *cell,RgrCellCfg *cfg,RgSchErrInfo *
    /* Fix: MUE_PERTTI_DL syed validating Cell Configuration */
    if (cellSch->dl.maxUePerDlSf < cellSch->dl.maxUeNewTxPerTti)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-            "FAILED MaxUePerDlSf(%u) < MaxDlUeNewTxPerTti(%u)",
+      DU_LOG("\nERROR  -->  SCH : FAILED MaxUePerDlSf(%u) < MaxDlUeNewTxPerTti(%u)",
             cellSch->dl.maxUePerDlSf,
             cellSch->dl.maxUeNewTxPerTti);
       return RFAILED;
@@ -9533,7 +9492,7 @@ static S16 rgSCHCmnDlRgrCellCfg(RgSchCellCb *cell,RgrCellCfg *cfg,RgSchErrInfo *
    /*[ccpu00138609]-ADD- Configure the Max CCCH Counter */
    if (cfg->maxCcchPerDlSf > cfg->maxUePerDlSf)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Invalid configuration !: "
+      DU_LOG("\nERROR  -->  SCH : Invalid configuration !: "
             "maxCcchPerDlSf %u > maxUePerDlSf %u",
             cfg->maxCcchPerDlSf, cfg->maxUePerDlSf );
 
@@ -9803,7 +9762,7 @@ static S16 rgSCHCmnUlCalcAvailBw(RgSchCellCb *cell,RgrCellCfg *cellCfg,uint8_t c
    /* Num of PUCCH RBs = puschRbStart*2 */
    if (puschRbStart * 2 >= ulBw)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"No bw available for PUSCH");
+      DU_LOG("\nERROR  -->  SCH : No bw available for PUSCH");
       return RFAILED;
    }
 
@@ -9895,17 +9854,17 @@ static S16 rgSCHCmnUlCalcAvailBw(RgSchCellCb *cell,RgrCellCfg *cellCfg,uint8_t c
    if(gPrntPucchDet)
    {
 #ifndef ALIGN_64BIT
-          printf("CA_DBG:: puschRbStart:n1Rb:mixedRb:n1PerRb:totalCce:n1Max:n1RbPart:n2Rb::[%d:%d] [%d:%d:%ld:%d:%d:%d:%d:%d]\n",
+       DU_LOG("\nDEBUG  -->  SCH : CA_DBG:: puschRbStart:n1Rb:mixedRb:n1PerRb:totalCce:n1Max:n1RbPart:n2Rb::[%d:%d] [%d:%d:%ld:%d:%d:%d:%d:%d]\n",
         cell->crntTime.sfn, cell->crntTime.slot, puschRbStart, n1Rb, mixedRb,n1PerRb, totalCce, n1Max, n1RbPart, n2Rb);
 #else
-          printf("CA_DBG:: puschRbStart:n1Rb:mixedRb:n1PerRb:totalCce:n1Max:n1RbPart:n2Rb::[%d:%d] [%d:%d:%d:%d:%d:%d:%d:%d]\n",
+       DU_LOG("\nDEBUG  -->  SCH : CA_DBG:: puschRbStart:n1Rb:mixedRb:n1PerRb:totalCce:n1Max:n1RbPart:n2Rb::[%d:%d] [%d:%d:%d:%d:%d:%d:%d:%d]\n",
         cell->crntTime.sfn, cell->crntTime.slot, puschRbStart, n1Rb, mixedRb,n1PerRb, totalCce, n1Max, n1RbPart, n2Rb);
 #endif
    }
 
    if (puschRbStart*2 >= ulBw)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"No bw available for PUSCH");
+      DU_LOG("\nERROR  -->  SCH : No bw available for PUSCH");
       return RFAILED;
    }
 
@@ -10010,8 +9969,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
    /* Fix: MUE_PERTTI_UL syed validating Cell Configuration */
    if (cellUl->maxAllocPerUlSf < cellUl->maxUeNewTxPerTti)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-            "FAILED: MaxUePerUlSf(%u) < MaxUlUeNewTxPerTti(%u)",
+      DU_LOG("\nERROR  -->  SCH : FAILED: MaxUePerUlSf(%u) < MaxUlUeNewTxPerTti(%u)",
             cellUl->maxAllocPerUlSf,
             cellUl->maxUeNewTxPerTti);
       return RFAILED;
@@ -10029,7 +9987,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
               ulUeInfo.ulAllocInfo), (cellUl->maxAllocPerUlSf * sizeof(RgInfUeUlAlloc)));
       if (ret != ROK)
       {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation failed ");
+         DU_LOG("\nERROR  -->  SCH : Memory allocation failed ");
             return (ret);
       }
    }
@@ -10053,7 +10011,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
 
    if (sbSize != rgSchCmnMult235Tbl[sbSize].match)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid subband size %d", sbSize);
+      DU_LOG("\nERROR  -->  SCH : Invalid subband size %d", sbSize);
       return RFAILED;
    }
        //Setting the subband size to 4 which is size of VRBG in 5GTF
@@ -10064,7 +10022,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
    maxSbPerUe = maxUlBwPerUe / sbSize;
    if (maxSbPerUe == 0)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHCmnUlCellInit(): "
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnUlCellInit(): "
          "maxUlBwPerUe/sbSize is zero");
       return RFAILED;
    }
@@ -10074,7 +10032,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
    if ((!RG_SCH_CMN_UL_IS_CQI_VALID(cellCfg->ulCmnCodeRate.ccchCqi))
          || (!RG_SCH_CMN_UL_IS_CQI_VALID(cellCfg->trgUlCqi.trgCqi)))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHCmnUlCellInit(): "
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnUlCellInit(): "
          "Invalid cqi");
       return RFAILED;
    }
@@ -10086,9 +10044,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
     * Refer to 36.213-8.6.1 */
     for (i = RG_SCH_CMN_UL_NUM_CQI - 1;i > 0; --i)
    {
-      RLOG_ARG2(L_INFO,DBG_CELLID,cell->cellId,
-            "CQI %u:iTbs %u",
-            i, 
+       DU_LOG("\nINFO  -->  SCH : CQI %u:iTbs %u",i, 
             rgSchCmnUlCqiToTbsTbl[cell->isCpUlExtend][i]);
 #ifdef MAC_SCH_STATS
       /* ccpu00128489 ADD Update mcs in hqFailStats here instead of at CRC 
@@ -10105,8 +10061,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
       iTbs = rgSchCmnUlCqiToTbsTbl[cell->isCpUlExtend][i];
       if (iTbs <= RGSCH_UL_16QAM_MAX_ITBS) /* corresponds to 16QAM */
       {
-         RLOG_ARG1(L_INFO,DBG_CELLID,cell->cellId,
-                        "16 QAM CQI %u", i);
+         DU_LOG("\nINFO  -->  SCH : 16 QAM CQI %u", i);
          cellUl->max16qamCqi = i;
          break;
       }
@@ -10194,8 +10149,7 @@ static S16 rgSCHCmnUlCellInit(RgSchCellCb  *cell,RgrCellCfg *cellCfg)
 
    if(0 == cell->dynCfiCb.maxCfi)
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId, 
-               "Incorrect Default CFI(%u), maxCfi(%u), maxPucchRb(%d)",
+      DU_LOG("\nERROR  -->  SCH : Incorrect Default CFI(%u), maxCfi(%u), maxPucchRb(%d)",
                cellSch->cfiCfg.cfi, cell->dynCfiCb.maxCfi, 
                cell->pucchCfg.maxPucchRb);
             
@@ -10273,8 +10227,7 @@ S16 rgSCHCmnRgrCellCfg(RgSchCellCb *cell,RgrCellCfg *cellCfg,RgSchErrInfo *err)
    if (((ret = rgSCHUtlAllocSBuf(cell->instIdx,
       (Data**)&(cell->sc.sch), (sizeof(RgSchCmnCell)))) != ROK))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,  
-         "Memory allocation FAILED");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED");
       err->errCause = RGSCHERR_SCH_CFG;
       return (ret);
    }
@@ -10398,7 +10351,7 @@ S16 rgSCHCmnRgrCellRecfg(RgSchCellCb *cell,RgrCellRecfg *recfg,RgSchErrInfo *err
       if (!RG_SCH_CMN_UL_IS_CQI_VALID(recfg->ulCmnCodeRate.ccchCqi))
       {
          err->errCause = RGSCHERR_SCH_CFG;
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHCmnRgrCellRecfg(): "
+         DU_LOG("\nERROR  -->  SCH : rgSCHCmnRgrCellRecfg(): "
             "Invalid cqi");
          return RFAILED;
       }
@@ -10713,7 +10666,7 @@ RgSchErrInfo *err
       (Data**)&((dlLc)->sch), (sizeof(RgSchCmnDlSvc)));
    if (ret != ROK)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHCmnRgrLchCfg(): "
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnRgrLchCfg(): "
          "SCH struct alloc failed for CRNTI:%d LCID:%d",ue->ueId,lcCfg->lcId);
       err->errCause = RGSCHERR_SCH_CFG;
       return (ret);
@@ -10723,7 +10676,7 @@ RgSchErrInfo *err
       ret = rgSCHCmnValidateDlQos(&lcCfg->dlInfo.dlQos);
       if (ret != ROK)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSchCmnCrgLcCfg(): "
+         DU_LOG("\nERROR  -->  SCH : rgSchCmnCrgLcCfg(): "
             "DlQos validation failed for CRNTI:%d LCID:%d",ue->ueId,lcCfg->lcId);
          err->errCause = RGSCHERR_SCH_CFG;
          return (ret);
@@ -10797,7 +10750,7 @@ RgSchErrInfo *err
       ret = rgSCHCmnSpsDlLcCfg(cell, ue, dlLc, lcCfg, err);
       if (ret != ROK)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,  "rgSchCmnRgrLchCfg(): "
+         DU_LOG("\nERROR  -->  SCH : rgSchCmnRgrLchCfg(): "
             "SPS configuration failed for DL LC for CRNTI:%d LCID:%d",ue->ueId,lcCfg->lcId);
          err->errCause = RGSCHERR_SCH_CFG;
          return RFAILED;
@@ -10849,14 +10802,13 @@ RgSchErrInfo *err
    
       if (ret != ROK)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-               "DlQos validation failed for CRNTI:%d LCID:%d",ue->ueId,lcRecfg->lcId);
+         DU_LOG("\nERROR  -->  SCH : DlQos validation failed for CRNTI:%d LCID:%d",ue->ueId,lcRecfg->lcId);
          err->errCause = RGSCHERR_SCH_CFG;
          return (ret);
       }
       if (((RgSchCmnDlSvc *)(dlLc->sch))->qci != lcRecfg->dlRecfg.dlQos.qci)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, "Qci, hence lc Priority change "
+         DU_LOG("\nERROR  -->  SCH : Qci, hence lc Priority change "
             "not supported for CRNTI:%d LCID:%d",ue->ueId,lcRecfg->lcId);
          err->errCause = RGSCHERR_SCH_CFG;
          return (ret);
@@ -10910,7 +10862,7 @@ RgSchErrInfo *err
          ret = rgSCHCmnSpsDlLcRecfg(cell, ue, dlLc, lcRecfg, err);
          if (ret != ROK)
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"SPS re-configuration not "
+            DU_LOG("\nERROR  -->  SCH : SPS re-configuration not "
                   "supported for dlLC Ignore this CRNTI:%d LCID:%d",ue->ueId,lcRecfg->lcId);
          }
       }
@@ -11769,13 +11721,12 @@ static Void rgSCHCmnDlRaRspFnlz(RgSchCellCb  *cell,RgSchCmnDlRbAllocInfo *allocI
             /* Return the grabbed PDCCH */
             rgSCHUtlPdcchPut(cell, &subFrm->pdcchInfo, raRspAlloc->pdcch);
             subFrm->raRsp[rarCnt].pdcch = NULLP;
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHCmnRaRspAlloc(): "
+            DU_LOG("\nERROR  -->  SCH : rgSCHCmnRaRspAlloc(): "
                   "Not even one RaReq.");
             return;
          }
       }
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId, 
-            "RNTI:%d Scheduled RAR @ (%u,%u) ",
+      DU_LOG("\nDEBUG  -->  SCH : RNTI:%d Scheduled RAR @ (%u,%u) ",
             raRspAlloc->rnti, 
             cell->crntTime.sfn,
             cell->crntTime.slot);
@@ -11883,7 +11834,7 @@ static Void rgSCHCmnDlBcchPcchFnlz(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allo
       pcch = rgSCHDbmGetPcch(cell);
       if(pcch == NULLP)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHCmnDlBcchPcchFnlz( ): "
+         DU_LOG("\nERROR  -->  SCH : rgSCHCmnDlBcchPcchFnlz( ): "
                "No Pcch Present");
          return;
       }
@@ -12422,7 +12373,7 @@ RgSchUlHole  *hole
    rgSCHUhmGetAvlHqProc(cell, ue, &proc);
    if (proc == NULLP)
    {
-      //printf("UE [%d] HQ Proc unavailable\n", ue->ueId);
+      //DU_LOG("\nINFO   -->  SCH : UE [%d] HQ Proc unavailable\n", ue->ueId);
       return RFAILED;
    }
 #endif
@@ -12441,8 +12392,7 @@ RgSchUlHole  *hole
    pdcch = rgSCHCmnPdcchAllocCrntSf(cell, ue);
    if(pdcch == NULLP)
    {
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId, 
-         "rgSCHCmnUlRbAllocForUe(): Could not get PDCCH for CRNTI:%d",ue->ueId);
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnUlRbAllocForUe(): Could not get PDCCH for CRNTI:%d",ue->ueId);
       return RFAILED;
    }
        gUl5gtfPdcchSchd++;
@@ -12460,7 +12410,7 @@ RgSchUlHole  *hole
    if((sf->sfBeamInfo[ue->ue5gtfCb.BeamId].vrbgStart > MAX_5GTF_VRBG)
         || (sf->sfBeamInfo[ue->ue5gtfCb.BeamId].totVrbgAllocated > MAX_5GTF_VRBG))
    {
-      printf("5GTF_ERROR vrbg > 25 valstart = %d valalloc %d\n", sf->sfBeamInfo[ue->ue5gtfCb.BeamId].vrbgStart
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR vrbg > 25 valstart = %d valalloc %d\n", sf->sfBeamInfo[ue->ue5gtfCb.BeamId].vrbgStart
            , sf->sfBeamInfo[ue->ue5gtfCb.BeamId].totVrbgAllocated);
       int *p=NULLP;
       *p = 10;
@@ -12476,8 +12426,7 @@ RgSchUlHole  *hole
    }
    if (alloc == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, 
-         "rgSCHCmnUlRbAllocForUe(): Could not get UlAlloc %d CRNTI:%d",numVrbg,ue->ueId);
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnUlRbAllocForUe(): Could not get UlAlloc %d CRNTI:%d",numVrbg,ue->ueId);
       rgSCHCmnPdcchRlsCrntSf(cell, pdcch);
       return RFAILED;
    }
@@ -12734,8 +12683,7 @@ static Void rgSCHCmnUlHndlAllocRetx(RgSchCellCb *cell,RgSchCmnUlRbAllocInfo *all
       retxAlloc = rgSCHCmnUlGetUlAlloc(cell, sf, alloc->numSb);
       if (retxAlloc == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "rgSCHCmnUlRbAllocForUe():Could not get UlAlloc for msg3Retx RNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : rgSCHCmnUlRbAllocForUe():Could not get UlAlloc for msg3Retx RNTI:%d",
                alloc->rnti);
          return;
       }
@@ -12826,8 +12774,7 @@ static Void rgSCHCmnUlAlloc(RgSchCellCb  *cell)
         }
         else
         {
-           RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                 "Error! holeDb sanity check failed");
+           DU_LOG("\nERROR  -->  SCH :  holeDb sanity check failed");
         }
       }
    }
@@ -13245,7 +13192,7 @@ S16 tmrEvnt           /* Timer Event */
 #if (ERRCLASS & ERRCLS_DEBUG)
    if (tmrEvnt != RG_SCH_CMN_EVNT_UE_REFRESH)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHCmnTmrExpiry(): Invalid "
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnTmrExpiry(): Invalid "
          "timer event CRNTI:%d",ue->ueId);
       return RFAILED;
    }
@@ -13805,7 +13752,7 @@ Void rgSCHCmnDlDedBoUpd(RgSchCellCb *cell,RgSchUeCb   *ue,RgSchDlLcCb *svc)
    if((cell->emtcEnable)&&(TRUE == ue->isEmtcUe))
    {
       cellSch->apisEmtcDl->rgSCHDlDedBoUpd(cell, ue, svc);
-      //printf("rgSCHEMTCDlDedBoUpd\n");
+      //DU_LOG("\nINFO   -->  SCH : rgSCHEMTCDlDedBoUpd\n");
    }
    else
 #endif
@@ -14195,7 +14142,7 @@ TfuDlCqiPucch *pucchCqi
       }
       else
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Invalid RI value(%x) CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : Invalid RI value(%x) CRNTI:%d",
             pucchCqi->u.mode10Info.u.ri,ue->ueId);
          return;
       }
@@ -14284,7 +14231,7 @@ TfuDlCqiPucch  *pucchCqi
       }
       else
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid RI value(%x) CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : Invalid RI value(%x) CRNTI:%d",
             pucchCqi->u.mode11Info.u.ri,ue->ueId);
          return;
       }
@@ -14363,7 +14310,7 @@ TfuDlCqiPucch *pucchCqi
       }
       else
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Invalid RI value(%x) CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : Invalid RI value(%x) CRNTI:%d",
             pucchCqi->u.mode20Info.u.ri,ue->ueId);
          return;
       }
@@ -14457,7 +14404,7 @@ TfuDlCqiPucch *pucchCqi
       }
       else
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,  "Invalid RI value(%x) CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : Invalid RI value(%x) CRNTI:%d",
             pucchCqi->u.mode21Info.u.ri,ue->ueId);
          return;
       }
@@ -14553,7 +14500,7 @@ TfuDlCqiPucch *pucchCqi
          break;
       default:
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Unknown CQI Mode %d",
+            DU_LOG("\nERROR  -->  SCH : Unknown CQI Mode %d of UE %d",
                pucchCqi->mode,ue->ueId);
            /* ccpu00117452 - MOD - Changed macro name from
                RGR_RRM_DLPWR_CNTRL to RGR_CQI_REPT */
@@ -14625,7 +14572,7 @@ TfuDlCqiPusch *puschCqi
       }
       else
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Invalid RI value(%x) CRNTI:%d",
+         DU_LOG("\nERROR  -->  SCH : Invalid RI value(%x) CRNTI:%d",
             puschCqi->ri.val,ue->ueId);
          return;
       }
@@ -14802,7 +14749,7 @@ TfuDlCqiPusch *puschCqi
          break;
       default:
          {
-            RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,  "Unknown CQI Mode %d CRNTI:%d",
+            DU_LOG("\nERROR  -->  SCH : Unknown CQI Mode %d CRNTI:%d",
                puschCqi->mode,ue->ueId);
             /*  CQI decoding failed revert the RI to previous value */
             if ((puschCqi->ri.pres == PRSNT_NODEF) &&
@@ -15162,8 +15109,7 @@ Void rgSCHCmnDlTARpt(RgSchCellCb *cell,RgSchUeCb *ue)
       }
       else
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "<TA>TA duplicate entry attempt failed: UEID:%u", 
+         DU_LOG("\nERROR  -->  SCH : <TA>TA duplicate entry attempt failed: UEID:%u", 
                ue->ueId);
       }
    }
@@ -18685,8 +18631,7 @@ uint8_t      maxRb
                              hole);
    if (alloc == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHCmnUlRbAllocForPoHoUe(): Could not get UlAlloc");
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnUlRbAllocForPoHoUe(): Could not get UlAlloc");
       return RFAILED;
    }
    rgSCHCmnUlAllocFillRbInfo(cell, sf, alloc);
@@ -18771,7 +18716,7 @@ RgSchRaReqInfo  *raReq
    /* KWork fix */
    if (grnt == NULLP)
    {
-      RLOG_ARG1(L_ERROR,DBG_INSTID,cell->instIdx,  "Failed to get"
+      DU_LOG("\nERROR  -->  SCH : Failed to get"
         "the grant for HO/PDCCH Order. CRNTI:%d",ue->ueId);
       return;
    }
@@ -19030,7 +18975,7 @@ RgSchUlAlloc    *srcAlloc
    /* This should never happen */
    if (dstAlloc == NULLP)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"CRNTI:%d "
+      DU_LOG("\nERROR  -->  SCH : CRNTI:%d "
          "rgSCHUtlUlGetSpfcAlloc failed in rgSCHCmnUlInsAllocFrmNewSf2OldSf",
          srcAlloc->rnti);
       return;
@@ -19225,7 +19170,7 @@ static Void rgSCHCmnUlRmvCmpltdAllocs(RgSchCellCb *cell,RgSchUlSf *sf)
    {
       nxtAlloc = rgSCHUtlUlAllocNxt(sf, alloc);
 #ifdef UL_ADPT_DBG      
-      printf("rgSCHCmnUlRmvCmpltdAllocs:time(%d %d) alloc->hqProc->remTx %d hqProcId(%d) \n",cell->crntTime.sfn,cell->crntTime.slot,alloc->hqProc->remTx, alloc->grnt.hqProcId);
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnUlRmvCmpltdAllocs:time(%d %d) alloc->hqProc->remTx %d hqProcId(%d) \n",cell->crntTime.sfn,cell->crntTime.slot,alloc->hqProc->remTx, alloc->grnt.hqProcId);
 #endif
       alloc->hqProc->rcvdCrcInd = TRUE;
       if ((alloc->hqProc->rcvdCrcInd) || (alloc->hqProc->remTx == 0))
@@ -19369,7 +19314,7 @@ static Void rgSCHCmnUlUpdAllocRetx(RgSchCellCb *cell,RgSchUlAlloc *alloc)
    alloc->hqProc->alloc = NULLP;
    alloc->hqProc->ulSfIdx = RGSCH_INVALID_INFO;
 #ifdef UL_ADPT_DBG  
-   printf("Adding Harq Proc Id in the retx list  hqProcId %d \n",alloc->grnt.hqProcId); 
+   DU_LOG("\nDEBUG  -->  SCH : Adding Harq Proc Id in the retx list  hqProcId %d \n",alloc->grnt.hqProcId); 
 #endif
    cmLListAdd2Tail(&cmnUlCell->reTxLst, &alloc->hqProc->reTxLnk);
    alloc->hqProc->reTxLnk.node = (PTR)alloc->hqProc;
@@ -19429,8 +19374,7 @@ RgSchUlHole       *hole
          if(alloc == NULLP)
          {
             rgSCHUtlPdcchPut(cell, &dlSf->pdcchInfo, pdcch);
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                  "UL Alloc fail for msg3 retx for rnti: %d\n", 
+            DU_LOG("\nERROR  -->  SCH : UL Alloc fail for msg3 retx for rnti: %d\n", 
                   proc->reTxAlloc.rnti);
             return (FALSE);
          }
@@ -19532,8 +19476,7 @@ RgSchUlHole       *hole
    else /* Intg fix */
    {
       rgSCHUtlPdcchPut(cell, &dlSf->pdcchInfo, pdcch);
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-               "Num SB not suffiecient for adap retx for rnti: %d", 
+      DU_LOG("\nERROR  -->  SCH : Num SB not suffiecient for adap retx for rnti: %d", 
                proc->reTxAlloc.rnti);
       return (FALSE);
    }
@@ -19664,7 +19607,7 @@ static Void rgSCHCmnDlRbAlloc(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInfo
 
    if (cellSch->dl.isDlFreqSel)
    {
-      printf("5GTF_ERROR DLFS SCH Enabled\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR DLFS SCH Enabled\n");
       cellSch->apisDlfs->rgSCHDlfsAllocRb(cell, allocInfo);
    }
    else
@@ -21218,7 +21161,7 @@ static S16 rgSCHCmnNonDlfsCmnRbAllocRar(RgSchCellCb *cell,RgSchDlRbAlloc *allocI
    RgSchSfBeamInfo  *beamInfo = &(dlSf->sfBeamInfo[0]);
    if(beamInfo->totVrbgAllocated > MAX_5GTF_VRBG)
    {
-      printf("5GTF_ERROR vrbg allocated > 25\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR vrbg allocated > 25\n");
       return RFAILED;
    }
 
@@ -21241,7 +21184,7 @@ static S16 rgSCHCmnNonDlfsCmnRbAllocRar(RgSchCellCb *cell,RgSchDlRbAlloc *allocI
    allocInfo->tbInfo[0].bytesAlloc = allocInfo->tbInfo[0].bytesReq;
 
 #endif
-   printf("\n[%s],allocInfo->tbInfo[0].bytesAlloc:%u,vrbgReq:%u\n",
+   DU_LOG("\nINFO  -->  SCH : [%s],allocInfo->tbInfo[0].bytesAlloc:%u,vrbgReq:%u\n",
          __func__,allocInfo->tbInfo[0].bytesAlloc,allocInfo->vrbgReq);
 
    return ROK;
@@ -21293,22 +21236,19 @@ Bool             isUeCellEdge
 
    if (dlSf->bw <= dlSf->bwAlloced)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, 
-            "BW is fully allocated for subframe (%d) CRNTI:%d", dlSf->sfNum,allocInfo->rnti);
+      DU_LOG("\nERROR  -->  SCH : BW is fully allocated for subframe (%d) CRNTI:%d", dlSf->sfNum,allocInfo->rnti);
       return FALSE;
    }
 
    if (dlSf->sfrTotalPoolInfo.ccBwFull == TRUE)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-            "BW is fully allocated for CC Pool CRNTI:%d",allocInfo->rnti);
+      DU_LOG("\nERROR  -->  SCH : BW is fully allocated for CC Pool CRNTI:%d",allocInfo->rnti);
       return FALSE;
    }
 
    if ((dlSf->sfrTotalPoolInfo.ceBwFull == TRUE) && (isUeCellEdge))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-            "BW is fully allocated for CE Pool CRNTI:%d",allocInfo->rnti);
+      DU_LOG("\nERROR  -->  SCH : BW is fully allocated for CE Pool CRNTI:%d",allocInfo->rnti);
       return FALSE;
    }  
 
@@ -21673,7 +21613,7 @@ RgSchDlRbAlloc  *allocInfo
 
    if (dlSf->bw <= dlSf->bwAlloced)
    {
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId, "(%d:%d)FAILED CRNTI:%d",
+      DU_LOG("\nERROR  -->  SCH : (%d:%d)FAILED CRNTI:%d",
          dlSf->bw, dlSf->bwAlloced,allocInfo->rnti);
       return (FALSE);
    }
@@ -21779,9 +21719,9 @@ RgSchDlRbAlloc  *allocInfo
                dlSf->lstRbgDfct = 1;
             }
 
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "FAILED for CRNTI:%d",
+            DU_LOG("\nERROR  -->  SCH : FAILED for CRNTI:%d",
                   allocInfo->rnti);
-            printf ("RB Alloc failed for LAA TB type 0\n");
+            DU_LOG("\nERROR  -->  SCH : RB Alloc failed for LAA TB type 0\n");
             return (FALSE);
          }
          return (TRUE);
@@ -21822,8 +21762,8 @@ RgSchDlRbAlloc  *allocInfo
          }
          else
          {
-            printf ("RB Alloc failed for LAA TB type 2\n");
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"FAILED for CRNTI:%d",allocInfo->rnti);
+            DU_LOG("\nERROR  -->  SCH : RB Alloc failed for LAA TB type 2\n");
+            DU_LOG("\nERROR  -->  SCH : FAILED for CRNTI:%d",allocInfo->rnti);
             return (FALSE);
          }
          /* Fix: Number of RBs in case of RETX should be same as 
@@ -21831,7 +21771,7 @@ RgSchDlRbAlloc  *allocInfo
          return (TRUE);
       }
    }
-   RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"FAILED for CRNTI:%d",allocInfo->rnti);
+   DU_LOG("\nERROR  -->  SCH : FAILED for CRNTI:%d",allocInfo->rnti);
    return (FALSE);
 }
 #endif
@@ -21951,7 +21891,7 @@ uint8_t      numRb
       /* KWork fix */
       if (sfrCCPool1 ==  NULLP)
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,  "rgSCHCmnNonDlfsUpdDSFRTyp2Alloc():"
+               DU_LOG("\nERROR  -->  SCH : rgSCHCmnNonDlfsUpdDSFRTyp2Alloc():"
                         "sfrCCPool1 is NULL for CRNTI:%d",ue->ueId);
                return RFAILED;
             }
@@ -21975,7 +21915,7 @@ uint8_t      numRb
                ret = rgSCHCmnBuildRntpInfo(cell, dlSf->rntpInfo.val, dlSf->type2Start, numRb, dlSf->bw);
                if (ret != ROK)
                {
-                    RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHCmnNonDlfsUpdDSFRTyp2Alloc():"
+                    DU_LOG("\nERROR  -->  SCH : rgSCHCmnNonDlfsUpdDSFRTyp2Alloc():"
                       "rgSCHCmnBuildRntpInfo() function returned RFAILED for CRNTI:%d",ue->ueId);
                     return RFAILED;
                }
@@ -21992,7 +21932,7 @@ uint8_t      numRb
             ret = rgSCHCmnBuildRntpInfo(cell, dlSf->rntpInfo.val, dlSf->type2Start, numRb, dlSf->bw);
             if (ret != ROK)
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,   "rgSCHCmnNonDlfsUpdDSFRTyp2Alloc():" 
+               DU_LOG("\nERROR  -->  SCH : rgSCHCmnNonDlfsUpdDSFRTyp2Alloc():" 
                         "rgSCHCmnBuildRntpInfo() function returned RFAILED CRNTI:%d",ue->ueId);
                return RFAILED;
             }
@@ -22254,8 +22194,7 @@ uint16_t     bw
 
    if (rntpPtr == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-               "rgSCHCmnBuildRntpInfo():"
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnBuildRntpInfo():"
                "rntpPtr can't be NULLP (Memory Allocation Failed)");
       return RFAILED;
    }
@@ -22342,7 +22281,7 @@ uint8_t            numRb
             ret = rgSCHCmnBuildRntpInfo(cell, dlSf->rntpInfo.val, sfrPool->type2Start, numRb, dlSf->bw);
             if (ret != ROK)
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHCmnNonDlfsUpdSFRPoolTyp2Alloc():"
+               DU_LOG("\nERROR  -->  SCH : rgSCHCmnNonDlfsUpdSFRPoolTyp2Alloc():"
                         "rgSCHCmnBuildRntpInfo() function returned RFAILED for CRNTI:%d",ue->ueId);
                return RFAILED;
             }
@@ -22354,7 +22293,7 @@ uint8_t            numRb
          ret = rgSCHCmnBuildRntpInfo(cell, dlSf->rntpInfo.val, sfrPool->type2Start, numRb, dlSf->bw);
          if (ret != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHCmnNonDlfsUpdSFRPoolTyp2Alloc():"
+            DU_LOG("\nERROR  -->  SCH : rgSCHCmnNonDlfsUpdSFRPoolTyp2Alloc():"
                      "rgSCHCmnBuildRntpInfo() function returned RFAILED for CRNTI:%d",ue->ueId);
             return RFAILED;
          }
@@ -22528,7 +22467,7 @@ static void rgSCHCmnNonDlfsDsfrRntpComp(RgSchCellCb *cell,RgSchDlSf *dlSf)
                sizeof(RgrLoadInfIndInfo));
       if (ret != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "Could not "
+         DU_LOG("\nERROR  -->  SCH : Could not "
             "allocate memory for sending LoadInfo");
          return;  
       }
@@ -22548,7 +22487,7 @@ static void rgSCHCmnNonDlfsDsfrRntpComp(RgSchCellCb *cell,RgSchDlSf *dlSf)
       ret = rgSCHUtlRgrLoadInfInd(cell, rgrLoadInf);
       if(ret == RFAILED)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHCmnNonDlfsDsfrRntpComp():"
+         DU_LOG("\nERROR  -->  SCH : rgSCHCmnNonDlfsDsfrRntpComp():"
                   "rgSCHUtlRgrLoadInfInd() returned RFAILED");
       }
 
@@ -22717,10 +22656,9 @@ uint8_t      *isDlBwAvail
 
        if(beamInfo->totVrbgAllocated > MAX_5GTF_VRBG)
        {
-          RLOG_ARG1(L_ERROR ,DBG_CELLID,cell->cellId,
-         "5GTF_ERROR : vrbg allocated > 25 :ue (%u)",
+           DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR : vrbg allocated > 25 :ue (%u)",
          ue->ueId);
-          printf("5GTF_ERROR vrbg allocated > 25\n");
+          DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR vrbg allocated > 25\n");
                return RFAILED;
        }
 
@@ -22737,10 +22675,9 @@ uint8_t      *isDlBwAvail
    {
       /* Returning ROK since PDCCH might be available for another UE and
        * further allocations could be done */
-      RLOG_ARG1(L_ERROR ,DBG_CELLID,cell->cellId,
-         "5GTF_ERROR : PDCCH allocation failed :ue (%u)",
+        DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR : PDCCH allocation failed :ue (%u)",
          ue->ueId);
-          printf("5GTF_ERROR PDCCH allocation failed\n");
+       DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR PDCCH allocation failed\n");
       return RFAILED;
    }
 #ifdef RG_5GTF
@@ -22986,10 +22923,9 @@ RgSchDlSf          *dlSf
        RgSchSfBeamInfo  *beamInfo = &(dlSf->sfBeamInfo[0]);
        if(beamInfo->totVrbgAllocated > MAX_5GTF_VRBG)
        {
-          RLOG_ARG1(L_ERROR ,DBG_CELLID,cell->cellId,
-         "5GTF_ERROR : vrbg allocated > 25 :ue (%u)",
+           DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR : vrbg allocated > 25 :ue (%u)",
          raCb->ue->ueId);
-          printf("5GTF_ERROR vrbg allocated > 25\n");
+          DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR vrbg allocated > 25\n");
                return RFAILED;
        }
 #endif
@@ -23245,7 +23181,7 @@ CmLListCp          *nonSchdHqPLst
          cell->tenbStats->sch.dl5gtfRbAllocFail++;
 #endif
          /* Allocation failed : Add UE to the non-scheduled list */
-                       printf("5GTF_ERROR Dl rb alloc failed adding nonSchdHqPLst\n");
+        DU_LOG("\nERROR  -->  SCH : 5GTF_ERROR Dl rb alloc failed adding nonSchdHqPLst\n");
          cmLListAdd2Tail(nonSchdHqPLst, schdLnkNode);
       }
    }
@@ -23293,7 +23229,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
    /* Allocate for MSG4 retransmissions */
    if (allocInfo->msg4Alloc.msg4RetxLst.count)
    {
-      printf("5GTF_ERROR rgSCHCmnNonDlfsMsg4Alloc RetxLst\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR rgSCHCmnNonDlfsMsg4Alloc RetxLst\n");
       rgSCHCmnNonDlfsMsg4Alloc(cell, &(allocInfo->msg4Alloc), TRUE);
    }
 
@@ -23301,7 +23237,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
    /* Assuming all the nodes in the list need allocations: rbsReq is valid */
    if (allocInfo->msg4Alloc.msg4TxLst.count)
    {
-      printf("5GTF_ERROR rgSCHCmnNonDlfsMsg4Alloc txLst\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR rgSCHCmnNonDlfsMsg4Alloc txLst\n");
       rgSCHCmnNonDlfsMsg4Alloc(cell, &(allocInfo->msg4Alloc), FALSE);
    }
 #ifdef RGR_V1
@@ -23309,7 +23245,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
     * retransmissions */
    if (allocInfo->ccchSduAlloc.ccchSduRetxLst.count)
    {
-      printf("5GTF_ERROR rgSCHCmnNonDlfsCcchSduAlloc\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR rgSCHCmnNonDlfsCcchSduAlloc\n");
       rgSCHCmnNonDlfsCcchSduAlloc(cell, &(allocInfo->ccchSduAlloc), TRUE);
    }
 
@@ -23317,7 +23253,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
    /* Allocate for CCCH SDU (received after guard timer expiry) transmissions */
    if (allocInfo->ccchSduAlloc.ccchSduTxLst.count)
    {
-      printf("5GTF_ERROR rgSCHCmnNonDlfsCcchSduAlloc\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR rgSCHCmnNonDlfsCcchSduAlloc\n");
       rgSCHCmnNonDlfsCcchSduAlloc(cell, &(allocInfo->ccchSduAlloc), FALSE);
    }
 #endif
@@ -23331,7 +23267,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
       {
          break;
       }
-      printf("5GTF_ERROR calling RAR rgSCHCmnNonDlfsCmnRbAlloc\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR calling RAR rgSCHCmnNonDlfsCmnRbAlloc\n");
    //   if ((rgSCHCmnNonDlfsCmnRbAlloc(cell, reqAllocInfo)) != ROK)
       if ((rgSCHCmnNonDlfsCmnRbAllocRar(cell, reqAllocInfo)) != ROK)
       {
@@ -23342,7 +23278,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
    /* Allocate for RETX+TX UEs */
    if(allocInfo->dedAlloc.txRetxHqPLst.count)
    {
-      printf("5GTF_ERROR TX RETX rgSCHCmnNonDlfsDedRbAlloc\n");
+      DU_LOG("\nDEBUG  -->  SCH : 5GTF_ERROR TX RETX rgSCHCmnNonDlfsDedRbAlloc\n");
       rgSCHCmnNonDlfsDedRbAlloc(cell, &(allocInfo->dedAlloc),
             &(allocInfo->dedAlloc.txRetxHqPLst),
             &(allocInfo->dedAlloc.schdTxRetxHqPLst),
@@ -23373,17 +23309,17 @@ RgSchCmnDlRbAllocInfo *allocInfo
             cmnCell->dl.maxUePerDlSf)
       {
 #ifndef ALIGN_64BIT
-         RGSCHDBGERRNEW(cell->instIdx,(rgSchPBuf(cell->instIdx),"UEs selected by"
+         DU_LOG("\nERROR  -->  SCH : UEs selected by"
                   " scheduler exceed maximumUePerDlSf(%u)tx-retx %ld retx %ld tx %ld\n",
                   cmnCell->dl.maxUePerDlSf, allocInfo->dedAlloc.txRetxHqPLst.count,
                   allocInfo->dedAlloc.retxHqPLst.count,
-                  allocInfo->dedAlloc.txHqPLst.count));
+                  allocInfo->dedAlloc.txHqPLst.count);
 #else
-         RGSCHDBGERRNEW(cell->instIdx,(rgSchPBuf(cell->instIdx),"UEs selected by"
+         DU_LOG("\nERROR  -->  SCH : UEs selected by"
                   " scheduler exceed maximumUePerDlSf(%u)tx-retx %d retx %d tx %d\n",
                   cmnCell->dl.maxUePerDlSf, allocInfo->dedAlloc.txRetxHqPLst.count,
                   allocInfo->dedAlloc.retxHqPLst.count,
-                  allocInfo->dedAlloc.txHqPLst.count));
+                  allocInfo->dedAlloc.txHqPLst.count);
 #endif
       }
    }
@@ -23391,7 +23327,7 @@ RgSchCmnDlRbAllocInfo *allocInfo
    /* LTE_ADV_FLAG_REMOVED_START */
    if(cell->lteAdvCb.dsfrCfg.status == RGR_ENABLE)
    {   
-      printf("5GTF_ERROR RETX rgSCHCmnNonDlfsDsfrRntpComp\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR RETX rgSCHCmnNonDlfsDsfrRntpComp\n");
       rgSCHCmnNonDlfsDsfrRntpComp(cell, allocInfo->dedAlloc.dedDlSf); 
    }  
    /* LTE_ADV_FLAG_REMOVED_END */
@@ -24023,7 +23959,7 @@ RgSchCmnDlRbAllocInfo      *cellWdAllocInfo
          (proc->tbInfo[1].state == HQ_TB_NACKED))
    {
 #ifdef LAA_DBG_LOG
-      printf ("RETX RB TM3 nack for both hqp %d cell %d \n", proc->procId, proc->hqE->cell->cellId);
+      DU_LOG("\nDEBUG  -->  SCH : RETX RB TM3 nack for both hqp %d cell %d \n", proc->procId, proc->hqE->cell->cellId);
 #endif
       /* Both TBs require RETX allocation */
       rgSCHCmnDlTM3RetxRetx(cell, subFrm, ue, bo, effBo,\
@@ -24981,7 +24917,7 @@ RgSchCmnDlRbAllocInfo *cellWdAllocInfo
    if (frthrScp)
    {
 #ifdef LAA_DBG_LOG
-      printf ("TX RETX called from proc %d cell %d \n",proc->procId, cell->cellId);
+      DU_LOG("\nDEBUG  -->  SCH : TX RETX called from proc %d cell %d \n",proc->procId, cell->cellId);
 #endif
       ret = rgSCHCmnDlAlloc2CwTxRetxRb(cell, subFrm, ue, retxTb, txTb,\
             &numRb, effBo);
@@ -25516,7 +25452,7 @@ RgSchCmnDlRbAllocInfo      *cellWdAllocInfo
 )
 {
 #if (ERRCLASS & ERRCLS_DEBUG)
-   RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Invalid TM 5 for CRNTI:%d",ue->ueId);
+   DU_LOG("\nERROR  -->  SCH : Invalid TM 5 for CRNTI:%d",ue->ueId);
 #endif
    return;
 }
@@ -25558,7 +25494,7 @@ RgSchCmnDlRbAllocInfo  *cellWdAllocInfo
 )
 {
 #if (ERRCLASS & ERRCLS_DEBUG)
-   RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Invalid TM 5 for CRNTI:%d",ue->ueId);
+   DU_LOG("\nERROR  -->  SCH : Invalid TM 5 for CRNTI:%d",ue->ueId);
 #endif
    return;
 }
@@ -26315,8 +26251,7 @@ uint32_t         *effBo
          (allocInfo->tbInfo[1].bytesReq >= ueDl->maxTbSz/8) ||
          (allocInfo->rbsReq >= ueDl->maxRb))
    {
-      RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
-            "rgSCHCmnDlAllocRb(): UEs max allocation exceed");
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnDlAllocRb(): UEs max allocation exceed");
       return RFAILED;
    }
 
@@ -26559,7 +26494,7 @@ uint32_t                        *effBo
 
       if(*numRb <= 3)
       {
-         RLOG1(L_ERROR," Number of RBs [%d] are less than or equal to 3",*numRb);
+         DU_LOG("\nERROR  -->  SCH : Number of RBs [%d] are less than or equal to 3",*numRb);
         return RFAILED;
       }
    }
@@ -26679,7 +26614,7 @@ uint32_t         *effBo
        
       if(*numRb <= 3)
       {
-         RLOG1(L_ERROR," Number of RBs [%d] are less than or equal to 3",*numRb);
+         DU_LOG("\nERROR  -->  SCH :  Number of RBs [%d] are less than or equal to 3",*numRb);
         return RFAILED;
       }
    }
@@ -27582,8 +27517,7 @@ RgInfSfAlloc            *subfrmAlloc
          /* LTE_ADV_FLAG_REMOVED_START */
          if(cell->siCb.siCtx.retxCntRem)
          { 
-            RGSCHLOGERROR(cell->instIdx,ERRCLS_INT_PAR,ERG011,(ErrVal)cell->siCb.siCtx.siId,
-                                "rgSCHDlSiSched(): SI not scheduled and window expired");
+             DU_LOG("\nERROR  -->  SCH : rgSCHDlSiSched(): SI not scheduled and window expired");
          }
          /* LTE_ADV_FLAG_REMOVED_END */
          if(cell->siCb.siCtx.warningSiFlag == TRUE)
@@ -27674,7 +27608,7 @@ RgInfSfAlloc            *subfrmAlloc
     * exceeds the available */
    if (rb > sf->bw - sf->bwAssigned)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,  "rgSCHDlSiSched(): "
+      DU_LOG("\nERROR  -->  SCH : rgSCHDlSiSched(): "
          "BW allocation failed CRNTI:%d",RGSCH_SI_RNTI);
       return;
    }
@@ -27752,7 +27686,7 @@ RgrUeCqiRept        *ueCqiRpt
                sizeof(RgrStaIndInfo));
       if (retVal != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Could not "
+         DU_LOG("\nERROR  -->  SCH : Could not "
             "allocate memory for sending StaInd CRNTI:%d",ue->ueId);
          return (retVal);
       }
@@ -27992,9 +27926,6 @@ RgInfUeDatInd  *datInd
 {
    uint32_t idx = 0;
    RgSchCmnCell *cellSch = RG_SCH_CMN_GET_CELL(cell);
-#ifdef DEBUGP
-   Inst                inst = cell->instIdx;
-#endif
 
 
    for (idx = 0; (idx < RGINF_MAX_LCG_PER_UE - 1); idx++)
@@ -28049,7 +27980,7 @@ RgInfUeDatInd  *datInd
    {
       if (cellSch->apisEmtcUl->rgSCHRgrUlLcgUpd(cell, ue, datInd) != ROK)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "\n rgSCHCmnUpdUeDataIndLcg(): rgSCHRgrUlLcgUpd returned failure"));
+         DU_LOG("\nERROR  -->  SCH :  rgSCHCmnUpdUeDataIndLcg(): rgSCHRgrUlLcgUpd returned failure");
       }
 
    }
@@ -28058,7 +27989,7 @@ RgInfUeDatInd  *datInd
    {
       if (cellSch->apisUl->rgSCHRgrUlLcgUpd(cell, ue, datInd) != ROK)
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "\n rgSCHCmnUpdUeDataIndLcg(): rgSCHRgrUlLcgUpd returned failure"));
+         DU_LOG("\nERROR  -->  SCH : rgSCHCmnUpdUeDataIndLcg(): rgSCHRgrUlLcgUpd returned failure");
       }
    }
 }
@@ -28606,7 +28537,7 @@ Void rgSCHCmnDlSch(RgSchCellCb *cell)
          {
                      ul5gtfsidDlAlreadyMarkUl++;
             /*
-                     printf("ul5gtfsidDlAlreadyMarkUl: %d, [sfn:sf] [%04d:%02d]\n", 
+                   DU_LOG("\nINFO   -->  SCH : ul5gtfsidDlAlreadyMarkUl: %d, [sfn:sf] [%04d:%02d]\n", 
                     ul5gtfsidDlAlreadyMarkUl, cellSch->dl.time.sfn, 
                     cellSch->dl.time.slot);
             */
index 92dde46..801c192 100755 (executable)
@@ -31,9 +31,6 @@
 /** @file rg_sch_dbm.c
 @brief This file contains the APIs exposed for the database handling of the scheduler.
 */
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=230;
-static int RLOG_MODULE_ID=4096;
 /* header include files -- defines (.h) */
 #include "common_def.h"
 #include "lrg.h"
@@ -1312,7 +1309,7 @@ RgSchRntiLnk* rgSCHDbmGetRnti(RgSchCellCb *cellCb)
 
    if (!(cellCb->rntiDb.freeRnti))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,"RNTI exhausted count:%d",
+      DU_LOG("\nERROR  -->  SCH : RNTI exhausted count:%d",
                 cellCb->rntiDb.count);
       return (NULLP);
    }
@@ -1335,7 +1332,7 @@ RgSchRntiLnk* rgSCHDbmGetRnti(RgSchCellCb *cellCb)
 
    cellCb->rntiDb.count--;
 
-   printf("rgSCHDbmGetRnti::rntiLnk->rnti %u\n",rntiLnk->rnti);
+   DU_LOG("\nINFO  -->  SCH : rgSCHDbmGetRnti::rntiLnk->rnti %u\n",rntiLnk->rnti);
    return (rntiLnk);
 } /* rgSCHDbmGetRnti */
 
index 2e51df9..a2ef173 100755 (executable)
@@ -32,9 +32,6 @@
 @brief APIs related to Downlink HARQ for the scheduler.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=242;
-static int RLOG_MODULE_ID=4096;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -321,8 +318,7 @@ RgSchDlHqEnt *rgSCHDhmHqEntInit(RgSchCellCb *cell)
    /* Init the HARQ data structure */
    if (rgSCHUtlAllocSBuf(inst, (Data **)&hqE, sizeof(RgSchDlHqEnt)) != ROK)
    {
-      RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
-                                         "rgSCHDhmHqEntInit hqE alloc fail"); 
+      DU_LOG("\nERROR  -->  SCH: rgSCHDhmHqEntInit hqE alloc fail"); 
       return (NULLP);
    }
 #ifdef LTE_TDD
@@ -331,8 +327,7 @@ RgSchDlHqEnt *rgSCHDhmHqEntInit(RgSchCellCb *cell)
    if (rgSCHUtlAllocSBuf(inst, (Data **)&hqE->procs, 
                            hqE->numHqPrcs * sizeof(RgSchDlHqProcCb)) != ROK)
    {
-      RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
-                                         "rgSCHDhmHqEntInit hqP alloc fail in hqE"); 
+      DU_LOG("\nERROR  -->  SCH: rgSCHDhmHqEntInit hqP alloc fail in hqE"); 
       return (NULLP);
    }
 #else
@@ -391,7 +386,7 @@ S16 rgSCHDhmGetAvlHqProc(RgSchCellCb *cell,RgSchUeCb *ue,CmLteTimingInfo  timing
  
    if (hqE == NULLP)
    {   
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHDhmGetAvlHqProc hqE NULL ue %d"
+      DU_LOG("\nERROR  -->  SCH : rgSCHDhmGetAvlHqProc hqE NULL ue %d"
                            , ue->ueId);     
       return RFAILED;
    }
@@ -401,8 +396,7 @@ S16 rgSCHDhmGetAvlHqProc(RgSchCellCb *cell,RgSchUeCb *ue,CmLteTimingInfo  timing
 
    if (NULLP == tmp)
    {
-    RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,
-                        "rgSCHDhmGetAvlHqProc free %ld inUse %ld ue %d"
+       DU_LOG("\nERROR  -->  SCH : rgSCHDhmGetAvlHqProc free %d inUse %d ue %d"
                                            , hqE->free.count, hqE->inUse.count, ue->ueId);
       /* No Harq Process available in the free queue. */
       return RFAILED;
@@ -866,8 +860,8 @@ rgEmtcsetNullSubFrm(hqP);
          if (hqE->free.count > 8)
          {
             int *p = NULL;
-            printf("Crashing invalid hq count after free \n");
-            printf("Crashing %d \n", *p);
+            printf("\nDEBUG  -->  SCH: Crashing invalid hq count after free \n");
+            printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
             *p = 10;
          }
 #endif
@@ -1109,7 +1103,7 @@ static Void rgSCHDhmFdbkIndHndlTa(RgSchDlHqProcCb *hqP,uint8_t tbIdx,uint8_t fdb
          else
          { 
 #ifdef DEBUGP            
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Trying to add CRNTI:%d into TA"
+            DU_LOG("\nERROR  -->  SCH : Trying to add CRNTI:%d into TA"
                      "ACK List twice", ueCb->ueId);
 #endif            
          } 
@@ -1125,8 +1119,7 @@ static Void rgSCHDhmFdbkIndHndlTa(RgSchDlHqProcCb *hqP,uint8_t tbIdx,uint8_t fdb
             hqP->hqE->ue->dl.taCb.state =  RGSCH_TA_IDLE;
 
             rgSCHUtlReTxTa(cell, ueCb);
-            RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId, 
-                  "Nack Rcvd for TA. Max Tries Attempted");
+            DU_LOG("\nERROR  -->  SCH : Nack Rcvd for TA. Max Tries Attempted");
          }
          break;
       case TFU_HQFDB_DTX:
@@ -1371,8 +1364,7 @@ Void rgSCHDhmHqTbTrnsFail(RgSchCellCb *cell,RgSchDlHqProcCb *hqP,uint8_t tbCnt,B
 #ifdef RGR_V1
       if(hqP->hqE->raCb->expiryTime.sfn == RGSCH_CONTRES_EXP)
       {
-         RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-               "rgSCHDhmHqTbTrnsFail contRes exp(): tmpCRNTI = %u",
+         DU_LOG("\nDEBUG  -->  SCH : rgSCHDhmHqTbTrnsFail contRes exp(): tmpCRNTI = %u",
                hqP->hqE->raCb->tmpCrnti);
          rgSCHRamMsg4Done(cell, (RgSchRaCb *)hqP->hqE->raCb);
          return;
@@ -1505,8 +1497,7 @@ Void rgSCHDhmHqTbTrnsFail(RgSchCellCb *cell,RgSchDlHqProcCb *hqP,uint8_t tbCnt,B
 #endif
 
          /* Perform RAM MSG4 done processing */
-         RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-               "rgSCHDhmHqTbTrnsFail(): hq max retx fail: tmpCRNTI = %u",
+         DU_LOG("\nDEBUG  -->  SCH : rgSCHDhmHqTbTrnsFail(): hq max retx fail: tmpCRNTI = %u",
                hqP->hqE->raCb->tmpCrnti);
          rgSCHRamMsg4Done(cell, (RgSchRaCb *)hqP->hqE->raCb);
       }
@@ -2439,8 +2430,7 @@ RgSchErrInfo         *err
          if ( found == FALSE ) 
          {
          RGSCH_NULL_CHECK(cellCb->instIdx, ue);
-         RLOG_ARG3(L_ERROR,DBG_CELLID,cellCb->cellId,"CRNTI:%d"
-         " NO HARQ proc available for feedback:timeInfo:snf %d,slot %d",
+         DU_LOG("\nERROR  -->  SCH : NO HARQ proc available for feedback:timeInfo:snf %d,slot %d",
          ue->ueId,timeInfo.sfn, timeInfo.slot);
          err->errType   = RGSCHERR_DHM_FDBK_IND;
          err->errCause  = RGSCHERR_DHM_FDBK_IND_INVALID_CB;
@@ -2653,20 +2643,19 @@ RgSchErrInfo    *err
          {
             raCb = rgSCHDbmGetRaCb(cell, rnti);
          }
-         RGSCHDBGINFO(cell->instIdx,
-               (rgSchPBuf(cell->instIdx), "Ack Rcvd. FdbkInd for Msg4Done\n"));
+         DU_LOG("\nDEBUG  -->  SCH: Ack Rcvd. FdbkInd for Msg4Done\n");
          /* Inform Random Access Module regarding the ack received */
          if (raCb != NULLP)
          {
             /*RRC Connection Setup failure issue where RRC connection 
              * setup was not reaching UE due to message 4 HARQ failure */
-            printf("\nMSG4 Ack ,calling rgSCHRamMsg4Done\n");
+            printf("\nDEBUG  -->  SCH: MSG4 Ack ,calling rgSCHRamMsg4Done\n");
             ret = rgSCHRamMsg4Done(cell, raCb);
             hqFreed = TRUE;
          }
          else
          {
-            printf("\nraCb is NULLP\n");
+            printf("\nDEBUG  -->  SCH: raCb is NULLP\n");
          }
       }
       else /*ccpu00114124- HARQ Release for Msg4 */
@@ -3191,8 +3180,7 @@ RgSchErrInfo         *err
          {
             if (!sf->relPdcch)
             {
-               RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId, 
-                  "CRNTI:%d NO HARQ proc available for feedback: TimingInfo: "
+               DU_LOG("\nERROR  -->  SCH : CRNTI:%d NO HARQ proc available for feedback: TimingInfo: "
                   "sfn %d slot %d", ue->ueId, timingInfo.sfn,
                   timingInfo.slot);
                return RFAILED;
@@ -3871,8 +3859,7 @@ S16 rgSCHDhmRlsDlsfHqProc(RgSchCellCb *cellCb,CmLteTimingInfo uciTimingInfo)
 
                            rgSCHUtlReTxTa(cellCb, ue);
 
-                           RLOG_ARG0(L_DEBUG,DBG_CELLID,cellCb->cellId,
-                                   "Nack/DTX Rcvd for TA. Max Tries Attempted");
+                           DU_LOG("\nDEBUG  -->  SCH : Nack/DTX Rcvd for TA. Max Tries Attempted");
                         }
                      }
                   }
@@ -3956,8 +3943,7 @@ S16 rgSCHDhmRlsDlsfHqProc(RgSchCellCb *cellCb,CmLteTimingInfo uciTimingInfo)
                ue->dl.taCb.state = RGSCH_TA_IDLE;
                
                rgSCHUtlReTxTa(cellCb, ue); 
-               RLOG_ARG0(L_DEBUG,DBG_CELLID,cellCb->cellId,
-                     "Nack/DTX Rcvd for TA. Max Tries Attempted");
+               DU_LOG("\nDEBUG  -->  SCH : Nack/DTX Rcvd for TA. Max Tries Attempted");
                
              }
          }
@@ -4350,7 +4336,7 @@ static S16 rgSCHDhmUpdateAckNackHistory(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_
       ueDl->laCb[tbCnt].deltaiTbs = ueDl->laCb[tbCnt].deltaiTbs - DL_LA_STEPDOWN; 
    }
    /*
-   printf("deltaiTbs[%d] cqibasediTbs[%d] iTbs[%d] tbCnt[%d]\n", 
+   printf("\nDEBUG  -->  SCH: deltaiTbs[%d] cqibasediTbs[%d] iTbs[%d] tbCnt[%d]\n", 
            ueDl->laCb[tbCnt].deltaiTbs, ueDl->laCb[tbCnt].cqiBasediTbs, 
            (ueDl->laCb[tbCnt].deltaiTbs + ueDl->laCb[tbCnt].cqiBasediTbs)/100,
            tbCnt);
@@ -4486,8 +4472,8 @@ Void rgSCHDhmHqPAdd2FreeLst(RgSchDlHqProcCb  *hqP)
    if (hqP->hqPLst)
    {
       int *p = NULL;
-      printf("Crashing already part of free lst\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing already part of free lst\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4499,8 +4485,8 @@ Void rgSCHDhmHqPAdd2FreeLst(RgSchDlHqProcCb  *hqP)
    if (hqP->hqE->free.count > 8)
    {
       int *p = NULL;
-      printf("Crashing invalid hq count\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing invalid hq count\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4534,8 +4520,8 @@ Void rgSCHDhmHqPAdd2InUseLst(RgSchDlHqProcCb  *hqP)
    if (hqP->hqPLst)
    {
       int *p = NULL;
-      printf("Crashing already part of inuse lst\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing already part of inuse lst\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4547,8 +4533,8 @@ Void rgSCHDhmHqPAdd2InUseLst(RgSchDlHqProcCb  *hqP)
    if (hqP->hqE->inUse.count > 8)
    {
       int *p = NULL;
-      printf("Crashing invalid hq count \n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing invalid hq count \n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4577,8 +4563,8 @@ Void rgSCHDhmHqPDelFrmFreeLst(RgSchDlHqProcCb *hqP)
    if (!hqP->hqPLst)
    {
       int *p = NULL;
-      printf("Crashing not part of any lst\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing not part of any lst\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4586,8 +4572,8 @@ Void rgSCHDhmHqPDelFrmFreeLst(RgSchDlHqProcCb *hqP)
    if (hqP->hqPLst != &hqP->hqE->free)
    {
       int *p = NULL;
-      printf("Crashing del from wrong lst\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing del from wrong lst\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4599,8 +4585,8 @@ Void rgSCHDhmHqPDelFrmFreeLst(RgSchDlHqProcCb *hqP)
    if (hqP->hqE->free.count > 8)
    {
       int *p = NULL;
-      printf("Crashing invalid hq count\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing invalid hq count\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4631,8 +4617,8 @@ Void rgSCHDhmHqPDelFrmInUseLst(RgSchDlHqProcCb *hqP)
    if (!hqP->hqPLst)
    {
       int *p = NULL;
-      printf("Crashing not part of any lst\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing not part of any lst\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
 
    }
@@ -4641,8 +4627,8 @@ Void rgSCHDhmHqPDelFrmInUseLst(RgSchDlHqProcCb *hqP)
    if (hqP->hqPLst != &hqP->hqE->inUse)
    {
       int *p = NULL;
-      printf("Crashing del from wrong lst\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing del from wrong lst\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
@@ -4654,8 +4640,8 @@ Void rgSCHDhmHqPDelFrmInUseLst(RgSchDlHqProcCb *hqP)
    if (hqP->hqE->inUse.count > 8)
    {
       int *p = NULL;
-      printf("Crashing invalid hq count\n");
-      printf("Crashing %d \n", *p);
+      printf("\nDEBUG  -->  SCH: Crashing invalid hq count\n");
+      printf("\nDEBUG  -->  SCH: Crashing %d \n", *p);
       *p = 10;
    }
 #endif
index c7f0fa4..267c0d1 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This file implements the DRX processing .
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=163;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -1080,7 +1077,7 @@ S16 rgSCHDrxUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg)
          ||
          (ueCfg == (RgrUeCfg* )NULLP))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHDrxUeCfg():"
+      DU_LOG("\nERROR  -->  SCH : rgSCHDrxUeCfg():"
                "Invalid params.cell or ue or ueCfg is NULL ");
       return RFAILED;
    }
@@ -1093,8 +1090,7 @@ S16 rgSCHDrxUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg)
 
    if(ret != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "Memory allocation FAILED for DRX UECB CRBTI:%d",ue->ueId);
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for DRX UECB CRBTI:%d",ue->ueId);
       return (ret);
    }
 
@@ -1156,10 +1152,10 @@ S16 rgSCHDrxUeCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg)
    ueDrxCb->distance = (nxtOnDurTime - curTime) / RG_SCH_MAX_DRXQ_SIZE;
    if (ueDrxCb->distance < 0)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, "DRXUE. Invalid "
+      DU_LOG("\nERROR  -->  SCH : DRXUE. Invalid "
          "value for distance, %d CRNTI:%d", ueDrxCb->distance,ue->ueId);
    }
-   //printf("The onduartion index is: %d\n",(int)onDurIndx);
+   //DU_LOG("\nDEBUG  -->  SCH : The onduartion index is: %d\n",(int)onDurIndx);
    cmLListAdd2Tail(&(cell->drxCb->drxQ[onDurIndx].onDurationQ), 
          &(ueDrxCb->onDurationEnt));
 
@@ -1227,8 +1223,7 @@ static S16 rgSCHDrxGetNxtOnDur(RgSchCellCb *cell,RgSchDrxUeCb *drxCb,CmLteTiming
        (nxtOnDur == (CmLteTimingInfo* )NULLP)
       )
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                        "rgSCHDrxGetNxOnDur():Invalid params."
+      DU_LOG("\nERROR  -->  SCH : rgSCHDrxGetNxOnDur():Invalid params."
                         "cell/drxCb/nxtOnDur is NULL");
       return RFAILED;
    }
@@ -1391,8 +1386,7 @@ S16 rgSCHDrxUeReCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg  *ueReCfg)
 
      if ( ret != ROK )
      {
-        RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-           "rgSCHdrxUeReCfg():""Memory allocation FAILED for DRX UE Cb CRNTI:%d",
+        DU_LOG("\nERROR  -->  SCH : rgSCHdrxUeReCfg():""Memory allocation FAILED for DRX UE Cb CRNTI:%d",
                   ue->ueId);
         return (ret);
      }
@@ -1505,8 +1499,7 @@ S16 rgSCHDrxUeReCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg  *ueReCfg)
       if((ueDrxCb->onDurExpIndx != DRX_INVALID) && (ueDrxCb->onDurExpDistance != DRX_TMR_EXPRD))
       {
          curIndx = (curTime + RG_SCH_DRX_DL_DELTA) % RG_SCH_MAX_DRXQ_SIZE;
-         RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
-               "OLD ONDUR RUNNING-EXPIRES at %d curIdx-%d nxtOnDurTime-%d",
+         DU_LOG("\nDEBUG  -->  SCH : OLD ONDUR RUNNING-EXPIRES at %d curIdx-%d nxtOnDurTime-%d",
                ueDrxCb->onDurExpIndx, 
                curIndx,
                nxtOnDurTime);  
@@ -1514,11 +1507,13 @@ S16 rgSCHDrxUeReCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg  *ueReCfg)
          /* Manipulating the time when old onDuration timer can expire */ 
          if(curIndx >= ueDrxCb->onDurExpIndx)
          {
-            onDurExpTime = curTime + ((ueDrxCb->onDurExpDistance+1) * RG_SCH_MAX_DRXQ_SIZE)+ (ueDrxCb->onDurExpIndx - curIndx + RG_SCH_DRX_DL_DELTA); 
+            onDurExpTime = curTime + ((ueDrxCb->onDurExpDistance+1) * RG_SCH_MAX_DRXQ_SIZE)+\
+           (ueDrxCb->onDurExpIndx - curIndx + RG_SCH_DRX_DL_DELTA); 
          }
          else
          {
-            onDurExpTime = curTime + (ueDrxCb->onDurExpDistance * RG_SCH_MAX_DRXQ_SIZE)+ (ueDrxCb->onDurExpIndx - curIndx + RG_SCH_DRX_DL_DELTA); 
+            onDurExpTime = curTime + (ueDrxCb->onDurExpDistance * RG_SCH_MAX_DRXQ_SIZE)+\
+           (ueDrxCb->onDurExpIndx - curIndx + RG_SCH_DRX_DL_DELTA); 
          }         
 
          if(nxtOnDurTime <= onDurExpTime)
@@ -1542,7 +1537,7 @@ S16 rgSCHDrxUeReCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg  *ueReCfg)
       ueDrxCb->distance = (nxtOnDurTime - curTime) / RG_SCH_MAX_DRXQ_SIZE;
       if (ueDrxCb->distance < 0)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"DRXUE. Invalid "
+         DU_LOG("\nERROR  -->  SCH : DRXUE. Invalid "
             "value for distance, %d CRNTI:%d", ueDrxCb->distance,ue->ueId);
       }
     
@@ -1748,8 +1743,7 @@ S16 rgSCHDrxCellCfg(RgSchCellCb *cell,RgrCellCfg *cellCfg)
   /*KWORK_FIX :Removed check for cell being NULL*/ 
    if( (cellCfg == (RgrCellCfg* )NULLP))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                "rgSCHDrxCellCfg():Invalid Params. cell/cellCfg is NULL");
+      DU_LOG("\nERROR  -->  SCH : rgSCHDrxCellCfg():Invalid Params. cell/cellCfg is NULL");
       return RFAILED;
    }
 #endif
@@ -1760,7 +1754,7 @@ S16 rgSCHDrxCellCfg(RgSchCellCb *cell,RgrCellCfg *cellCfg)
 
    if(ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHDrxCellCfg():"
+      DU_LOG("\nERROR  -->  SCH : rgSCHDrxCellCfg():"
                "Memory allocation FAILED for DRX cell Cb");
       return (ret);
    }
@@ -1854,8 +1848,7 @@ S16 rgSCHDrxSrInd(RgSchCellCb *cell,RgSchUeCb  *ue)
 
    if( (ue == (RgSchUeCb* )NULLP))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                 "rgSCHDrxSrInd():Invalid Params. cell/ue is NULL");
+      DU_LOG("\nERROR  -->  SCH : rgSCHDrxSrInd():Invalid Params. cell/ue is NULL");
       return RFAILED;
    }
  #endif
@@ -1979,7 +1972,7 @@ static Void rgSCHDrxMvToNxtOnDurOcc(RgSchCellCb *cell,RgSchUeCb *ueCb,uint16_t i
       drxUe->distance = (nxtOnDurInSf-curTime) / RG_SCH_MAX_DRXQ_SIZE;
       if (drxUe->distance < 0)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"DRXUE. Invalid "
+         DU_LOG("\nERROR  -->  SCH : DRXUE. Invalid "
             "value for distance, %d CRNTI:%d", drxUe->distance,ueCb->ueId);
       }
    }
@@ -2211,7 +2204,7 @@ static Void rgSCHDrxCalcNxtTmrExpry(RgSchCellCb *cell, RgSchUeCb *ue, uint16_t d
       }
       if (*distance < 0)
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, "DRXUE. Invalid "
+         DU_LOG("\nERROR  -->  SCH : DRXUE. Invalid "
             "value for distance, %d CRNTI:%d", *distance,ue->ueId);
       }      
    }
@@ -2443,7 +2436,7 @@ static Void rgSCHDrxTtiHdlOnDurDl(RgSchCellCb *cell,uint16_t dlIndex)
    drxCell     = (cell->drxCb);
    
    delInUlScan = drxCell->delInUlScan;
-   //printf("CELL  Timer  [SFN : %d],[SF : %d]\n",cell->crntTime.sfn,cell->crntTime.slot);
+   //DU_LOG("\nINFO  -->  SCH : CELL  Timer  [SFN : %d],[SF : %d]\n",cell->crntTime.sfn,cell->crntTime.slot);
    
    node = drxCell->drxQ[dlIndex].onDurationQ.first;
 
@@ -2478,8 +2471,7 @@ static Void rgSCHDrxTtiHdlOnDurDl(RgSchCellCb *cell,uint16_t dlIndex)
       /* Temporary fix to delete stale entry */
       if (drxUe->onDurExpIndx != DRX_INVALID)
       {
-         RLOG_ARG4(L_DEBUG,DBG_CELLID,cell->cellId, 
-               "UEID:%d PreExisted[%d:%d]in onDurExpQ new[%d]",
+         DU_LOG("\nDEBUG  -->  SCH : UEID:%d PreExisted[%d:%d]in onDurExpQ new[%d]",
                ue->ueId, 
                drxUe->onDurExpIndx, 
                drxUe->onDurExpDistance, 
@@ -2507,11 +2499,12 @@ static Void rgSCHDrxTtiHdlOnDurDl(RgSchCellCb *cell,uint16_t dlIndex)
 
       cmLListAdd2Tail(&(drxCell->drxQ[expiryIndex].onDurationExpQ),
             &(drxUe->onDurationExpEnt));
-      //printf("DRXOnDuration Timer Started at [SFN : %d],[SF : %d]\n",cell->crntTime.sfn,cell->crntTime.slot);
+      //DU_LOG("\nINFO  -->  SCH : DRXOnDuration Timer Started at [SFN : %d],[SF : %d]\n",cell->crntTime.sfn,cell->crntTime.slot);
       drxUe->onDurationExpEnt.node = (PTR)ue;
       drxUe->onDurExpIndx          = expiryIndex;
 
-      //printf("DRxOnDuration will Expire = [%d]\n",(cell->crntTime.sfn*10+cell->crntTime.slot+drxUe->onDurTmrLen));
+      //DU_LOG("\nINFO  -->  SCH : DRxOnDuration will Expire = [%d]\n",\
+      (cell->crntTime.sfn*10+cell->crntTime.slot+drxUe->onDurTmrLen));
 
       if ( delInUlScan == FALSE )
       {
@@ -2682,7 +2675,7 @@ static Void rgSCHDrxTtiHdlDlHarqRTT(RgSchCellCb *cell,uint16_t dlIndex)
          }
          else
          {
-            RLOG_ARG4(L_ERROR,DBG_CELLID,cell->cellId,"CRNTI:%d "
+            DU_LOG("\nERROR  -->  SCH : CRNTI:%d "
                "Adding Retx Node to expire at RetxIndx: %d at dlIndex %d "
                "drxHq->reTxIndx %d", ue->ueId, reTxExpIndx, dlIndex, 
                drxHq->reTxIndx); 
index 174867e..40c4b1a 100755 (executable)
@@ -33,9 +33,6 @@
 invoked by RRM towards MAC.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=164;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -142,9 +139,6 @@ S16 rgSCHGomHndlCfg(Pst *pst,RgSchCb  *instCb,RgrCfgTransId transId,RgrCfgReqInf
    CmLteCellId   cellId;
    RgSchCellCb   *cell = NULLP;    
    uint8_t       cfmStatus = RGR_CFG_CFM_NOK;
-#ifdef DEBUGP
-   Inst          inst = (instCb->rgSchInit.inst );
-#endif
 
    /* Apply the configuration for Cell Configuration or Delete */
    if (cfgReqInfo->action != RGR_RECONFIG)
@@ -157,7 +151,7 @@ S16 rgSCHGomHndlCfg(Pst *pst,RgSchCb  *instCb,RgrCfgTransId transId,RgrCfgReqInf
    /* Fetch the cell Id for the recieved request */
    if((rgSCHGomGetCellIdFrmCfgReq(cfgReqInfo, &cellId)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Action.Config Type Error");
+      DU_LOG("\nERROR  -->  SCH : Action.Config Type Error");
 
       SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo, 
             (Size)sizeof(*cfgReqInfo));
@@ -170,7 +164,7 @@ S16 rgSCHGomHndlCfg(Pst *pst,RgSchCb  *instCb,RgrCfgTransId transId,RgrCfgReqInf
    {
       if(cellId != instCb->rgrSap[spId].cell->cellId) 
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cellId, "Cell with Id %d already exists "
+         DU_LOG("\nERROR  -->  SCH : Cell with Id %d already exists "
            "on sap %d", instCb->rgrSap[spId].cell->cellId, spId);  
 
          SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo, 
@@ -185,7 +179,7 @@ S16 rgSCHGomHndlCfg(Pst *pst,RgSchCb  *instCb,RgrCfgTransId transId,RgrCfgReqInf
       ret = rgSCHGomEnqCfgReq(pst->region, pst->pool, cell, transId, cfgReqInfo);
       if (ret != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cellId, "rgSCHGomHndlCfg: Enqueuing CfgReq "
+         DU_LOG("\nERROR  -->  SCH : rgSCHGomHndlCfg: Enqueuing CfgReq "
               "Failed ");
 
          SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo, 
@@ -236,11 +230,8 @@ static S16 rgSCHGomCfgReq(Region  reg,Pool  pool,RgSchCb *instCb,RgrCfgTransId t
    uint8_t         cfmStatus = RGR_CFG_CFM_OK;
    S16             ret;
    RgSchErrInfo    errInfo;
-#ifdef DEBUGP
-   Inst            inst = (instCb->rgSchInit.inst );
-#endif
 #ifdef EMTC_ENABLE
-printf("\n AT MAC rgSCHGomCfgReq \n");
+printf("\nDEBUG  -->  SCH: AT MAC rgSCHGomCfgReq \n");
 #endif
 
    /* Process Config/Reconfig/Delete request from RRM */
@@ -282,7 +273,7 @@ printf("\n AT MAC rgSCHGomCfgReq \n");
 #endif /* LTE_ADV */
       default:
          {
-            RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "Invalid configuration "
+            DU_LOG("\nERROR  -->  SCH : Invalid configuration "
                "action %d", cfgReqInfo->action);
             ret = RFAILED;
          }
@@ -297,13 +288,13 @@ printf("\n AT MAC rgSCHGomCfgReq \n");
          (Size)sizeof(*cfgReqInfo));
    cfgReqInfo = NULLP;
 #ifdef EMTC_ENABLE
-printf("\n AT MAC sending RGR cfg cfm \n");
+printf("\nDEBUG  -->  SCH: AT MAC sending RGR cfg cfm \n");
 #endif
 
    /* Send back confirmation status to RRM */   
    schSendCfgCfm(reg, pool, transId, cfmStatus); 
 #ifdef EMTC_ENABLE
-printf("\n AT MAC RGR cfg cfm sent\n");
+printf("\nDEBUG  -->  SCH: AT MAC RGR cfg cfm sent\n");
 #endif
 
    return (ret);
@@ -376,7 +367,7 @@ static S16 rgSCHGomEnqCfgReq(Region reg,Pool pool,RgSchCellCb *cell,RgrCfgTransI
       if (actvTime.sfn >= RGSCH_MAX_SFN 
             || actvTime.slot >= RGSCH_NUM_SUB_FRAMES_5G)
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cell->cellId, "Invalid activation time for RGR "
+         DU_LOG("\nERROR  -->  SCH : Invalid activation time for RGR "
            "config request: activation sfn %d activation slot %d current "
            "sfn %d current slot %d", actvTime.sfn, actvTime.slot, 
            cell->crntTime.sfn, cell->crntTime.slot);
@@ -390,7 +381,7 @@ static S16 rgSCHGomEnqCfgReq(Region reg,Pool pool,RgSchCellCb *cell,RgrCfgTransI
 
       if (sfDiff > (RGR_ACTV_WIN_SIZE * RGSCH_NUM_SUB_FRAMES_5G))
       {
-         RLOG_ARG4(L_ERROR,DBG_CELLID,cell->cellId,"Invalid activation time for RGR"
+         DU_LOG("\nERROR  -->  SCH : Invalid activation time for RGR"
               " config request: activation sfn %d activation slot %d "
               "current sfn %d current slot %d", actvTime.sfn,
               actvTime.slot, cell->crntTime.sfn, cell->crntTime.slot);
@@ -512,7 +503,7 @@ static S16 rgSCHGomHndlCfgReq(RgSchCb *instCb,SpId spId,RgrCfg *cfg,RgSchErrInfo
          ret = rgSCHCfgVldtRgrCellCfg(inst, &cfg->u.cellCfg, cell, errInfo);
             if (ret != ROK)
             {
-               RLOG1(L_ERROR,"Rgr Cell configuration "
+               DU_LOG("\nERROR  -->  SCH : Rgr Cell configuration "
                   "validation FAILED: Cell %d", cfg->u.cellCfg.cellId);
                return RFAILED;
             }
@@ -525,7 +516,7 @@ static S16 rgSCHGomHndlCfgReq(RgSchCb *instCb,SpId spId,RgrCfg *cfg,RgSchErrInfo
          ret = rgSCHCfgVldtRgrUeCfg(inst, &cfg->u.ueCfg, &cell, errInfo);
          if (ret != ROK)
          {
-            RLOG1(L_ERROR,"Ue configuration validation"
+            DU_LOG("\nERROR  -->  SCH : Ue configuration validation"
                " FAILED: CRNTI:%d", cfg->u.ueCfg.crnti);
             return RFAILED;
          }
@@ -537,7 +528,7 @@ static S16 rgSCHGomHndlCfgReq(RgSchCb *instCb,SpId spId,RgrCfg *cfg,RgSchErrInfo
          ret = rgSCHCfgVldtRgrLcCfg(inst, &cfg->u.lchCfg, &cell, &ue, errInfo);
          if (ret != ROK)
          {
-            RLOG1(L_ERROR,"LC configuration validation "
+            DU_LOG("\nERROR  -->  SCH : LC configuration validation "
               "FAILED: LCID:%d", cfg->u.lchCfg.lcId);
             return RFAILED;
          }
@@ -549,7 +540,7 @@ static S16 rgSCHGomHndlCfgReq(RgSchCb *instCb,SpId spId,RgrCfg *cfg,RgSchErrInfo
          ret = rgSCHCfgVldtRgrLcgCfg(inst, &cfg->u.lcgCfg, &cell, &ue, errInfo);
          if (ret != ROK)
          {
-            RLOG1(L_ERROR,"LCG configuration validation "
+            DU_LOG("\nERROR  -->  SCH : LCG configuration validation "
               "FAILED: LCGID:%d", cfg->u.lcgCfg.ulInfo.lcgId);
             return RFAILED;
          }
@@ -561,8 +552,7 @@ static S16 rgSCHGomHndlCfgReq(RgSchCb *instCb,SpId spId,RgrCfg *cfg,RgSchErrInfo
          ret = rgSCHCfgVldtRgrSchedEnbCfg(inst, &cfg->u.schedEnbCfg, errInfo);
          if (ret != ROK)
          {
-            RGSCHDBGERR(inst,(rgSchPBuf(inst), "SCH ENB configuration validation "
-              "FAILED: \n" ));
+            DU_LOG("\nERROR  -->  SCH : SCH ENB configuration validation FAILED: \n");
             return RFAILED;
          }
          ret = rgSCHCfgRgrSchedEnbCfg(inst, spId, &cfg->u.schedEnbCfg, errInfo); 
@@ -571,7 +561,7 @@ static S16 rgSCHGomHndlCfgReq(RgSchCb *instCb,SpId spId,RgrCfg *cfg,RgSchErrInfo
       default:
       {
 #if(ERRCLASS & ERRCLS_INT_PAR)
-            RLOG1(L_ERROR,"Should never come here: "
+            DU_LOG("\nERROR  -->  SCH : Should never come here: "
                 "cfgType %d", cfg->cfgType);
 #endif
             return RFAILED;
@@ -613,7 +603,7 @@ static S16 rgSCHGomHndlSCellActDeactReq(RgSchCb  *instCb,SpId  spId,RgrSCellActD
    RgSchCellCb  *cell = instCb->rgrSap[spId].cell;
    Inst         inst = (instCb->rgSchInit.inst);
 
-   RGSCHDBGPRM(inst,(rgSchPBuf(inst), "Processing RGR SCell Actication request:"
+   DU_LOG(("\nDEBUG  -->  SCH : Processing RGR SCell Actication request:"
                   "%d\n", sCellActDeactEvnt->crnti));
 
    errInfo->errType = RGSCHERR_GOM_SCELL_REQ;
@@ -621,7 +611,7 @@ static S16 rgSCHGomHndlSCellActDeactReq(RgSchCb  *instCb,SpId  spId,RgrSCellActD
    /* Fetch the Ue */
    if ((ue = rgSCHDbmGetUeCb(cell, sCellActDeactEvnt->crnti)) == NULLP)
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "[%d]UE: does not exist\n", 
+      DU_LOG(("\nERROR  -->  SCH : [%d]UE: does not exist\n", 
             sCellActDeactEvnt->crnti));
       return RFAILED;
    }
@@ -632,15 +622,14 @@ static S16 rgSCHGomHndlSCellActDeactReq(RgSchCb  *instCb,SpId  spId,RgrSCellActD
 
       if (ROK != (rgSCHSCellTrigActDeact(cell, ue, sCellIdx, action)))
       {
-            RGSCHDBGERR(inst,(rgSchPBuf(inst), "SCell Actication failed"
+            DU_LOG("\nERROR  -->  SCH : SCell Actication failed"
                      "for UE [%d] with SCellIdx [%d]\n", 
-                     sCellActDeactEvnt->crnti, idx));
+                     sCellActDeactEvnt->crnti, idx);
             return RFAILED;
 
       }
 
-   }
-   RGSCHDBGINFO(inst,(rgSchPBuf(inst), "RGR Reconfiguration processed\n"));
+   DU_LOG("\nINFO  -->  SCH : RGR Reconfiguration processed\n");
    return ROK;
 }  /* rgSCHGomHndlSCellActDeactReq */
 
@@ -687,7 +676,7 @@ static S16 rgSCHGomHndlRecfgReq(RgSchCb  *instCb,SpId  spId,RgrRecfg *recfg,RgSc
                errInfo);
          if (ret != ROK) 
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,recfg->u.cellRecfg.cellId,"Rgr Cell Recfg Validation "
+            DU_LOG("\nERROR  -->  SCH : Rgr Cell Recfg Validation "
                      "FAILED");
             return RFAILED;
          }
@@ -700,7 +689,7 @@ static S16 rgSCHGomHndlRecfgReq(RgSchCb  *instCb,SpId  spId,RgrRecfg *recfg,RgSc
          ret = rgSCHCfgVldtRgrUeRecfg(inst, &recfg->u.ueRecfg, &cell, &ue, errInfo);
          if ( ret != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,recfg->u.ueRecfg.cellId,"Ue Recfg Validation FAILED"
+            DU_LOG("\nERROR  -->  SCH : Ue Recfg Validation FAILED"
                       "OLD CRNTI:%d",recfg->u.ueRecfg.oldCrnti);
             return RFAILED;
          }
@@ -713,7 +702,7 @@ static S16 rgSCHGomHndlRecfgReq(RgSchCb  *instCb,SpId  spId,RgrRecfg *recfg,RgSc
                &dlLc, errInfo);
          if (ret != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,recfg->u.lchRecfg.cellId,"Lc Recfg Validation FAILED"
+            DU_LOG("\nERROR  -->  SCH : Lc Recfg Validation FAILED"
                       "LCID:%d",recfg->u.lchRecfg.lcId);
             return RFAILED;
          }
@@ -726,7 +715,7 @@ static S16 rgSCHGomHndlRecfgReq(RgSchCb  *instCb,SpId  spId,RgrRecfg *recfg,RgSc
                errInfo);
          if (ret != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,recfg->u.lcgRecfg.cellId, "Lcg Recfg Validation FAILED"
+            DU_LOG("\nERROR  -->  SCH : Lcg Recfg Validation FAILED"
                       "LCGID:%d",recfg->u.lcgRecfg.ulRecfg.lcgId);
             return RFAILED;
          }
@@ -736,7 +725,7 @@ static S16 rgSCHGomHndlRecfgReq(RgSchCb  *instCb,SpId  spId,RgrRecfg *recfg,RgSc
       default:
       {
 #if(ERRCLASS & ERRCLS_INT_PAR)
-         RLOG1(L_ERROR,"Should never come here: recfgType %d", recfg->recfgType);
+         DU_LOG("\nERROR  -->  SCH : Should never come here: recfgType %d", recfg->recfgType);
 #endif
          return RFAILED;
       }
@@ -779,7 +768,7 @@ static S16 rgSCHGomHndlResetReq(RgSchCb  *instCb,SpId spId,RgrRst *reset,RgSchEr
    ret = rgSCHCfgVldtRgrUeReset(inst, reset, cell, &ue, errInfo);
    if (ret != ROK) 
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,reset->cellId,"Rgr UE Reset Validation FAILED"
+      DU_LOG("\nERROR  -->  SCH : Rgr UE Reset Validation FAILED"
                "CRNTI:%d",reset->crnti);
       return RFAILED;
    }
@@ -787,7 +776,7 @@ static S16 rgSCHGomHndlResetReq(RgSchCb  *instCb,SpId spId,RgrRst *reset,RgSchEr
    ret = rgSCHCfgRgrUeReset(cell, ue, reset, errInfo);
    if (ret != ROK) 
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,reset->cellId,"Rgr UE Reset FAILED"
+      DU_LOG("\nERROR  -->  SCH : Rgr UE Reset FAILED"
                "CRNTI:%d",reset->crnti);
       return RFAILED;
    }
@@ -822,16 +811,13 @@ static S16 rgSCHGomHndlDelReq(RgSchCb *instCb,SpId spId,RgrDel *del,RgSchErrInfo
 {
 
    S16       ret;
-#ifdef DEBUGP
-   Inst      inst = (instCb->rgSchInit.inst);
-#endif
    volatile uint32_t     startTime=0;
 
    errInfo->errType = RGSCHERR_GOM_DEL_REQ;
 
    if(instCb->rgrSap[spId].cell == NULLP)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"Cell doesnt exist");
+      DU_LOG("\nERROR  -->  SCH : Cell doesnt exist");
       return RFAILED; 
    }
    
@@ -879,7 +865,7 @@ static S16 rgSCHGomHndlDelReq(RgSchCb *instCb,SpId spId,RgrDel *del,RgSchErrInfo
       default:
       {
 #if(ERRCLASS & ERRCLS_INT_PAR)
-         RLOG1(L_ERROR,"Should never come here: delType %d", del->delType);
+         DU_LOG("\nERROR  -->  SCH : Should never come here: delType %d", del->delType);
 #endif
          return RFAILED;
       }
@@ -994,8 +980,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
    /* check if cell does not exists */
    if (((uint8_t *)cell == NULLP) || (cell->cellId != cfgReqInfo->cellId))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Cell Control block does not exist"
-               );
+      DU_LOG("\nERROR  -->  SCH : Cell Control block does not exist");
       RGSCH_FREE_MSG(cfgReqInfo->pdu);
       SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
       cfgReqInfo = NULLP;
@@ -1007,7 +992,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
    ret = rgSCHCfgVldtRgrSiCfg(inst, cfgReqInfo, cell, &errInfo);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Rgr SI configuration "
+      DU_LOG("\nERROR  -->  SCH : Rgr SI configuration "
                "validation FAILED");
       RGSCH_FREE_MSG(cfgReqInfo->pdu);
       SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
@@ -1067,7 +1052,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
 
          if ( SGetSBuf(reg,pool,&padding,nmPadBytes) != ROK)
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Rgr SI configuration "
+            DU_LOG("\nERROR  -->  SCH : Rgr SI configuration "
                      "SGetSBuf failed for padding failed");
             SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
             cfgReqInfo = NULLP;
@@ -1083,7 +1068,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
 #endif 
          if ( SAddPstMsgMult((Data*)padding,nmPadBytes,cfgReqInfo->pdu) != ROK)
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Rgr SI configuration "
+            DU_LOG("\nERROR  -->  SCH : Rgr SI configuration "
                      "Failed to add padding bytes");
             SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
             cfgReqInfo = NULLP;
@@ -1114,7 +1099,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
             ret = rgSCHUtlCalMcsAndNPrb(cell, cfgReqInfo->cfgType, pduLen,0);
             if (ret != ROK)
             {
-               RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Failed to get MCS and NPRB" 
+               DU_LOG("\nERROR  -->  SCH : Failed to get MCS and NPRB" 
                      "value");
                RGSCH_FREE_MSG(cfgReqInfo->pdu);
                SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
@@ -1136,7 +1121,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
          ret = rgSCHUtlCalMcsAndNPrb(cell, cfgReqInfo->cfgType, pduLen,0);
          if (ret != ROK)
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Failed to get MCS and NPRB" 
+            DU_LOG("\nERROR  -->  SCH : Failed to get MCS and NPRB" 
                      "value");
             RGSCH_FREE_MSG(cfgReqInfo->pdu);
             SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
@@ -1157,7 +1142,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
                                                      cfgReqInfo->siId);
          if (ret != ROK)
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Failed to get MCS and NPRB" 
+            DU_LOG("\nERROR  -->  SCH : Failed to get MCS and NPRB" 
                      "value");
             RGSCH_FREE_MSG(cfgReqInfo->pdu);
             SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
@@ -1205,7 +1190,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
                                                      cfgReqInfo->siId);
          if (ret != ROK)
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Failed to get MCS and NPRB" 
+            DU_LOG("\nERROR  -->  SCH : Failed to get MCS and NPRB" 
                      "value");
             RGSCH_FREE_MSG(cfgReqInfo->pdu);
             SPutSBuf(reg, pool, (Data *)cfgReqInfo, (Size)sizeof(*cfgReqInfo)); 
@@ -1221,7 +1206,7 @@ S16 rgSCHGomHndlSiCfg(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTrans
          cell->siCb.siArray[cfgReqInfo->siId-1].isWarningSi = FALSE;
          break;
       default:
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Invalid cfgType "
+         DU_LOG("\nERROR  -->  SCH : Invalid cfgType "
                   "parameter value");
          RGSCH_FREE_MSG(cfgReqInfo->pdu);
          SPutSBuf(reg, pool, (Data *)cfgReqInfo, 
@@ -1305,7 +1290,7 @@ RgrWarningSiCfgReqInfo *warningSiCfgReqInfo
          (warningSiCfgReqInfo->siId > 
           ((minPeriod * 10)/siWinSize)))
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,warningSiCfgReqInfo->cellId,"Warning SI Cfg Failed for siId = %d"
+      DU_LOG("\nERROR  -->  SCH : Warning SI Cfg Failed for siId = %d"
                 "warning cellID:%d",warningSiCfgReqInfo->siId,warningSiCfgReqInfo->cellId);
       rgSCHUtlFreeWarningSiSeg(reg, pool, &warningSiCfgReqInfo->siPduLst);
       SPutSBuf(reg, pool, (Data *)warningSiCfgReqInfo, 
@@ -1354,11 +1339,9 @@ RgrWarningSiCfgReqInfo *warningSiCfgReqInfo
 #endif
 
                   {
-                     RGSCHLOGERROR(cell->instIdx,ERRCLS_INT_PAR,ERG011,
-                           (ErrVal)msgLen,
-                           "rgSCHGomHndlWarningSiCfg():msgLen does not match\
+                     DU_LOG("\nERROR  -->  SCH : rgSCHGomHndlWarningSiCfg():msgLen does not match\
                            any valid TB Size.");
-                     RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Warning SI Cfg Failed" 
+                     DU_LOG("\nERROR  -->  SCH : Warning SI Cfg Failed" 
                            "for siId = %d", warningSiCfgReqInfo->siId);
                      rgSCHUtlFreeWarningSiSeg(reg, pool, 
                            &warningSiCfgReqInfo->siPduLst);
@@ -1414,7 +1397,7 @@ RgrWarningSiCfgReqInfo *warningSiCfgReqInfo
 
    if (freeNodeFound == FALSE)
    {
-      RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,"No SI Index is free");
+      DU_LOG("\nDEBUG  -->  SCH : No SI Index is free");
       rgSCHUtlFreeWarningSiSeg(reg, pool, &warningSiCfgReqInfo->siPduLst);
       SPutSBuf(reg, pool, (Data *)warningSiCfgReqInfo, 
             sizeof(RgrWarningSiCfgReqInfo)); 
@@ -1563,7 +1546,7 @@ S16 rgSCHGomHndlLoadInf(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTra
    /* check if cell does not exists */
    if (((uint8_t *)cell == NULLP) || (cell->cellId != loadInfReq->cellId))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,loadInfReq->cellId,"Cell Control block does not exist"
+      DU_LOG("\nERROR  -->  SCH : Cell Control block does not exist"
              "for load cellId:%d",loadInfReq->cellId);
       SPutSBuf(reg, pool, (Data *)loadInfReq, (Size)sizeof(*loadInfReq));
       return RFAILED;
@@ -1571,7 +1554,7 @@ S16 rgSCHGomHndlLoadInf(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTra
 
    if (cell->lteAdvCb.dsfrCfg.status == RGR_DISABLE)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHGomHndlLoadInf(): DSFR Feature not enabled");
+      DU_LOG("\nERROR  -->  SCH : rgSCHGomHndlLoadInf(): DSFR Feature not enabled");
       SPutSBuf(reg, pool, (Data *)loadInfReq, (Size)sizeof(*loadInfReq));
       return RFAILED;
    }
@@ -1579,7 +1562,7 @@ S16 rgSCHGomHndlLoadInf(Region reg,Pool pool,RgSchCb *instCb,SpId spId,RgrCfgTra
    ret = rgSCHCfgVldtRgrLoadInf(inst, loadInfReq, cell, &errInfo);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Rgr LOAD INF Configuration "
+      DU_LOG("\nERROR  -->  SCH : Rgr LOAD INF Configuration "
                "validation FAILED");
       SPutSBuf(reg, pool, (Data *)loadInfReq, (Size)sizeof(*loadInfReq));
       return RFAILED;
index d1803aa..93948f1 100755 (executable)
 @brief This module handles the  Periodic CQI/PMI/RI, SRS, SR and Half Duplex 
        functionality 
 */
-#ifdef LTEMAC_HDFDD
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=165;
-#endif
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -96,23 +91,20 @@ S16 rgSCHHdFddUeCfg(RgSchCellCb  *cellCb,RgSchUeCb *ueCb,Bool hdFddEnbl)
 {
    uint8_t sfi;
 
-   RLOG_ARG2(L_DEBUG,DBG_CELLID,cellCb->cellId,
-               "rgSCHHdFddUeCfg(): UeId =%d hdFddEnbl=%d",
+   DU_LOG("\nDEBUG  -->  SCH : rgSCHHdFddUeCfg(): UeId =%d hdFddEnbl=%d",
                ueCb->ueId, hdFddEnbl);
    if(ueCb->hdFddEnbld == TRUE)
    {
       if (hdFddEnbl == FALSE)
       {
          /* Do not allow switch from HD-FDD to FD-FDD configuration */
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-               "rgSCHHdFddUeCfg(): HD-FDD  to FD-FDD Configuration is not allowed"
+         DU_LOG("\nERROR  -->  SCH : rgSCHHdFddUeCfg(): HD-FDD  to FD-FDD Configuration is not allowed"
                "CRNTI:%d",ueCb->ueId);
       }
       else
       {
          /* If already enabled then it can be second reconfiguration */
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-                  "rgSCHHdFddUeCfg(): HD-FDD already enabled for this UE"
+         DU_LOG("\nERROR  -->  SCH : rgSCHHdFddUeCfg(): HD-FDD already enabled for this UE"
                   "CRNTI:%d",ueCb->ueId);
       }
       return RFAILED;
@@ -124,8 +116,7 @@ S16 rgSCHHdFddUeCfg(RgSchCellCb  *cellCb,RgSchUeCb *ueCb,Bool hdFddEnbl)
        (ueCb->ul.ulSpsCfg.isUlSpsEnabled == TRUE ||
         ueCb->dl.dlSpsCfg.isDlSpsEnabled == TRUE))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-      "rgSCHHdFddUeCfg(): Could'nt do HDFDD cfg, SPS already configured"
+      DU_LOG("\nERROR  -->  SCH : rgSCHHdFddUeCfg(): Could'nt do HDFDD cfg, SPS already configured"
                "CRNTI:%d",ueCb->ueId);
       return RFAILED;
    }
@@ -148,8 +139,7 @@ S16 rgSCHHdFddUeCfg(RgSchCellCb  *cellCb,RgSchUeCb *ueCb,Bool hdFddEnbl)
       }
       else
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,
-               "rgSCHHdFddUeCfg(): Could not allocate memory for hd-fdd ueCb"
+         DU_LOG("\nERROR  -->  SCH : rgSCHHdFddUeCfg(): Could not allocate memory for hd-fdd ueCb"
                "CRNTI:%d",ueCb->ueId);
          return RFAILED;
       }
@@ -185,8 +175,7 @@ S16 rgSCHHdFddUeCfg(RgSchCellCb  *cellCb,RgSchUeCb *ueCb,Bool hdFddEnbl)
 S16 rgSCHHdFddUeDel(RgSchCellCb *cellCb,RgSchUeCb   *ueCb)
 {
 
-   RLOG_ARG2(L_DEBUG,DBG_CELLID,cellCb->cellId,
-             " rgSCHHdFddUeDel(): UeId =%d hdFdd=%x",
+    DU_LOG("\nDEBUG  -->  SCH : rgSCHHdFddUeDel(): UeId =%d hdFdd=%x",
              ueCb->ueId, ueCb->hdFddEnbld);
 
 
@@ -350,8 +339,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
    RgSchDlSf        *sf = NULLP; /* Dl subframe info */
    uint8_t          ulOffset
 
-   RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId, 
-            " rgSCHCmnHdFddChkUlAllow: ueId=%d ", ueCb->ueId);
+   DU_LOG("\nDEBUG  -->  SCH :  rgSCHCmnHdFddChkUlAllow: ueId=%d ", ueCb->ueId);
 
    *allow = FALSE;
 
@@ -379,8 +367,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
          /* Common channel scheduled */
          /* Mark the BCCH/PCCH occasion */
          RG_SCH_HDFDD_MARKSTATE(ueCb, RG_SCH_HDFDD_DLDATA, sfn, sfi);
-         RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-            "rgSCHCmnHdFddChkUlAllow: Already marked for Cmn DL, ueId = %d ",
+         DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnHdFddChkUlAllow: Already marked for Cmn DL, ueId = %d ",
             ueCb->ueId);
    }
    if ((ueCb->hdFddCb->subfrm[sfi].sfn == sfn) &&
@@ -389,8 +376,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
    {
       /* Downlink scheduled */
       *allow = FALSE;
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-               "rgSCHCmnHdFddChkUlAllow: Already marked for DL, ueId = %d ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkUlAllow: Already marked for DL, ueId = %d ",
                ueCb->ueId);
       return;
    }
@@ -405,8 +391,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
    {
       /* No place for HARQ feedback */
       *allow = FALSE;
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-         "rgSCHCmnHdFddChkUlAllow: No Place for HARQ, ueId = %d ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkUlAllow: No Place for HARQ, ueId = %d ",
          ueCb->ueId);
       return;
 
@@ -420,8 +405,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
        ueCb->hdFddCb->subfrm[sfi].subFrmDir == RG_SCH_HDFDD_UL)
    {
       *allow = FALSE;
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-               " rgSCHCmnHdFddChkUlAllow: No Place for UL grant, ueId = %d ",
+      DU_LOG("\nERROR  -->  SCH :  rgSCHCmnHdFddChkUlAllow: No Place for UL grant, ueId = %d ",
                ueCb->ueId);
       return;
 
@@ -435,8 +419,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
    {
       /* This subframe may be a switching gaurd time */
       *allow = FALSE;
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-             " rgSCHCmnHdFddChkUlAllow: No Place for Guard time, ueId = %d ",
+      DU_LOG("\nERROR  -->  SCH :  rgSCHCmnHdFddChkUlAllow: No Place for Guard time, ueId = %d ",
              ueCb->ueId);
       return;
 
@@ -453,8 +436,7 @@ Void rgSCHCmnHdFddChkUlAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,uint8_t *allow)
       /* Mark the BCCH/PCCH occasion */
       RG_SCH_HDFDD_MARKSTATE(ueCb, RG_SCH_HDFDD_DLDATA, timeInfo.sfn, sfi);
       *allow = FALSE;
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-         "rgSCHCmnHdFddChkUlAllow: Already marked for Cmn DL, ueId = %d ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkUlAllow: Already marked for Cmn DL, ueId = %d ",
          ueCb->ueId);
       return;
 
@@ -516,8 +498,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
    timeInfo = cellCb->crntTime;
    RGSCH_INCR_SUB_FRAME(timeInfo, RG_SCH_CMN_DL_DELTA);
 
-   RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-            "rgSCHCmnHdFddDlSchAll (): ueId=%d ", ueCb->ueId);
+   DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnHdFddDlSchAll (): ueId=%d ", ueCb->ueId);
 
    /* Also get subframe pointer to fetch Common Ch allocation */
    sf = rgSCHUtlSubFrmGet(cellCb, timeInfo);
@@ -531,8 +512,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
         (ueCb->hdFddCb->subfrm[sfi].subFrmDir == RG_SCH_HDFDD_UL))
    {
       /* Uplink scheduled */
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-               "rgSCHCmnHdFddChkDlAllow: sf is UL, ueId=%d ", ueCb->ueId);
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkDlAllow: sf is UL, ueId=%d ", ueCb->ueId);
       *allow = FALSE;
       return;
    }
@@ -552,8 +532,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
           (ueCb->hdFddCb->subfrm[sfi].subFrmDir == RG_SCH_HDFDD_UL))
    {
       /* This subframe may be a switching guard time */
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-              " rgSCHCmnHdFddChkDlAllow: Guard time rule not met, ueId=%d ",
+      DU_LOG("\nERROR  -->  SCH :  rgSCHCmnHdFddChkDlAllow: Guard time rule not met, ueId=%d ",
               ueCb->ueId);
       *allow = FALSE;
       return;
@@ -575,8 +554,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
          /* Common channel scheduled */
       /* Do the marking for this subframe */
       RG_SCH_HDFDD_MARKSTATE(ueCb, RG_SCH_HDFDD_DLDATA, tempTimeInfo.sfn, sfi);
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-              "rgSCHCmnHdFddChkDlAllow: Possible systemInfo, ueId=%d ",
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnHdFddChkDlAllow: Possible systemInfo, ueId=%d ",
               ueCb->ueId);
    }
 
@@ -585,8 +563,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
        ueCb->hdFddCb->subfrm[sfi].subFrmDir != RG_SCH_HDFDD_UL)
    {
       /* No place for HARQ feedback */
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,  
-            "rgSCHCmnHdFddChkDlAllow: No place for HARQ feedback, ueId=%d ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkDlAllow: No place for HARQ feedback, ueId=%d ",
             ueCb->ueId);
       *allow = FALSE;
 
@@ -609,8 +586,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
          /* Common channel scheduled */
       /* Do the marking for this subframe */
       RG_SCH_HDFDD_MARKSTATE(ueCb, RG_SCH_HDFDD_DLDATA, tempTimeInfo.sfn, sfi);
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,
-              "rgSCHCmnHdFddChkDlAllow: (GT) Possible systemInfo, ueId=%d ",
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnHdFddChkDlAllow: (GT) Possible systemInfo, ueId=%d ",
               ueCb->ueId);
    }
 
@@ -618,8 +594,7 @@ Bool *allow /* Valdity of this pointer is not done in this function */
        ueCb->hdFddCb->subfrm[sfi].subFrmDir == RG_SCH_HDFDD_DLDATA)
    {
       /* No place for HARQ feedback */
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,
-            "rgSCHCmnHdFddChkDlAllow: (GT) No place for HARQ feedback,"
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkDlAllow: (GT) No place for HARQ feedback,"
              "ueId=%d ",ueCb->ueId);
 
       *allow = FALSE;
@@ -670,16 +645,14 @@ Void rgSCHCmnHdFddChkNackAllow(RgSchCellCb *cellCb,RgSchUeCb *ueCb,CmLteTimingIn
    if(RG_SCH_HDFDD_ISCMN_SCHED(sf))
    {
       /* Yes, Cannot send NACK */
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,
-               "rgSCHCmnHdFddChkNackAllow: Cannot send NACK, ueId = %d ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHCmnHdFddChkNackAllow: Cannot send NACK, ueId = %d ",
                ueCb->ueId);
       *sndNACK = FALSE;
    }
    else
    {
       /* safe, Send NACK */
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cellCb->cellId,
-               "rgSCHCmnHdFddChkNackAllow: NACk can be sent, ueId = %d ",
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHCmnHdFddChkNackAllow: NACk can be sent, ueId = %d ",
                ueCb->ueId);
       *sndNACK = TRUE;
    }
index d5668f1..4e2be55 100755 (executable)
@@ -182,8 +182,7 @@ uint32_t          measTime
                    cell->qciArray[qciVal].dlTotal_UeCount / sampOc;
                 cfm->numUeQciDlCfm.numActvUeQci[idx].qciValue = qciVal;
                 
-                RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
-                      "L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
+                DU_LOG("\nDEBUG  -->  SCH : L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
                       qciVal,cell->qciArray[qciVal].dlTotal_UeCount,
                       cfm->numUeQciDlCfm.numActvUeQci[idx].numActvUeQci);
                 
@@ -204,8 +203,7 @@ uint32_t          measTime
                       cell->qciArray[qciVal].dlTotal_UeCount / sampOc;
                    cfm->numUeQciDlCfm.numActvUeQci[idx].qciValue = qciVal;
 
-                   RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
-                         "L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
+                   DU_LOG("\nDEBUG  -->  SCH : L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
                          qciVal,cell->qciArray[qciVal].dlTotal_UeCount,
                          cfm->numUeQciDlCfm.numActvUeQci[idx].numActvUeQci);
 
@@ -236,8 +234,7 @@ uint32_t          measTime
                    cell->qciArray[qciVal].ulTotal_UeCount/ sampOc;
                 cfm->numUeQciUlCfm.numActvUeQci[idx].qciValue = qciVal;
                 
-                RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
-                      "L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
+                DU_LOG("\nDEBUG  -->  SCH : L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
                       qciVal,cell->qciArray[qciVal].ulTotal_UeCount,
                       cfm->numUeQciUlCfm.numActvUeQci[idx].numActvUeQci);
                 
@@ -257,8 +254,7 @@ uint32_t          measTime
                       cell->qciArray[qciVal].ulTotal_UeCount/ sampOc;
                    cfm->numUeQciUlCfm.numActvUeQci[idx].qciValue = qciVal;
 
-                   RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
-                         "L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
+                   DU_LOG("\nDEBUG  -->  SCH : L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
                          qciVal,cell->qciArray[qciVal].ulTotal_UeCount,
                          cfm->numUeQciUlCfm.numActvUeQci[idx].numActvUeQci);
 
@@ -516,8 +512,7 @@ RgSchErrInfo      err
    if((rgSCHUtlAllocSBuf(inst, (Data **)&measCb,
                    sizeof(RgSchL2MeasCb))) == RFAILED)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSchL2mAllocMeasCb():"
-                  "Allocation of RgSchL2MeasCb failed");
+      DU_LOG("\nERROR  -->  SCH : Allocation of RgSchL2MeasCb failed");
       return (NULLP);
    }
    memcpy(&measCb->measReq, measInfo, sizeof(LrgSchMeasReqInfo));
@@ -565,8 +560,7 @@ RgSchErrInfo      err
    {
        RGSCHFILLERR(err, RGSCHERR_L2M_MEASREQ,
                     RGSCHERR_SCH_ALLOC_FAILED);
-       RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSchL2mMeasReq():"
-                "Allocation of RgSchL2MeasCb failed");
+       DU_LOG("\nERROR  -->  SCH : Allocation of RgSchL2MeasCb failed");
        return RFAILED;
    }
    /*memcpy(&measCb->measReq, measInfo,\
index 9c4e05a..b5afd68 100755 (executable)
@@ -34,9 +34,6 @@
        request primitives are defined here.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=167;
 
 /* header include files (.h) */
 #include "common_def.h"
@@ -93,8 +90,8 @@ void printSchCellInfo(void)
        * with this SAP */
       if (rgSchCb[inst].tfuSap[idx].cell != NULLP)
       {
-         RLOG1(L_INFO,"CELL %d\n", idx);
-         RLOG1(L_INFO,"NUM UEs :%d\n",rgSchCb[inst].tfuSap[idx].cell->ueLst.nmbEnt);
+         DU_LOG("\nINFO  -->  SCH : CELL %d\n", idx);
+         DU_LOG("\nINFO  -->  SCH : NUM UEs :%d\n",rgSchCb[inst].tfuSap[idx].cell->ueLst.nmbEnt);
       }
    }
 }
@@ -141,7 +138,7 @@ Elmnt sapType             /* SAP Type */
              (cfg->s.schInstCfg.rgrSap[sapIdx].selector != ODU_SELECTOR_LC))
          {
             ret = LCM_REASON_INVALID_PAR_VAL;
-            RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCfg(): unsupported"
+            DU_LOG("\nERROR  -->  SCH : rgSCHLmmSapCfg(): unsupported"
                " Selector value for RGR.");
             break;
          }
@@ -175,7 +172,7 @@ Elmnt sapType             /* SAP Type */
              (cfg->s.schInstCfg.tfuSap[sapIdx].selector != ODU_SELECTOR_LC))
          {
             ret = LCM_REASON_INVALID_PAR_VAL;
-            RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCfg(): unsupported"
+            DU_LOG("\nERROR  -->  SCH : rgSCHLmmSapCfg(): unsupported"
                      " Selector value for TFU.");
             break;
          }
@@ -215,7 +212,7 @@ Elmnt sapType             /* SAP Type */
              (cfg->s.schInstCfg.rgmSap[sapIdx].selector != RGM_SEL_TC))
          {
             ret = LCM_REASON_INVALID_PAR_VAL;
-            RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCfg(): unsupported"
+            DU_LOG("\nERROR  -->  SCH : rgSCHLmmSapCfg(): unsupported"
                      " Selector value for RGM.");
             break;
          }
@@ -474,7 +471,7 @@ Void rgSCHLmmGenCntrl(RgMngmt *cntrl,RgMngmt *cfm,Pst  *cfmPst)
             default:
                cfm->cfm.status = LCM_PRIM_NOK;
                cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
-               RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmGenCntrl(): "
+               DU_LOG("\nERROR  -->  SCH : rgSCHLmmGenCntrl(): "
                   "invalid subaction=%d", cntrl->t.cntrl.subAction);
                break;
          }
@@ -498,7 +495,7 @@ Void rgSCHLmmGenCntrl(RgMngmt *cntrl,RgMngmt *cfm,Pst  *cfmPst)
             default:
                cfm->cfm.status = LCM_PRIM_NOK;
                cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
-               RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmGenCntrl():"
+               DU_LOG("\nERROR  -->  SCH : rgSCHLmmGenCntrl():"
                  " invalid subaction=%d", cntrl->t.cntrl.subAction);
                break;
          }
@@ -510,7 +507,7 @@ Void rgSCHLmmGenCntrl(RgMngmt *cntrl,RgMngmt *cfm,Pst  *cfmPst)
       default:
          cfm->cfm.status = LCM_PRIM_NOK;
          cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
-         RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmGenCntrl(): invalid"
+         DU_LOG("\nERROR  -->  SCH : rgSCHLmmGenCntrl(): invalid"
           " action=%d", cntrl->t.cntrl.action);
          break;
    }
@@ -642,7 +639,7 @@ Pst           *cfmPst
             default:
                cfm->cfm.status = LCM_PRIM_NOK;
                cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
-               RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCntrl(): "
+               DU_LOG("\nERROR  -->  SCH : rgSCHLmmSapCntrl(): "
                   "invalid action=%d", cntrl->t.cntrl.action);
                break;
          }
@@ -665,7 +662,7 @@ Pst           *cfmPst
             default:
                cfm->cfm.status = LCM_PRIM_NOK;
                cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
-               RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCntrl(): "
+               DU_LOG("\nERROR  -->  SCH : rgSCHLmmSapCntrl(): "
                      "invalid action=%d", cntrl->t.cntrl.action);
                break;
          }
@@ -688,7 +685,7 @@ Pst           *cfmPst
             default:
                cfm->cfm.status = LCM_PRIM_NOK;
                cfm->cfm.reason = LCM_REASON_INVALID_PAR_VAL;
-               RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmSapCntrl(): "
+               DU_LOG("\nERROR  -->  SCH : rgSCHLmmSapCntrl(): "
                      "invalid action=%d", cntrl->t.cntrl.action);
                break;
          }
@@ -877,9 +874,6 @@ S16 tmrEvnt           /* Timer Event */
 {
    S16           ret = ROK;
    RgSchLowSapCb *tfuSap = (RgSchLowSapCb *)cb;
-#ifdef DEBUGP
-   Inst          inst = tfuSap->cell->instIdx;
-#endif
 
    
    switch(tmrEvnt)
@@ -908,7 +902,7 @@ S16 tmrEvnt           /* Timer Event */
          }
          break;
       default:
-         RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "rgSCHLmmTmrExpiry(): Invalid"
+         DU_LOG("\nERROR  -->  SCH : rgSCHLmmTmrExpiry(): Invalid"
                  " tmrEvnt=%d", tmrEvnt);
          ret = RFAILED;
          break;
index b986cf7..cfd0ce7 100755 (executable)
@@ -31,9 +31,6 @@
 /** @file rg_sch_mga.c
 @brief This module handles schedulers' measurement gap and ack-nack repetiton functionality */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=169;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -294,8 +291,7 @@ static S16 rgSCHMeasGapANRepUtlAddUe(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeMeasGa
                &(ue->measGapCb.measQLnk));
          break;
       default:
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, 
-                  "rgSCHMeasGapANRepUeRecfg() Incorrect GAP Period"
+         DU_LOG("\nERROR  -->  SCH : rgSCHMeasGapANRepUeRecfg() Incorrect GAP Period"
                   "CRNTI:%d",ue->ueId);
          return RFAILED;
    }
@@ -949,7 +945,8 @@ S16 rgSCHMeasGapANRepGetUlInactvUe(RgSchCellCb *cell,CmLListCp   *ulInactvUeLst)
           * ahead - UE cant read PDCCH format0 if it is in measurement gap. */
          rgSCHTmrStartTmr (cell, ue, RG_SCH_TMR_UL_MEASGAP, 
                (RG_SCH_MEAS_GAP_LEN + pdcchToPuschGap - idx));
-   //printf("Starting Meas Gap 40 @ DL TTI- (%d:%d) K-%d offset-%d Len %d \n", ackNakTime.sfn, ackNakTime.subframe, harqFdbkOffset, offset, RG_SCH_MEAS_GAP_LEN + harqFdbkOffset-idx);
+   //DU_LOG("\nINFO  -->  SCH : Starting Meas Gap 40 @ DL TTI- (%d:%d) K-%d offset-%d Len %d \n", ackNakTime.sfn,\
+   ackNakTime.subframe, harqFdbkOffset, offset, RG_SCH_MEAS_GAP_LEN + harqFdbkOffset-idx);
          }
          node = node->next;
       }
@@ -971,7 +968,8 @@ S16 rgSCHMeasGapANRepGetUlInactvUe(RgSchCellCb *cell,CmLListCp   *ulInactvUeLst)
          /* Start timer */
          rgSCHTmrStartTmr (cell, ue, RG_SCH_TMR_UL_MEASGAP, 
                (RG_SCH_MEAS_GAP_LEN + pdcchToPuschGap - idx));
-   //printf("Starting Meas Gap 80 @ DL TTI- (%d:%d) K-%d offset-%d Len %d \n", ackNakTime.sfn, ackNakTime.subframe, harqFdbkOffset, offset, RG_SCH_MEAS_GAP_LEN + harqFdbkOffset-idx);
+   //DU_LOG("\nINFO  -->  SCH : Starting Meas Gap 80 @ DL TTI- (%d:%d) K-%d offset-%d Len %d \n", ackNakTime.sfn,\
+   ackNakTime.subframe, harqFdbkOffset, offset, RG_SCH_MEAS_GAP_LEN + harqFdbkOffset-idx);
          }
          node = node->next;
       }
index 23bcc2b..fd58f6a 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This module handles schedulers' power control functionality
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=188;
 /* header include files -- defines (.h) */
 #include "common_def.h"
 #include "lrg.h"
@@ -599,11 +596,9 @@ static Void rgSCHPwrPuschCntrl(RgSchCellCb *cell,RgSchUeCb   *ue)
        }
 #endif
    }
-   RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
-         "UEID:%d Output Max Rb (%d), phVal (%d) AvailPwr (%d) ",
+   DU_LOG("\nDEBUG  -->  SCH : UEID:%d Output Max Rb (%d), phVal (%d) AvailPwr (%d) ",
          ue->ueId, maxRb, uePwr->phVal, availPwr);
-   RLOG_ARG3(L_UNUSED,DBG_CELLID,cell->cellId,
-         "UEID:%d pwrPerRb %d remPuschPwr %d", 
+   DU_LOG("\nDEBUG  -->  SCH : UEID:%d pwrPerRb %d remPuschPwr %d", 
          ue->ueId,
          uePwr->pwrPerRb,
          uePwr->remPuschPwr);
@@ -1860,8 +1855,7 @@ Void rgSCHPwrUpdPhr(RgSchCellCb *cell,RgSchUeCb *ue,uint8_t phr,RgSchCmnAllocRec
 
    rgSCHPwrOnPuschPwrUpd(cell, ue);
 
-   RLOG_ARG4(L_DEBUG,DBG_UEID,ue->ueId,
-         "Output: Reported PHR[%d] cqi[%u] allocRb[%u] uePwr->pwrPerRb[%d]",
+   DU_LOG("\nDEBUG  -->  SCH : Output: Reported PHR[%d] cqi[%u] allocRb[%u] uePwr->pwrPerRb[%d]",
             uePwr->phVal,
             allocInfo->cqi,
             allocInfo->numRb,  
@@ -2345,31 +2339,25 @@ static S16 rgSCHPwrApplyUePwrCfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeUlPwrCfg *
       }
       uePwr->pucchIdx = pucchIdx;
 #ifndef ALIGN_64BIT
-      RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
-               "<GRP_PWR>PucchRntiCb cfgdUes(%ld %lu %lu) UEID:%d",
+       DU_LOG("\nDEBUG  -->  SCH : <GRP_PWR>PucchRntiCb cfgdUes(%ld %lu %lu) UEID:%d",
                pucchRntiCb->cfgdUes.count,((uint32_t)pucchRntiCb->cfgdUes.first),
                ((uint32_t)pucchRntiCb->cfgdUes.last),ue->ueId);
-      RLOG_ARG3(L_UNUSED,DBG_CELLID,cell->cellId,
-               "UEID:%d isFmt3a(%u) ueNode(%ld)",
+       DU_LOG("\nDEBUG  -->  SCH : UEID:%d isFmt3a(%u) ueNode(%ld)",
                ue->ueId,pucchRntiCb->isFmt3a,
                pucchRntiCb->schdLnk.node);
-      RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
-               "toBeSchdUes(%ld %lu %lu) tpcRnti(%u)", 
+       DU_LOG("\nDEBUG  -->  SCH : toBeSchdUes(%ld %lu %lu) tpcRnti(%u)", 
                pucchRntiCb->toBeSchdUes.count, 
                ((uint32_t)pucchRntiCb->toBeSchdUes.first),
                ((uint32_t)pucchRntiCb->toBeSchdUes.last), 
                pucchRntiCb->tpcRnti);
 #else
-      RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
-               "<GRP_PWR>PucchRntiCb cfgdUes(%ld %lu %lu) UEID:%d",
+      DU_LOG("\nDEBUG  -->  SCH : <GRP_PWR>PucchRntiCb cfgdUes(%d %lu %lu) UEID:%d",
                pucchRntiCb->cfgdUes.count,((uint64_t)pucchRntiCb->cfgdUes.first),
                ((uint64_t)pucchRntiCb->cfgdUes.last),ue->ueId);
-      RLOG_ARG3(L_UNUSED,DBG_CELLID,cell->cellId,
-               "UEID:%d isFmt3a(%u) ueNode(%ld)",
+      DU_LOG("\nDEBUG  -->  SCH : UEID:%d isFmt3a(%u) ueNode(%ld)",
                ue->ueId,pucchRntiCb->isFmt3a,
                pucchRntiCb->schdLnk.node);
-      RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
-               "toBeSchdUes(%ld %lu %lu) tpcRnti(%u)", 
+      DU_LOG("\nDEBUG  -->  SCH : toBeSchdUes(%d %lu %lu) tpcRnti(%u)", 
                pucchRntiCb->toBeSchdUes.count, 
                ((uint64_t)pucchRntiCb->toBeSchdUes.first),
                ((uint64_t)pucchRntiCb->toBeSchdUes.last), 
index 2d42b57..d1c2cfb 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This file has APIs to handle the random access procedure functionality for the scheduler.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=171;
 
 /* header include files (.h) */
 #include "common_def.h"
@@ -218,9 +215,7 @@ RgSchErrInfo      *err
    /* allocate new raReqInfos and enqueue them */
    if (raReqInd->raReqInfoArr[raReqCnt].rapId >= RGSCH_MAX_NUM_RA_PREAMBLE)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "RARNTI:%d rgSCHTomRaReqInd(): RAM processing failed errType(%d) ",
-               raReqInd->raRnti);
+      DU_LOG("\nERROR  -->  SCH : RARNTI:%d rgSCHTomRaReqInd(): RAM processing failed", raReqInd->raRnti);
       return RFAILED;
    }
 
@@ -249,7 +244,7 @@ RgSchErrInfo      *err
    if((rgSCHUtlAllocSBuf(cell->instIdx, (Data **)(&raReqInfo), 
                sizeof(RgSchRaReqInfo))) == RFAILED)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHRamProcRaReq(): Allocation"
+      DU_LOG("\nERROR  -->  SCH : rgSCHRamProcRaReq(): Allocation"
             " of RaReq failed RARNTI:%d",raRnti);
       err->errCause = RGSCHERR_RAM_MEM_EXHAUST;
       return RFAILED;
@@ -312,7 +307,7 @@ RgSchErrInfo      *err
    if((rgSCHUtlAllocSBuf(inst, (Data **)(raCb),
                       sizeof(RgSchRaCb))) == RFAILED)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHRamCreateRaCb(): Allocation of "
+      DU_LOG("\nERROR  -->  SCH : rgSCHRamCreateRaCb(): Allocation of "
          "RaCb failed");
       err->errCause = RGSCHERR_RAM_MEM_EXHAUST;
       return RFAILED;
@@ -331,7 +326,7 @@ RgSchErrInfo      *err
       rgNumRarFailDuetoRntiExhaustion++;
 
       /* No rnti available! */
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHRamCreateRaCb(): Allocation of "
+      DU_LOG("\nERROR  -->  SCH : rgSCHRamCreateRaCb(): Allocation of "
          "temporary RNTI failed at MAC(CRNTI exhausted)");
       /* ccpu00117052 - MOD - Passing double pointer
       for proper NULLP assignment*/
@@ -345,7 +340,7 @@ RgSchErrInfo      *err
    if ((*raCb)->dlHqE == NULLP)
    {
       /* No memory available! */
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHRamCreateRaCb(): Creation of"
+      DU_LOG("\nERROR  -->  SCH : rgSCHRamCreateRaCb(): Creation of"
          " DL HARQ failed");
          /* ccpu00117052 - MOD - Passing double pointer
       for proper NULLP assignment*/
@@ -529,8 +524,7 @@ RgSchRaCb *raCb
 #endif
    if(raCb->raState != RGSCH_RA_MSG3_PENDING)
    {
-      RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
-               "RNTI:%d RaCb in wrong State %d Drop Msg 3",
+      DU_LOG("\nERROR  -->  SCH : RNTI:%d RaCb in wrong State %d Drop Msg 3",
                raCb->rntiLnk->rnti, 
                raCb->raState);
       return ROK;
@@ -745,8 +739,7 @@ S16 rgSCHRamMsg4FdbkInd(RgSchRaCb  *raCb)
 S16 rgSCHRamMsg4Done(RgSchCellCb *cell,RgSchRaCb *raCb)
 {
 
-   RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-            "rgSCHRamMsg4Done(): tmpCRNTI = %u",
+    DU_LOG("\nDEBUG  -->  SCH : rgSCHRamMsg4Done(): tmpCRNTI = %u",
             raCb->tmpCrnti);
 
    if(raCb->ue != NULLP) 
@@ -785,7 +778,7 @@ S16 rgSCHRamMsg4Done(RgSchCellCb *cell,RgSchRaCb *raCb)
    else if(raCb->toDel == TRUE)
    {
 #ifdef XEON_SPECIFIC_CHANGES
-      CM_LOG_DEBUG(CM_LOG_ID_SCH, "Deleting RacB:%d\n", raCb->tmpCrnti);
+      DU_LOG("\nDEBUG  -->  SCH : Deleting RacB:%d\n", raCb->tmpCrnti);
 #endif
       /* Delete RACB and release RNTI */
       rgSCHRamDelRaCb(cell, raCb, TRUE);
@@ -793,14 +786,12 @@ S16 rgSCHRamMsg4Done(RgSchCellCb *cell,RgSchRaCb *raCb)
    else
    {
 #ifdef XEON_SPECIFIC_CHANGES
-      CM_LOG_DEBUG(CM_LOG_ID_SCH, "Releasing Harq of RacB:%d\n", raCb->tmpCrnti);
+      DU_LOG("\nDEBUG  -->  SCH : Releasing Harq of RacB:%d\n", raCb->tmpCrnti);
 #endif
       raCb->raState = RGSCH_RA_MSG4_DONE;
       /* Release harq process as final feedback is received for Msg4. In other
        * cases, delRaCb will take care of releasing the harq process */
-      printf("=======Harq process released \n"); 
-      RLOG_ARG0(L_DEBUG,DBG_CELLID,cell->cellId,
-                                         "Harq process released "); 
+      DU_LOG("\nDEBUG  -->  SCH : Harq process released "); 
       rgSCHDhmRlsHqpTb(raCb->dlHqE->msg4Proc, 0, TRUE);
    }
 
@@ -870,7 +861,7 @@ S16 rgSCHRamDelRaCb(RgSchCellCb *cell,RgSchRaCb   *raCb,Bool rlsRnti)
          if ((raCb->dlHqE->msg4Proc->subFrm != NULLP) &&
              (raCb->dlHqE->msg4Proc->hqPSfLnk.node != NULLP))
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"TMP CRNTI:%d RACH FAILURE!! "
+            DU_LOG("\nERROR  -->  SCH : TMP CRNTI:%d RACH FAILURE!! "
                "msg4proc  removed from SF", raCb->tmpCrnti);
             rgSCHUtlDlHqPTbRmvFrmTx(raCb->dlHqE->msg4Proc->subFrm, 
                                    raCb->dlHqE->msg4Proc, 0, FALSE);
@@ -1177,8 +1168,7 @@ static Void rgSCHRamProcContResGrdExp(RgSchCellCb *cell,RgSchRaCb  *raCb)
    raCb->contResTmrLnk.node = NULLP;
 
    /* MSG4 Fix Start */
-   RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
-            "Con Res Grd Tmr exp RNTI:%d", 
+   DU_LOG("\nDEBUG  -->  SCH : Con Res Grd Tmr exp RNTI:%d", 
             raCb->rntiLnk->rnti);   
    rgSCHRamAddToRaInfoSchdLst(cell, raCb);
    /* MSG4 Fix End */    
index 66c03ea..e34e61b 100755 (executable)
@@ -32,9 +32,6 @@
 @brief The scheduling functionality is implemented in this file.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=173;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -680,7 +677,7 @@ static S16 rgSCHSc1DlDedSvcAlloc(RgSchCellCb *cell,RgSchDlSf *subFrm,RgSchDlLcCb
       /* scheduling may be done for this UE                       */
       if (RG_SCH_CMN_PROC_SLCTD_FOR_RETX(proc))
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"CRNTI:%d rgSCHSc1DlDedSvcAlloc():"
+         DU_LOG("\nERROR  -->  SCH : CRNTI:%d rgSCHSc1DlDedSvcAlloc():"
             "Ue retransmitting",ue->ueId);
          return ROK;
       }
@@ -696,7 +693,7 @@ static S16 rgSCHSc1DlDedSvcAlloc(RgSchCellCb *cell,RgSchDlSf *subFrm,RgSchDlLcCb
    {
       if (rgSCHDhmGetAvlHqProc(cell, ue, cmnCellDl->time, &proc) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "CRNTI:%d rgSCHSc1DlDedSvcAlloc():"
+         DU_LOG("\nERROR  -->  SCH : CRNTI:%d rgSCHSc1DlDedSvcAlloc():"
             " No HARQ Proc available", ue->ueId);
          return ROK;
       }
@@ -926,10 +923,7 @@ static Void rgSCHSc1DlPstSchd(Inst  schInst)
 static Void rgSCHSc1DlDedNewTx(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInfo)
 {
    RgSchDlSf            *subFrm = allocInfo->dedAlloc.dedDlSf;
-#ifdef DEBUGP
-   Inst                 inst = cell->instIdx;
-#endif
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "rgSCHSc1DlDedNewTx\n"));
+   DU_LOG("\nDEBUG  -->  SCH : rgSCHSc1DlDedNewTx\n");
 
    /* Now perform the new UE selections */
    rgSCHSc1DlDedTx(cell, subFrm, allocInfo);
@@ -956,11 +950,8 @@ static Void rgSCHSc1DlDedNewTx(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInf
  **/
 static Void rgSCHSc1DlDedRetx(RgSchCellCb *cell,RgSchCmnDlRbAllocInfo *allocInfo)
 {
-   RgSchDlSf            *subFrm = allocInfo->dedAlloc.dedDlSf;
-#ifdef DEBUGP
-   Inst                 inst = cell->instIdx;
-#endif
-   RGSCHDBGPRM(inst, (rgSchPBuf(inst), "rgSCHSc1DlDedRetx\n"));
+   RgSchDlSf  *subFrm = allocInfo->dedAlloc.dedDlSf;
+   DU_LOG("\nDEBUG  -->  SCH : rgSCHSc1DlDedRetx\n");
 
    rgSCHSc1DlRetxAlloc(cell, subFrm, allocInfo);
 
@@ -1674,8 +1665,7 @@ S16 rgSCHSc1RgrDlCellCfg(RgSchCellCb *cell,RgrCellCfg *cellCfg,RgSchErrInfo *err
       (Data**)&(((RgSchCmnCell*)((cell)->sc.sch))->dl.schSpfc), \
       (sizeof(RgSchSc1DlCell)))) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-         "Memory allocation FAILED");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED");
       err->errCause = RGSCHERR_SCH_SC1_DL_CFG;
       return (ret);
    }
@@ -1772,7 +1762,7 @@ S16 rgSCHSc1RgrDlUeCfg(RgSchCellCb  *cell,RgSchUeCb *ue,RgrUeCfg *ueCfg,RgSchErr
    if((rgSCHUtlAllocSBuf(inst, 
                (Data**)&(ueSchCmn->dl.schSpfc), (sizeof(RgSchSc1DlUe))) != ROK))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Memory allocation FAILED"
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED"
                "CRNTI:%d",ue->ueId);
       err->errCause = RGSCHERR_SCH_SC1_DL_CFG;
       return RFAILED;
@@ -1822,8 +1812,7 @@ S16 rgSCHSc1DlUeHqEntInit(RgSchCellCb *cell,RgSchDlHqEnt *hqEnt)
             (Data**)&(hqEnt->sch),
             (hqEnt->numHqPrcs * sizeof(RgSchSc1DlHqProc))) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "Memory allocation FAILED CRNTI:%d",hqEnt->ue->ueId);
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED CRNTI:%d",hqEnt->ue->ueId);
       return RFAILED;
    }
    hqSpcSch = (RgSchSc1DlHqProc *)(hqEnt->sch);
@@ -2218,7 +2207,7 @@ S16 rgSCHSc1RgrLcCfg(RgSchCellCb  *cell,RgSchUeCb    *ue,RgSchDlLcCb  *dlLc,RgrL
       (sizeof(RgSchSc1DlSvc)));
    if (ret != ROK)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHSc1CrgLcCfg():"
+      DU_LOG("\nERROR  -->  SCH : rgSCHSc1CrgLcCfg():"
       "SCH struct alloc failed CRNTI:%d LCID:%d",ue->ueId,lcCfg->lcId);
       err->errCause = RGSCHERR_SCH_SC1_DL_CFG;
       return (ret);
@@ -3387,8 +3376,7 @@ S16 rgSCHSc1RgrUlUeCfg(RgSchCellCb  *cell,RgSchUeCb *ue,RgrUeCfg  *ueCfg,RgSchEr
    if(rgSCHUtlAllocSBuf(cell->instIdx, 
       (Data**)&(ueSchCmn->ul.schSpfc), (sizeof(RgSchSc1UlUe))) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-      "Memory allocation FAILED CRNTI:%d",ue->ueId);
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED CRNTI:%d",ue->ueId);
       err->errCause = RGSCHERR_SCH_SC1_UL_CFG;
       return RFAILED;
    }
@@ -3522,8 +3510,7 @@ S16 rgSCHSc1RgrUlCellCfg(RgSchCellCb  *cell,RgrCellCfg  *cellCfg,RgSchErrInfo *e
       (Data**)&(((RgSchCmnCell*)((cell)->sc.sch))->ul.schSpfc), \
       (sizeof(RgSchSc1UlCell))) != ROK))
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-      "Memory allocation FAILED");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED");
       err->errCause = RGSCHERR_SCH_SC1_UL_CFG;
       return RFAILED;
    }
index 773b840..2990c0f 100755 (executable)
@@ -220,8 +220,7 @@ Void rgSCHSCellAddToActDeactLst(RgSchCellCb *cell,RgSchUeCb *ue)
    }
    else
    {
-      RGSCHDBGINFONEW(cell->instIdx,(rgSchPBuf(cell->instIdx),
-            "SCell is already added in the Act List: ueId(%u)\n", ue->ueId));
+      DU_LOG("\nINFO  -->  SCH : SCell is already added in the Act List: ueId(%u)\n", ue->ueId);
    }
    
    return;
@@ -299,7 +298,8 @@ Void rgSCHSCellActivation(RgSchUeCellInfo  *sCellInfo)
 #endif
 
 #ifdef CA_DBG 
-   printf("ueId is SCELL_ACTIVE\n ueCb->ueId = %d sCell->sCellIdx =%d, sCell->sCellId=%d, sCell->sCellState=%d \n", ueCb->ueId, sCellInfo->sCellIdx, sCellInfo->sCellId, sCellInfo->sCellState);
+    DU_LOG("\nDEBUG  -->  SCH : ueId is SCELL_ACTIVE\n ueCb->ueId = %d sCell->sCellIdx =%d,\
+    sCell->sCellId=%d, sCell->sCellState=%d \n", ueCb->ueId, sCellInfo->sCellIdx, sCellInfo->sCellId, sCellInfo->sCellState);
 #endif
    /* Start the sCellDeactivation timer if cfgd */
    if(PRSNT_NODEF == ueCb->sCellDeactTmrVal.pres)
@@ -337,19 +337,18 @@ Void rgSCHSCellActivation(RgSchUeCellInfo  *sCellInfo)
 
       cqiCb->nCqiTrIdx = cqiCb->nCqiTrIdx
          %RG_SCH_PCQI_SRS_SR_TRINS_SIZE;
-      RGSCHDBGINFONEW(inst, (rgSchPBuf(inst), "CQI Config: idx(%u) Periodicity %u"
+      DU_LOG("\nINFO  -->  SCH : CQI Config: idx(%u) Periodicity %u"
                "Offset %u uePosInQ (%u)\n", cqiCfg->cqiSetup.cqiPCfgIdx,
-               cqiCb->cqiPeri, cqiCb->cqiOffset,cqiCb->nCqiTrIdx));
+               cqiCb->cqiPeri, cqiCb->cqiOffset,cqiCb->nCqiTrIdx);
 
       cmLListAdd2Tail(&ueCb->cell->pCqiSrsSrLst[cqiCb->nCqiTrIdx].cqiLst,
             &cqiCb->cqiLstEnt);  
 
       rgSCHUtlSCellHndlCqiCollsn(cqiCb);
 
-      RGSCHDBGINFO(inst,(rgSchPBuf(inst), 
-               "\n rgSCHCfgPCqiUeCfg():"
+      DU_LOG("\nINFO  -->  SCH :  rgSCHCfgPCqiUeCfg():"
                "  CrntTime=%d  Next CqiTrInstTime=%d  Index Stored at=%d  ",
-               crntTime, cqiTrInstTime, cqiCb->nCqiTrIdx));
+               crntTime, cqiTrInstTime, cqiCb->nCqiTrIdx);
 
       if(cqiCfg->cqiSetup.riEna)
       {
@@ -426,25 +425,24 @@ Void rgSCHSCellActivation(RgSchUeCellInfo  *sCellInfo)
          rgSCHUtlSCellHndlRiCollsn(cqiCb);
          /*werror*/
 #ifndef BIT_64
-         RGSCHDBGINFONEW(inst,(rgSchPBuf(inst), "SCel RI cfg:"
+         DU_LOG("\nINFO  -->  SCH : SCel RI cfg:"
                   "idx %u period %u Offset %u posInQ(%u) riDist(%u)lst count"
                   "%lu\n", cqiCfg->cqiSetup.riCfgIdx, cqiCb->riPeri,
                   cqiCb->riOffset, cqiCb->nRiTrIdx, cqiCb->riDist, 
-                  ueCb->cell->pCqiSrsSrLst[cqiCb->nRiTrIdx].riLst.count));
+                  ueCb->cell->pCqiSrsSrLst[cqiCb->nRiTrIdx].riLst.count);
 #else
-         RGSCHDBGINFONEW(inst,(rgSchPBuf(inst), "SCel RI cfg:"
+         DU_LOG("\nINFO  -->  SCH : SCel RI cfg:"
                   "idx %u period %u Offset %u posInQ(%u) riDist(%u)lst count"
                   "%u\n", cqiCfg->cqiSetup.riCfgIdx, cqiCb->riPeri,
                   cqiCb->riOffset, cqiCb->nRiTrIdx, cqiCb->riDist, 
-                  ueCb->cell->pCqiSrsSrLst[cqiCb->nRiTrIdx].riLst.count));
+                  ueCb->cell->pCqiSrsSrLst[cqiCb->nRiTrIdx].riLst.count);
 
 
 #endif
 
-         RGSCHDBGINFO(inst,(rgSchPBuf(inst),
-                  "\n rgSCHSCellActivation(): CrntTime=%d Next RiTrInstTime=%d"
+         DU_LOG("\nINFO  -->  SCH : \n rgSCHSCellActivation(): CrntTime=%d Next RiTrInstTime=%d"
                   "Index Stored at=%d riDis=%d ",
-                  crntTime, riTrInsTime, cqiCb->nRiTrIdx, cqiCb->riDist));
+                  crntTime, riTrInsTime, cqiCb->nRiTrIdx, cqiCb->riDist);
       }
    }
 #endif
@@ -580,7 +578,8 @@ static S16 rgSCHSCellDeActivation(RgSchUeCellInfo *sCellInfo)
    cellSch->apisDl->rgSCHDlSCellDeactv(sCellInfo->cell, sCellInfo->ue);
 
 #ifdef CA_DBG 
-   printf("SCELL DEATIVATED  sCellInfo->ue->ueId =%d, sCellInfo->sCellId =%d\n", sCellInfo->ue->ueId, sCellInfo->sCellId);
+   DU_LOG("\nDEBUG  -->  SCH : SCELL DEATIVATED  sCellInfo->ue->ueId =%d, sCellInfo->sCellId =%d\n",\
+   sCellInfo->ue->ueId, sCellInfo->sCellId);
    //MSPD_DBG("SCELL DEATIVATED  sCellInfo->ue->ueId =%d, sCellInfo->sCellId =%d\n", sCellInfo->ue->ueId, sCellInfo->sCellId);
 #endif
    return ROK;
@@ -614,7 +613,7 @@ static S16 rgSCHSCellTrgMacHqEReset(Inst inst,uint16_t secCellId,uint16_  rnti)
 
    if((secCellCb = (RgSchCellCb *)rgSchUtlGetCellCb(inst, secCellId)) == NULLP)
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "SCell doesnt exists"));
+      DU_LOG("\nERROR  -->  SCH : SCell doesnt exists");
       return RFAILED;
    }
 
@@ -674,7 +673,7 @@ Void rgSCHSCellHndlFdbkInd(RgSchDlHqProcCb *hqP,uint8_t tbIdx,uint8_t  fdbk,Bool
                   if(ueCb->cellInfo[idx]->sCellState == RG_SCH_SCELL_ACTVTN_IN_PROG)
                   {
 #ifdef CA_DBG
-                     printf("\n starting delay timer...\n");
+                     DU_LOG("\nINFO  -->  SCH : starting delay timer...\n");
 #endif                     
                      rgSCHTmrStartTmr (cell,ueCb->cellInfo[idx] ,RG_SCH_TMR_SCELL_ACT_DELAY,
                            RG_SCH_CMN_SCELL_ACT_DELAY_TMR);
@@ -758,7 +757,7 @@ Void rgSCHSCellDeactTmrExpry(RgSchUeCellInfo *sCellInfo)
       }
       else
       {
-         printf (" !!!!!! Avoiding DEACT for UE %d because of LAA Cell !!!!!!!!!!!!! \n",
+         DU_LOG("\nERROR  -->  SCH : !!!!!! Avoiding DEACT for UE %d because of LAA Cell !!!!!!!!!!!!! \n",
          sCellInfo->ue->ueId);
       }
 
@@ -801,15 +800,14 @@ S16 rgSCHSCellTrigActDeact(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_t sCellIdx,ui
    if((sCellIdx < 1) ||
       (sCellIdx > RGR_MAX_SCELL_PER_UE))
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid Serv Cell Idx %d\n", \
-               sCellIdx));
+      DU_LOG("\nERROR  -->  SCH : Invalid Serv Cell Idx %d\n", sCellIdx);
       return RFAILED;
    }
 
    if(ueCb->cellInfo[sCellIdx] == NULLP)
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Serv Cell not added to this Ue Scell Idx %d ueId %d\n", \
-              sCellIdx,ueCb->ueId));
+      DU_LOG("\nERROR  -->  SCH : Serv Cell not added to this Ue Scell Idx %d ueId %d\n", \
+              sCellIdx,ueCb->ueId);
       return RFAILED;
    }
 
@@ -819,8 +817,8 @@ S16 rgSCHSCellTrigActDeact(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_t sCellIdx,ui
       {
          if(ueCb->cellInfo[sCellIdx]->sCellState != RG_SCH_SCELL_INACTIVE)
          {
-            RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid state %u for preparing SCell Idx %u for UE %u\n", \
-                     ueCb->cellInfo[sCellIdx]->sCellState, sCellIdx, ueCb->ueId));
+            DU_LOG("\nERROR  -->  SCH : Invalid state %u for preparing SCell Idx %u for UE %u\n", \
+                     ueCb->cellInfo[sCellIdx]->sCellState, sCellIdx, ueCb->ueId);
             ret = RFAILED;
          }
          else
@@ -831,8 +829,10 @@ S16 rgSCHSCellTrigActDeact(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_t sCellIdx,ui
             /* Setting allocCmnUlPdcch flag to FALSE, So that PDCCH allocation will be done 
                from UE Searchspace */
             ueCb->allocCmnUlPdcch = FALSE;
-            printf("\n***** SCellIdx=%d state Changed to %d State \n",sCellIdx, ueCb->cellInfo[sCellIdx]->sCellState);
-            printf("\n***** SCellInfo Addr=%p state Changed to RG_SCH_SCELL_READY\n",(void*)ueCb->cellInfo[sCellIdx]);
+            DU_LOG("\nINFO  -->  SCH : ***** SCellIdx=%d state Changed to %d State \n",sCellIdx,\
+           ueCb->cellInfo[sCellIdx]->sCellState);
+            DU_LOG("\nINFO  -->  SCH : ***** SCellInfo Addr=%p state Changed to RG_SCH_SCELL_READY\n",\
+           (void*)ueCb->cellInfo[sCellIdx]);
          }
          break;
       }
@@ -840,8 +840,8 @@ S16 rgSCHSCellTrigActDeact(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_t sCellIdx,ui
       {
          if(ueCb->cellInfo[sCellIdx]->sCellState != RG_SCH_SCELL_READY)
          {
-            RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid state %u for activating SCell Idx %u for UE %u\n", \
-                     ueCb->cellInfo[sCellIdx]->sCellState, sCellIdx, ueCb->ueId));
+            DU_LOG("\nERROR  -->  SCH : Invalid state %u for activating SCell Idx %u for UE %u\n", \
+                     ueCb->cellInfo[sCellIdx]->sCellState, sCellIdx, ueCb->ueId);
             ret = RFAILED;
          }
          else
@@ -859,8 +859,8 @@ S16 rgSCHSCellTrigActDeact(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_t sCellIdx,ui
       {
          if(ueCb->cellInfo[sCellIdx]->sCellState != RG_SCH_SCELL_ACTIVE)
          {
-            RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid state %u for deactivating SCell Idx %u for UE %u\n", \
-                     ueCb->cellInfo[sCellIdx]->sCellState, sCellIdx, ueCb->ueId));
+            DU_LOG("\nERROR  -->  SCH : Invalid state %u for deactivating SCell Idx %u for UE %u\n", \
+                     ueCb->cellInfo[sCellIdx]->sCellState, sCellIdx, ueCb->ueId);
             ret = RFAILED;
          }
          else
@@ -876,8 +876,8 @@ S16 rgSCHSCellTrigActDeact(RgSchCellCb *cell,RgSchUeCb *ueCb,uint8_t sCellIdx,ui
       }
       default:
       {
-         RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid action received for SCell Idx %u for UE %u\n", \
-                  sCellIdx, ueCb->ueId));
+         DU_LOG("\nERROR  -->  SCH : Invalid action received for SCell Idx %u for UE %u\n", \
+                  sCellIdx, ueCb->ueId);
          ret = RFAILED;
          break;
       }
@@ -954,8 +954,8 @@ Void rgSCHSCellSelectAndActDeAct(RgSchCellCb  *pCell,RgSchUeCb *ueCb,uint8_t act
    if ((ret != ROK) || 
          (ROK != (rgSCHSCellTrigActDeact(pCell, ueCb, sCellIdx, action))))
    {
-      RGSCHDBGERR(pCell->instIdx,(rgSchPBuf(pCell->instIdx), "SCell Actication failed"
-               "for UE [%d] with SCellIdx [%d]\n", ueCb->ueId, sCellIdx));
+      DU_LOG("\nERROR  -->  SCH : SCell Actication failed"
+               "for UE [%d] with SCellIdx [%d]\n", ueCb->ueId, sCellIdx);
    }
    return;
 }
@@ -992,9 +992,9 @@ Void rgSCHSCellDelUeSCell(RgSchCellCb  *cellCb,RgSchUeCb *ueCb,uint8_t sCellIdx)
 
    if(sCellInfo == NULLP)
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Serv Cell not added to this Ue Scell Idx %d\
+      DU_LOG("\nERROR  -->  SCH : Serv Cell not added to this Ue Scell Idx %d\
                ueId %d\n",
-               sCellIdx,ueCb->ueId));
+               sCellIdx,ueCb->ueId);
       return;
    }
 
@@ -1116,15 +1116,14 @@ uint8_t sCellIdx
    RgSchUeCellInfo *sCellInfo;
    RgSchUePCqiCb *cqiCb = NULLP;
 
-   RGSCHDBGINFO(priCellCb->instIdx, (rgSchPBuf(priCellCb->instIdx), 
-            "rgSCHSCellPCqiCfg cellId =%d, ueId = %d, CfgType =%d\n",
-            secCellCb->cellId,  ueCb->ueId, cqiCfg->type));
+   DU_LOG("\nINFO  -->  SCH : rgSCHSCellPCqiCfg cellId =%d, ueId = %d, CfgType =%d\n",
+            secCellCb->cellId,  ueCb->ueId, cqiCfg->type);
    
    if((sCellIdx < 1) ||
       (sCellIdx > RGR_MAX_SCELL_PER_UE))
    {
-      RGSCHDBGERRNEW(inst, (rgSchPBuf(inst),"Invalid Serv Cell Idx %d\n",
-               sCellIdx));
+      DU_LOG("\nERROR  -->  SCH : Invalid Serv Cell Idx %d\n",
+               sCellIdx);
       return RFAILED;
    }
 
@@ -1151,9 +1150,8 @@ uint8_t sCellIdx
 #endif
 
 
-      RGSCHDBGINFO(priCellCb->instIdx,(rgSchPBuf(priCellCb->instIdx), 
-               "\n rgSCHSCellPCqiCfg(): CQI Peri=%d, CQI Offset=%d", 
-               cqiCb->cqiPeri,cqiCb->cqiOffset));
+      DU_LOG("\nDEBUG  -->  SCH :  rgSCHSCellPCqiCfg(): CQI Peri=%d, CQI Offset=%d", 
+               cqiCb->cqiPeri,cqiCb->cqiOffset);
 
       if(RGR_UE_PCQI_SB_REP == cqiCfg->cqiSetup.cqiRepType)
       {
@@ -1186,9 +1184,8 @@ uint8_t sCellIdx
                cqiCfg->cqiSetup.riCfgIdx,
                &cqiCb->riPeri, &cqiCb->riOffset);
 
-         RGSCHDBGINFO(priCellCb->instIdx,(rgSchPBuf(priCellCb->instIdx),
-                  "\n rgSCHSCellPCqiCfg(): RI Peri=%d, RI Offset=%d", 
-                  cqiCb->riPeri,cqiCb->riOffset));
+         DU_LOG("\nDEBUG  -->  SCH :  rgSCHSCellPCqiCfg(): RI Peri=%d, RI Offset=%d", 
+                  cqiCb->riPeri,cqiCb->riOffset);
 
          if(ueCb->cellInfo[sCellIdx]->txMode.txModeEnum == RGR_UE_TM_3 
                || ueCb->cellInfo[sCellIdx]->txMode.txModeEnum == RGR_UE_TM_4)
index 068e8b1..50d59bf 100755 (executable)
@@ -31,9 +31,6 @@
 /** @file rg_sch_tmr.c 
 @brief This module does processing related to timers for the scheduler.
 */
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=175;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -101,8 +98,7 @@ Void rgSCHTmrStartTmr(RgSchCellCb *cell,Ptr cb,S16 tmrEvnt,uint32_t tmrVal)
    {
       case RG_SCH_TMR_ACKNACK_REP:
          arg.timers = &(ue->ackNakRepCb.ackNakRepTmr);
-         RLOG_ARG0(L_ERROR,DBG_INSTID,cell->instIdx, 
-            "Hit AckNackRep timer");
+           DU_LOG("\nINFO  -->  SCH : Hit AckNackRep timer");
          break;
       case RG_SCH_TMR_MEASGAP:
          arg.timers = &(ue->measGapCb.measGapTmr);
@@ -158,8 +154,7 @@ Void rgSCHTmrStartTmr(RgSchCellCb *cell,Ptr cb,S16 tmrEvnt,uint32_t tmrVal)
          }
 #endif
       default:
-         RLOG_ARG0(L_ERROR,DBG_INSTID,cell->instIdx,  
-            "rgSCHTmrStartTmr() Incorrect Timer event");
+         DU_LOG("\nERROR  -->  SCH : rgSCHTmrStartTmr() Incorrect Timer event");
          return;
    }
 
@@ -272,8 +267,7 @@ Void rgSCHTmrStopTmr(RgSchCellCb *cell,S16 tmrEvnt,Ptr cb)
 #endif
 
       default:
-         RLOG_ARG0(L_ERROR,DBG_INSTID,cell->instIdx,  
-            "rgSCHTmrStopTmr() Incorrect Timer event");
+         DU_LOG("\nERROR  -->  SCH : rgSCHTmrStopTmr() Incorrect Timer event");
          return;
    }
 
@@ -343,7 +337,7 @@ Void rgSCHTmrProcTmr(Ptr cb,S16 tmrEvnt)
          /*TODO Needto handle TA Timer expiry for EMTC UE*/
          if(TRUE == ue->isEmtcUe)
          {
-            RLOG0(L_INFO,"TA Timer Expiry is not handled for EMTC UE\n");
+            DU_LOG("\nINFO  -->  SCH : TA Timer Expiry is not handled for EMTC UE\n");
             break;
          }
 #endif
@@ -385,8 +379,7 @@ Void rgSCHTmrProcTmr(Ptr cb,S16 tmrEvnt)
       default:
         if(ue)
         {
-           RLOG_ARG0(L_ERROR,DBG_INSTID,ue->cell->instIdx,  
-                 "rgSCHTmrProcTmr() Incorrect Timer event");
+            DU_LOG("\nERROR  -->  SCH : rgSCHTmrProcTmr() Incorrect Timer event");
         }
          return;
    }
index ab8529e..1824267 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This module does processing related to handling of lower interface APIs 
 invoked by PHY towards scheduler.
 */
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=228;
-static int RLOG_MODULE_ID=4096;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -763,7 +760,8 @@ RgSchUeCb       **ue
 {
    RgSchCmnCell          *cellSch = (RgSchCmnCell *)(cell->sc.sch);
 
-   printf("rapId[%d] cellSch->rachCfg.dedPrmStart[%d] cellSch->rachCfg.numDedPrm[%d]\n",rapId,cellSch->rachCfg.dedPrmStart,cellSch->rachCfg.numDedPrm);
+   DU_LOG("\nINFO  -->  SCH : rapId[%d] cellSch->rachCfg.dedPrmStart[%d] cellSch->rachCfg.numDedPrm[%d]\n",\
+   rapId,cellSch->rachCfg.dedPrmStart,cellSch->rachCfg.numDedPrm);
    /* Finding UE in handOver List */
    if ((rapId < cellSch->rachCfg.dedPrmStart) ||
          (rapId > cellSch->rachCfg.dedPrmStart +
@@ -771,13 +769,13 @@ RgSchUeCb       **ue
    {
       /* This ded Preamble corresponds to handover */
       *ue = rgSCHCmnGetHoUe(cell, rapId);
-      printf(" his ded Preamble corresponds to hando\n");
+      DU_LOG("\nDEBUG  -->  SCH : ded Preamble corresponds to handover\n");
    }
    else/* Finding UE from PDCCH Order Mappings */
    {
       /* Get the UE which has transmitted this RaReq */
       *ue = rgSCHCmnGetPoUe(cell, rapId, timingInfo);
-      printf("     ==== inding UE from PDCCH Order Mapping\n");
+      DU_LOG("\nDEBUG  -->  SCH :  UE from PDCCH Order Mapping\n");
    }
    return ROK;
 }
@@ -822,8 +820,7 @@ TfuRaReqIndInfo *raReqInd
    {
       err.errType    = RGSCHERR_TOM_RAREQIND;
       err.errCause   = RGSCHERR_TOM_INV_CELL_ID;
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId, 
-         "rgSCHTomRaReqInd(): No cell found with raReq cellId = (%d) errorType (%d)"
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomRaReqInd(): No cell found with raReq cellId = (%d) errorType (%d)"
          " errorCause(%d)",raReqInd->cellId, err.errType, err.errCause);
       return RFAILED;
    } 
@@ -850,9 +847,7 @@ TfuRaReqIndInfo *raReqInd
 #if (ERRCLASS & ERRCLS_DEBUG)
             if(raReqInd->rachInfoArr[raRntiCnt].raRnti > RGSCH_MAX_RA_RNTI)
             {
-               RGSCHLOGERROR(cell->instIdx, ERRCLS_INT_PAR, ERG013, 
-                     (ErrVal)raReqInd->rachInfoArr[raRntiCnt].raRnti, 
-                     ("rgSCHTomRaReqInd(): raRnti  is out of range\n"));
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomRaReqInd(): raRnti  is out of range\n");
                continue;
             }
 #endif
@@ -862,8 +857,7 @@ TfuRaReqIndInfo *raReqInd
             if(ret == RFAILED)
             {
                err.errType = RGSCHERR_TOM_RAREQIND;
-               RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,
-                     "RARNTI:%d rgSCHTomRaReqInd(): RAM processing failed errType(%d) "
+               DU_LOG("\nERROR  -->  SCH : RARNTI:%d rgSCHTomRaReqInd(): RAM processing failed errType(%d) "
                      "errCause(%d)", raReqInd->rachInfoArr[raRntiCnt].raRnti, 
                      err.errType, err.errCause);
                continue;
@@ -909,8 +903,7 @@ TfuUlCqiIndInfo *ulCqiInd
    node =  ulCqiInd->ulCqiRpt.first;
    if(cell->cellId != ulCqiInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHTomUlCqiInd() Unable to get the ulCqiInd cell with id(%d)", 
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomUlCqiInd() Unable to get the ulCqiInd cell with id(%d)", 
          ulCqiInd->cellId);
       return RFAILED;
    }
@@ -921,7 +914,7 @@ TfuUlCqiIndInfo *ulCqiInd
 #if (ERRCLASS & ERRCLS_DEBUG)
       if(ulCqiInfo->numSubband == 0)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Num Subband is"
+         DU_LOG("\nERROR  -->  SCH : Num Subband is"
             "out of range RNTI:%d",ulCqiInfo->rnti);
          continue;
       }
@@ -932,8 +925,7 @@ TfuUlCqiIndInfo *ulCqiInd
          if((ue = rgSCHDbmGetSpsUeCb(cell, ulCqiInfo->rnti)) == NULLP)
 #endif
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get "
-                     "the ue for RNTI:%d", ulCqiInfo->rnti);
+            DU_LOG("\nERROR  -->  SCH : Unable to get the ue for RNTI:%d", ulCqiInfo->rnti);
             continue;
          }
       }
@@ -977,8 +969,7 @@ TfuPucchDeltaPwrIndInfo *pucchDeltaPwr
 
    if(cell->cellId != pucchDeltaPwr->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-         "rgSCHTomPucchDeltaPwrInd() Unable to get the pucchDeltaPwr cell with id(%d)", 
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomPucchDeltaPwrInd() Unable to get the pucchDeltaPwr cell with id(%d)", 
          pucchDeltaPwr->cellId);
       return RFAILED;
    }
@@ -993,7 +984,7 @@ TfuPucchDeltaPwrIndInfo *pucchDeltaPwr
          if((ue = rgSCHDbmGetSpsUeCb(cell, ueElem->rnti)) == NULLP)
 #endif
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d "
+            DU_LOG("\nERROR  -->  SCH : RNTI:%d "
                      "rgSCHTomPucchDeltaPwrInd() Unable to get the ue ", 
                      ueElem->rnti);
             continue;
@@ -1046,7 +1037,7 @@ TfuHqIndInfo    *harqAckInd
    
    if(cell->cellId != harqAckInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() Unable to get"
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() Unable to get"
          " the cell for cellId (%d)", harqAckInd->cellId);
       err.errType = RGSCHERR_TOM_HARQACKIND;
       err.errCause = RGSCHERR_TOM_INV_CELL_ID;
@@ -1067,7 +1058,7 @@ TfuHqIndInfo    *harqAckInd
             if ((rgSCHDhm5gtfHqFdbkInd (ue, cell, harqAckInd->timingInfo, fdbk, &err)) != ROK)
             {
                err.errType = RGSCHERR_TOM_HARQACKIND;
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() "
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() "
                      "HARQ feedback processing failed errType(%d)errCause(%d)n",
                      err.errType, err.errCause); 
                continue;
@@ -1079,7 +1070,7 @@ TfuHqIndInfo    *harqAckInd
 
    if ((rgSCHDhmRlsDlsfHqProc (cell, harqAckInd->timingInfo)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Release Downlink "
+      DU_LOG("\nERROR  -->  SCH : Unable to Release Downlink "
             "subframe for cellId (%d) ", cell->cellId);
       err.errType = RGSCHERR_TOM_HARQACKIND;
    }
@@ -1120,7 +1111,7 @@ TfuHqIndInfo    *harqAckInd
                      cell, harqAckInd->timingInfo, hqInfo, rlsHqBufs, &err)) != ROK)
          {
             err.errType = RGSCHERR_TOM_HARQACKIND;
-            RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() HARQ"
+            DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() HARQ"
                " feedback processing failed errType(%d) errCause(%d)", 
                err.errType, err.errCause); 
             continue;
@@ -1134,7 +1125,7 @@ TfuHqIndInfo    *harqAckInd
                      cell, harqAckInd->timingInfo, hqInfo, rlsHqBufs, &err)) != ROK)
          {
             err.errType = RGSCHERR_TOM_HARQACKIND;
-            RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() "
+            DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() "
                "HARQ feedback processing failed errType(%d)errCause(%d)n",
                err.errType, err.errCause);
             continue;
@@ -1146,7 +1137,7 @@ TfuHqIndInfo    *harqAckInd
                      cell, harqAckInd->timingInfo, hqInfo, rlsHqBufs, &err)) != ROK)
          {
             err.errType = RGSCHERR_TOM_HARQACKIND;
-            RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() HARQ"
+            DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() HARQ"
                " feedback processing failed errType(%d) errCause(%d).", 
                err.errType, err.errCause); 
             continue;
@@ -1154,7 +1145,7 @@ TfuHqIndInfo    *harqAckInd
       }
       else
       {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the "
+            DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the "
                      "UE CB or RA CB ", hqInfo->rnti);
             err.errType = RGSCHERR_TOM_HARQACKIND;
             continue;
@@ -1164,7 +1155,7 @@ TfuHqIndInfo    *harqAckInd
    /* Check with TDD call DHM*/
    if ((rgSCHDhmRlsDlsfHqProc (cell, harqAckInd->timingInfo)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Release Downlink "
+      DU_LOG("\nERROR  -->  SCH : Unable to Release Downlink "
          "subframe for cellId (%d) ", harqAckInd->cellId);
       err.errType = RGSCHERR_TOM_HARQACKIND;
    }
@@ -1225,7 +1216,7 @@ TfuSrIndInfo    *srInd
 
    if(cell->cellId != srInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for srcInd cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for srcInd cellId"
          ":%d ", srInd->cellId);
       err.errType = RGSCHERR_TOM_SRIND;
       err.errCause = RGSCHERR_TOM_INV_CELL_ID;
@@ -1242,7 +1233,7 @@ TfuSrIndInfo    *srInd
       ue = rgSCHDbmGetUeCb (cell, srInfo->rnti);
       if (ue == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the UE CB",
+         DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the UE CB",
             srInfo->rnti);
          continue;
       }
@@ -1256,7 +1247,7 @@ TfuSrIndInfo    *srInd
       if (ret != ROK)
       {
          err.errType = RGSCHERR_TOM_SRIND;
-         RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,"Scheduler processing failed "
+         DU_LOG("\nERROR  -->  SCH : Scheduler processing failed "
              "errType(%d) errCause(%d) RNTI:%d", err.errType, err.errCause,srInfo->rnti);
          continue;
       }
@@ -1298,7 +1289,7 @@ TfuDoaIndInfo   *doaInd
 
    if(cell->cellId != doaInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for doaInd cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for doaInd cellId"
          ":%d", doaInd->cellId);
       return RFAILED;
        }
@@ -1311,7 +1302,7 @@ TfuDoaIndInfo   *doaInd
       ue = rgSCHDbmGetUeCb (cell, doaInfo->rnti);
       if (ue == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the UE CB",
+         DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the UE CB",
             doaInfo->rnti);
          continue;
       }
@@ -1353,7 +1344,7 @@ TfuDlCqiIndInfo *dlCqiInd
 
    if(cell->cellId != dlCqiInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for cellId"
          ":%d", dlCqiInd->cellId);
       return RFAILED;
        }
@@ -1366,7 +1357,7 @@ TfuDlCqiIndInfo *dlCqiInd
       ue = rgSCHDbmGetUeCb (cell, dlCqiInfo->rnti);
       if (ue == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%dUnable to get the UE CB",
+         DU_LOG("\nERROR  -->  SCH : RNTI:%dUnable to get the UE CB",
             dlCqiInfo->rnti);
          continue;
       }
@@ -1428,7 +1419,7 @@ RgSchUePCqiCb   *cqiCb
    if (NULLP == cmLListDelFrm(&cell->pCqiSrsSrLst[cqiCb->nCqiTrIdx].cqiLst,
             &cqiCb->cqiLstEnt))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to remove node",
+      DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to remove node",
          ue->ueId);
    }
    cqiCb->nCqiTrIdx = cqiIdx;
@@ -1532,7 +1523,7 @@ RgSchUePCqiCb  *riCb
       if (NULLP == cmLListDelFrm(&cell->pCqiSrsSrLst[riCb->nRiTrIdx].riLst,
             &riCb->riLstEnt))
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"[%d]UEID:Unable to remove node",
+         DU_LOG("\nERROR  -->  SCH : [%d]UEID:Unable to remove node",
             ue->ueId);
       }
       RG_SCH_RECORD(&riCb->histElem,RGSCH_ACTION_DEL, &cell->pCqiSrsSrLst[riCb->nRiTrIdx].riLst);
@@ -1594,7 +1585,7 @@ RgSchUeCb      *ue
    if (NULLP == cmLListDelFrm(&cell->pCqiSrsSrLst[ue->srCb.nSrTrIdx].srLst,
             &ue->srCb.srLstEnt))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to remove node",
+      DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to remove node",
          ue->ueId);
    }
    ue->srCb.nSrTrIdx = srIdx;
@@ -1665,7 +1656,7 @@ RgSchUeCb      *ue
       if (NULLP == cmLListDelFrm(&cell->pCqiSrsSrLst[ue->srsCb.nSrsTrIdx].srsLst,
             &ue->srsCb.srsLstEnt))
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to remove node",
+         DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to remove node",
             ue->ueId);
       }
       cmLListAdd2Tail(&cell->pCqiSrsSrLst[srsIdx].srsLst,
@@ -1732,7 +1723,7 @@ TfuRawCqiIndInfo *rawCqiInd
 
    if(cell->cellId != rawCqiInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for cellId"
             ":%d", rawCqiInd->cellId);
       return RFAILED;
        }
@@ -1747,7 +1738,7 @@ TfuRawCqiIndInfo *rawCqiInd
       /*
       if (ue == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"CRNTI:%d Unable to get the UECB",
+         DU_LOG("\nERROR  -->  SCH : CRNTI:%d Unable to get the UECB",
                rawCqiInfo->crnti);
          continue;
       }
@@ -1755,7 +1746,7 @@ TfuRawCqiIndInfo *rawCqiInd
 #ifdef RG_5GTF
       /*
       if (rawCqiInfo->numBits >= 5)
-         printf("cellId [%d] crnti [%d] numBits [%d]  uciPayload [0x%08x] sfn/sf [%d:%d]\n", 
+         DU_LOG("\nINFO  -->  SCH : cellId [%d] crnti [%d] numBits [%d]  uciPayload [0x%08x] sfn/sf [%d:%d]\n", 
                 cell->cellId, rawCqiInfo->crnti, rawCqiInfo->numBits, rawCqiInfo->uciPayload, 
                 rawCqiInd->timingInfo.sfn, rawCqiInd->timingInfo.slot);
       */
@@ -1775,7 +1766,7 @@ TfuRawCqiIndInfo *rawCqiInd
             if ((rgSCHDhm5gtfHqFdbkInd (ue, cell, rawCqiInd->timingInfo, fdbk, &err)) != ROK)
             {
                err.errType = RGSCHERR_TOM_HARQACKIND;
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() "
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() "
                      "HARQ feedback processing failed errType(%d)errCause(%d)n",
                      err.errType, err.errCause); 
                continue;
@@ -1787,7 +1778,7 @@ TfuRawCqiIndInfo *rawCqiInd
                         cell, rawCqiInd->timingInfo, &hqInfo, rlsHqBufs, &err)) != ROK)
             {
                err.errType = RGSCHERR_TOM_HARQACKIND;
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() HARQ"
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() HARQ"
                      " feedback processing failed errType(%d) errCause(%d)", 
                      err.errType, err.errCause); 
                continue;
@@ -1800,7 +1791,7 @@ TfuRawCqiIndInfo *rawCqiInd
                         cell, rawCqiInd->timingInfo, &hqInfo, rlsHqBufs, &err)) != ROK)
             {
                err.errType = RGSCHERR_TOM_HARQACKIND;
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() HARQ"
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() HARQ"
                      " feedback processing failed errType(%d) errCause(%d).", 
                      err.errType, err.errCause); 
                continue;
@@ -1808,13 +1799,13 @@ TfuRawCqiIndInfo *rawCqiInd
          }
          else
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the "
+            DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the "
                   "UE CB or RA CB ", rawCqiInfo->crnti);
             err.errType = RGSCHERR_TOM_HARQACKIND;
             continue;
          }
          /*
-         printf("rawCqiInfo->numBits [%d]  uciPayload [0x%08x] sfn/sf [%d:%d]\n", rawCqiInfo->numBits,
+         DU_LOG("rawCqiInfo->numBits [%d]  uciPayload [0x%08x] sfn/sf [%d:%d]\n", rawCqiInfo->numBits,
                 rawCqiInfo->uciPayload, rawCqiInd->timingInfo.sfn, rawCqiInd->timingInfo.slot);
          */
       }
@@ -1826,7 +1817,7 @@ TfuRawCqiIndInfo *rawCqiInd
          if(ue) {
          if (cqi == 0)
          {
-            printf("\n UE[%d] CQI[%d] Invalid\n", ue->ueId, cqi);
+           DU_LOG("\nERROR  -->  SCH : UE[%d] CQI[%d] Invalid\n", ue->ueId, cqi);
             cqi = 15;
          }
          ue->ue5gtfCb.mcs = rgSch5gtfCqi2Mcs[cqi - 1];
@@ -1843,7 +1834,7 @@ TfuRawCqiIndInfo *rawCqiInd
 #endif
          }
          /*
-         printf("UE[%d] CQI[%d] MCS[%d] RI[%d]\n", ue->ueId, cqi, ue->ue5gtfCb.mcs, ri);
+         DU_LOG("\nERROR  -->  SCH : UE[%d] CQI[%d] MCS[%d] RI[%d]\n", ue->ueId, cqi, ue->ue5gtfCb.mcs, ri);
          */
       }
       else if (rawCqiInfo->numBits == 6)
@@ -1856,7 +1847,7 @@ TfuRawCqiIndInfo *rawCqiInd
          hqAck = (rawCqiInfo->uciPayload >> 31) & 0x1;
          if (cqi == 0)
          {
-            printf("UE[%d] CQI[%d] Invalid\n", ue->ueId, cqi);
+            DU_LOG("\nERROR  -->  SCH : UE[%d] CQI[%d] Invalid\n", ue->ueId, cqi);
             cqi = 13;
          }
          ue->ue5gtfCb.mcs = rgSch5gtfCqi2Mcs[cqi - 1];
@@ -1881,7 +1872,7 @@ TfuRawCqiIndInfo *rawCqiInd
              if ((rgSCHDhm5gtfHqFdbkInd (ue, cell, rawCqiInd->timingInfo, fdbk, &err)) != ROK)
              {
                  err.errType = RGSCHERR_TOM_HARQACKIND;
-                 RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() "
+                 DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() "
                          "HARQ feedback processing failed errType(%d)errCause(%d)n",
                          err.errType, err.errCause); 
                  continue;
@@ -1893,7 +1884,7 @@ TfuRawCqiIndInfo *rawCqiInd
                         cell, rawCqiInd->timingInfo, &hqInfo, rlsHqBufs, &err)) != ROK)
             {
                err.errType = RGSCHERR_TOM_HARQACKIND;
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() HARQ"
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() HARQ"
                      " feedback processing failed errType(%d) errCause(%d)", 
                      err.errType, err.errCause); 
                continue;
@@ -1906,7 +1897,7 @@ TfuRawCqiIndInfo *rawCqiInd
                         cell, rawCqiInd->timingInfo, &hqInfo, rlsHqBufs, &err)) != ROK)
             {
                err.errType = RGSCHERR_TOM_HARQACKIND;
-               RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomHarqAckInd() HARQ"
+               DU_LOG("\nERROR  -->  SCH : rgSCHTomHarqAckInd() HARQ"
                      " feedback processing failed errType(%d) errCause(%d).", 
                      err.errType, err.errCause); 
                continue;
@@ -1914,21 +1905,21 @@ TfuRawCqiIndInfo *rawCqiInd
          }
          else
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the "
+            DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the "
                   "UE CB or RA CB ", rawCqiInfo->crnti);
             err.errType = RGSCHERR_TOM_HARQACKIND;
             continue;
          }
 
          /*
-         printf("\nUE[%u] CQI[%u] MCS[%u] RI[%u] HQ[%u]\n", ue->ueId, cqi, ue->ue5gtfCb.mcs, ri, hqAck);
+         DU_LOG("\nERROR  -->  SCH : UE[%u] CQI[%u] MCS[%u] RI[%u] HQ[%u]\n", ue->ueId, cqi, ue->ue5gtfCb.mcs, ri, hqAck);
          */
       }
    }
 
    if ((rgSCHDhmRlsDlsfHqProc (cell, rawCqiInd->timingInfo)) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Release Downlink "
+      DU_LOG("\nERROR  -->  SCH : Unable to Release Downlink "
             "subframe for cellId (%d) ", cell->cellId);
       err.errType = RGSCHERR_TOM_HARQACKIND;
    }
@@ -1985,7 +1976,7 @@ TfuSrsIndInfo *srsInd
 
    if(cell->cellId != srsInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for cellId"
          ":%d", srsInd->cellId);
       return RFAILED;
        }
@@ -1997,7 +1988,7 @@ TfuSrsIndInfo *srsInd
       ue = rgSCHDbmGetUeCb (cell, srsInfo->ueId);
       if (ue == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the "
+         DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the "
             "UE CB", srsInfo->ueId);
          continue;
       }
@@ -2114,7 +2105,7 @@ TfuCrcIndInfo *crcInd
 
    if(cell->cellId != crcInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for cellId"
          ":%d", crcInd->cellId);
       return RFAILED;
        }
@@ -2126,7 +2117,7 @@ TfuCrcIndInfo *crcInd
       if (RGSCH_TIMEINFO_SAME(lastCrc, crntCrc))
       {
          /*Removed the WA to drop 2nd CRC*/
-         RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,"Recieved CRC "
+         DU_LOG("\nINFO  -->  SCH : Recieved CRC "
             "twice per TTI @(%u,%u)", cell->crntTime.sfn,
             cell->crntTime.slot);
       }
@@ -2291,7 +2282,7 @@ TfuCrcIndInfo *crcInd
       if ((ret = rgSCHUtlAllocEventMem(inst, (Ptr *)&cntrlInfo, 
                   sizeof(TfuCntrlReqInfo))) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate TfuCntrlReqInfo "
+         DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuCntrlReqInfo "
                "for cell");
          return ret;
       }
@@ -2304,7 +2295,7 @@ TfuCrcIndInfo *crcInd
 
       if ((rgSCHTomUtlProcDlSfAtCrc (ulSf, crntHiDci0Frm, cell, cntrlInfo, &err)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomCrcInd() Unable to process"
+         DU_LOG("\nERROR  -->  SCH : rgSCHTomCrcInd() Unable to process"
                   " downlink subframe for cellId %d", crcInd->cellId);
          err.errType = RGSCHERR_TOM_TTIIND;
          return RFAILED;
@@ -2347,7 +2338,7 @@ TfuTimingAdvIndInfo *timingAdvInd
 
    if(cell->cellId != timingAdvInd->cellId)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the cell for cellId"
+      DU_LOG("\nERROR  -->  SCH : Unable to get the cell for cellId"
          "=(%d)", timingAdvInd->cellId);
       return RFAILED;
        }
@@ -2360,7 +2351,7 @@ TfuTimingAdvIndInfo *timingAdvInd
       ue = rgSCHDbmGetUeCb (cell, timingAdvInfo->rnti);
       if (ue == NULLP)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to get the UE CB",
+         DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to get the UE CB",
             timingAdvInfo->rnti);
          continue;
       }
@@ -2486,7 +2477,7 @@ Inst               schInst
       if ((ret = rgSCHUtlAllocEventMem((cell[i]->instIdx), (Ptr *)&cntrlInfo, 
                   sizeof(RgTfuCntrlReqInfo))) != ROK)
       {     
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell[i]->cellId,"Unable to Allocate TfuCntrlReqInfo"
+         DU_LOG("\nERROR   -->  SCH : Unable to Allocate TfuCntrlReqInfo"
                " for cell");
          return;
       }
@@ -2524,10 +2515,10 @@ Inst               schInst
       if(gTtiCount == 3000)
       {
 #ifdef XEON_SPECIFIC_CHANGES
-         printf("SChed:: (P/S)::(%u/%u) \n",
+         DU_LOG("\nINFO   -->  SCH : SChed:: (P/S)::(%u/%u) \n",
                gPrimarySchedCount,gSCellSchedCount);
 
-         printf("\n HQFDBK :: %u\n",gHqFdbkCount);
+         DU_LOG("\nINFO   -->  SCH :  HQFDBK :: %u\n",gHqFdbkCount);
          
          long int total;
          long int total2 ;
@@ -2535,12 +2526,12 @@ Inst               schInst
          total = gPCellTb1AckCount + gPCellTb1NackCount + gPCellTb1DtxCount;
          total2 = gPCellTb2AckCount + gPCellTb2NackCount + gPCellTb2DtxCount;
          
-         printf("\n PCell:: TB1:: (A/N/D)::(%u/%u/%u)  TB2:: (A/N/D)::(%u/%u/%u)\n",
+         DU_LOG("\nINFO   -->  SCH :  PCell:: TB1:: (A/N/D)::(%u/%u/%u)  TB2:: (A/N/D)::(%u/%u/%u)\n",
                gPCellTb1AckCount,gPCellTb1NackCount,gPCellTb1DtxCount,
                gPCellTb2AckCount,gPCellTb2NackCount,gPCellTb2DtxCount);
          if ((total != 0 ) && total2 != 0)
          {
-            printf("\n PCell:: TB1:: (AP/NP/DP)::(%.2f/%.2f/%.2f)   TB2:: (AP/NP/DP)::(%.2f/%.2f/%.2f)\n",
+            DU_LOG("\nINFO   -->  SCH :  PCell:: TB1:: (AP/NP/DP)::(%.2f/%.2f/%.2f)   TB2:: (AP/NP/DP)::(%.2f/%.2f/%.2f)\n",
                   (float)gPCellTb1AckCount/total * 100,(float)gPCellTb1NackCount/total * 100,(float)gPCellTb1DtxCount/total * 100,
                   (float)gPCellTb2AckCount/total2 *100 ,(float)gPCellTb2NackCount/total2 *100 ,(float)gPCellTb2DtxCount/total2 *2);
          }
@@ -2549,25 +2540,25 @@ Inst               schInst
          total2 = gSCellTb2AckCount + gSCellTb2NackCount + gSCellTb2DtxCount;
 
 
-         printf("\n SCell:: TB1:: (A/N/D)::(%u/%u/%u)  TB2:: (A/N/D)::(%u/%u/%u)\n",
+         DU_LOG("\nINFO   -->  SCH : SCell:: TB1:: (A/N/D)::(%u/%u/%u)  TB2:: (A/N/D)::(%u/%u/%u)\n",
                gSCellTb1AckCount,gSCellTb1NackCount,gSCellTb1DtxCount,
                gSCellTb2AckCount,gSCellTb2NackCount,gSCellTb2DtxCount);
          if ((total != 0 ) && total2 != 0)
          {
-            printf("\n SCell:: TB1:: (AP/NP/DP)::(%.2f/%.2f/%.2f)   TB2:: (AP/NP/DP)::(%.2f/%.2f/%.2f)\n",
+            DU_LOG("\nINFO   -->  SCH : SCell:: TB1:: (AP/NP/DP)::(%.2f/%.2f/%.2f)   TB2:: (AP/NP/DP)::(%.2f/%.2f/%.2f)\n",
                   (float)gSCellTb1AckCount/total * 100,(float)gSCellTb1NackCount/total * 100,(float)gSCellTb1DtxCount/total * 100,
                   (float)gSCellTb2AckCount/total2 *100 ,(float)gSCellTb2NackCount/total2 *100 ,(float)gSCellTb2DtxCount/total2 *2);
          }
 
 
-         printf("\n CQI:: Recp(Pucch/Pusch):Rcvd(pcqi/rawacqireport/apcqi/AppReprt)::(%u/%u):(%u/%u/%u/%u)\n",
+         DU_LOG("\nINFO   -->  SCH : CQI:: Recp(Pucch/Pusch):Rcvd(pcqi/rawacqireport/apcqi/AppReprt)::(%u/%u):(%u/%u/%u/%u)\n",
                gCqiRecpCount,gCqiRecpPuschCount,gCqiRcvdCount,gRawACqiCount,
                gACqiRcvdCount,gCqiReptToAppCount);
               
-         printf("\n (F1BCS Count/Cqi/Ri/CqiDrop/PucchDrop/PuschCqiDrop)::(%u/%u/%u/%u/%u/%u)\n",
+         DU_LOG("\nINFO   -->  SCH : (F1BCS Count/Cqi/Ri/CqiDrop/PucchDrop/PuschCqiDrop)::(%u/%u/%u/%u/%u/%u)\n",
                gF1bCsCount,gCqiReqCount,gRiReqCount,gCqiDropCount,gPucchDropCount,gPuschCqiDropCount); 
 
-         printf("UL::(DCI0/CrcPass/CrcFail)::(%u/%u/%u)\n"
+         DU_LOG("\nINFO   -->  SCH : UL::(DCI0/CrcPass/CrcFail)::(%u/%u/%u)\n"
                "gPcellZeroBoOcc:%u\t gScellZeroBoOcc:%u dbgUeIdChngAndDatReqInClCnt: %u\n"
                "DelayedDatReqInMac: %u DelayedDatReqInCl : %u gIccPktRcvrMemDropCnt :%u\n",
                gDci0Count,
@@ -2579,28 +2570,31 @@ Inst               schInst
                dbgDelayedDatReqInMac,
               gDropDatReqCnt, gIccPktRcvrMemDropCnt);
 #else
-         printf("SChed:: (P/S)::(%ld/%ld) \n",
+         DU_LOG("\nINFO   -->  SCH : SChed:: (P/S)::(%ld/%ld) \n",
                gPrimarySchedCount,gSCellSchedCount);
 
-         printf("\n HQFDBK :: %ld\n",gHqFdbkCount);
+         DU_LOG("\nINFO   -->  SCH :  HQFDBK :: %ld\n",gHqFdbkCount);
+
          
-         printf("\n PCell:: TB1:: (A/N/D)::(%ld/%ld/%ld)  TB2:: (A/N/D)::(%ld/%ld/%ld)\n",
+         DU_LOG("\nINFO   -->  SCH :  PCell:: TB1:: (A/N/D)::(%ld/%ld/%ld)  TB2:: (A/N/D)::(%ld/%ld/%ld)\n",
                gPCellTb1AckCount,gPCellTb1NackCount,gPCellTb1DtxCount,
                gPCellTb2AckCount,gPCellTb2NackCount,gPCellTb2DtxCount);
 
-         printf("\n SCell:: TB1:: (A/N/D)::(%ld/%ld/%ld)  TB2:: (A/N/D)::(%ld/%ld/%ld)\n",
+         DU_LOG("\nINFO   -->  SCH : SCell:: TB1:: (A/N/D)::(%ld/%ld/%ld)  TB2:: (A/N/D)::(%ld/%ld/%ld)\n",
                gSCellTb1AckCount,gSCellTb1NackCount,gSCellTb1DtxCount,
                gSCellTb2AckCount,gSCellTb2NackCount,gSCellTb2DtxCount);
 
-         printf("\n CQI:: Recp(Pucch/Pusch):Rcvd(pcqi/rawacqireport/apcqi/AppReprt)::(%ld/%ld):(%ld/%ld/%ld/%ld)\n",
+         DU_LOG("\nINFO   -->  SCH : CQI:: Recp(Pucch/Pusch):Rcvd(pcqi/rawacqireport/apcqi/AppReprt)::\
+        (%ld/%ld):(%ld/%ld/%ld/%ld)\n",
                gCqiRecpCount,gCqiRecpPuschCount,gCqiRcvdCount,gRawACqiCount,
                gACqiRcvdCount,gCqiReptToAppCount);
-         printf("\n CQI:: PucchCqiSnrDropCnt/PucchCqiConfBitMaskDropCnt/PuschCqiConfMaskDropCount  :: (%ld/%ld/%ld) \n",gCqiPucchLowSnrDropCount,gCqiPucchConfMaskDropCount,gCqiPuschConfMaskDropCount);
+         DU_LOG("\nINFO   -->  SCH : CQI:: PucchCqiSnrDropCnt/PucchCqiConfBitMaskDropCnt/PuschCqiConfMaskDropCount\
+        :: (%ld/%ld/%ld) \n",gCqiPucchLowSnrDropCount,gCqiPucchConfMaskDropCount,gCqiPuschConfMaskDropCount);
               
-         printf("\n (F1BCS Count/Cqi/Ri/CqiDrop/PucchDrop/PuschCqiDrop)::(%ld/%ld/%ld/%ld/%ld/%ld)\n",
+         DU_LOG("\nINFO   -->  SCH : (F1BCS Count/Cqi/Ri/CqiDrop/PucchDrop/PuschCqiDrop)::(%ld/%ld/%ld/%ld/%ld/%ld)\n",
                gF1bCsCount,gCqiReqCount,gRiReqCount,gCqiDropCount,gPucchDropCount,gPuschCqiDropCount); 
 
-         printf("UL::(DCI0/CrcPass/CrcFail)::(%ld/%ld/%ld)\n"
+         DU_LOG("\nINFO   -->  SCH : UL::(DCI0/CrcPass/CrcFail)::(%ld/%ld/%ld)\n"
                "gPcellZeroBoOcc:%ld\t gScellZeroBoOcc:%ld dbgUeIdChngAndDatReqInClCnt: %ld\n"
                "DelayedDatReqInMac: %ld DelayedDatReqInCl : %ld gIccPktRcvrMemDropCnt :%ld\n",
                gDci0Count,
@@ -2611,7 +2605,7 @@ Inst               schInst
                dbgUeIdChngAndDatReqInClCnt,
                dbgDelayedDatReqInMac,
               gDropDatReqCnt, gIccPktRcvrMemDropCnt);
-         //printf ("\n delayedApiCnt:%ld",delayedApiCnt);
+         //DU_LOG("\nINFO   -->  SCH : delayedApiCnt:%ld",delayedApiCnt);
 #endif
 
         /*LAA STATS*/               
@@ -2710,7 +2704,7 @@ RgSchErrInfo       *err
    if ((ret = rgSCHUtlAllocEventMem(inst, (Ptr *)&recpReqInfo, 
                             sizeof(TfuRecpReqInfo))) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate TfuRecpReqInfo "
+      DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuRecpReqInfo "
          "for cell");
       err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
       return ret;
@@ -2727,7 +2721,7 @@ RgSchErrInfo       *err
          err);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to fill Data recption "
+      DU_LOG("\nERROR  -->  SCH : Unable to fill Data recption "
          "requests for cell");
       RGSCH_FREE_MEM(recpReqInfo);
       return ret;
@@ -2736,7 +2730,7 @@ RgSchErrInfo       *err
    ret = rgSCHTomUtlFillHqFdbkRecpReq (recpReqInfo, cell, validIdx,err);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to fill Harq Feedback "
+      DU_LOG("\nERROR  -->  SCH : Unable to fill Harq Feedback "
          "reception requests for cell");
       RGSCH_FREE_MEM(recpReqInfo);
       return ret;
@@ -2744,7 +2738,7 @@ RgSchErrInfo       *err
    /* sending the RecpReq to Phy */
    //if (rgSCHUtlTfuRecpReq(inst, cell->tfuSap->sapCfg.suId, recpReqInfo) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to send Cntrl info for cell");
+      DU_LOG("\nERROR  -->  SCH : Unable to send Cntrl info for cell");
    }
    return ROK;
 } /* end of rgSCHTomUtlProcUlSf */ 
@@ -2783,7 +2777,7 @@ RgSchErrInfo *err
    if ((ret = rgSCHUtlAllocEventMem(inst, (Ptr *)&recpReqInfo, 
                             sizeof(TfuRecpReqInfo))) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomUtlPrcUlTddSpclSf() Unable to "
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomUtlPrcUlTddSpclSf() Unable to "
                "Allocate TfuRecpReqInfo for cell");
       err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
       return ret;
@@ -2810,7 +2804,7 @@ RgSchErrInfo *err
    ret = rgSCHTomUtlFillSrsRecpReq (recpReqInfo, cell, validIdx, err);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomUtlPrcUlTddSpclSf() Unable to fill"
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomUtlPrcUlTddSpclSf() Unable to fill"
             " SRS recption requests for cell");
       RGSCH_FREE_MEM(recpReqInfo);
       return ret;
@@ -2818,7 +2812,7 @@ RgSchErrInfo *err
    /* sending the RecpReq to Phy */
    //if (rgSCHUtlTfuRecpReq(inst, cell->tfuSap->sapCfg.suId, recpReqInfo) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHTomUtlPrcUlTddSpclSf() Unable to send "
+      DU_LOG("\nERROR  -->  SCH : rgSCHTomUtlPrcUlTddSpclSf() Unable to send "
                                "Cntrl info for cell");
    }
    return ROK;
@@ -2851,7 +2845,6 @@ RgTfuCntrlReqInfo    *cntrlInfo,
 RgSchErrInfo         *err
 )
 {
-   Inst    inst = cell->instIdx;
    S16     ret;
    uint8_t sfTyp = 1; /* Dl Subframe */
 
@@ -2867,7 +2860,8 @@ RgSchErrInfo         *err
       cntrlInfo->ulTiming = cell->hiDci0Time;
       if((0 == (cntrlInfo->dlTiming.sfn % 30)) && (0 == cntrlInfo->dlTiming.slot))
       {
-        //printf("5GTF_CHECK rgSCHTomUtlProcDlSf Cntrl dl (%d : %d) ul (%d : %d)\n", cntrlInfo->dlTiming.sfn, cntrlInfo->dlTiming.subframe, cntrlInfo->ulTiming.sfn, cntrlInfo->ulTiming.subframe);
+        //DU_LOG("\nERROR  -->  SCH : 5GTF_CHECK rgSCHTomUtlProcDlSf Cntrl dl (%d : %d) ul (%d : %d)\n", \
+        cntrlInfo->dlTiming.sfn, cntrlInfo->dlTiming.subframe, cntrlInfo->ulTiming.sfn, cntrlInfo->ulTiming.subframe);
       }
       /* Fill PCFICH info */
       /* Fix for DCFI FLE issue: when DL delta is 1 and UL delta is 0 and CFI
@@ -2890,16 +2884,16 @@ RgSchErrInfo         *err
          /* Fill PHICH info */
          if ((ret = rgSCHTomUtlFillPhich (cell, cntrlInfo, ulSf, err)) != ROK)
          {
-            RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"Unable to send PHICH info "
-                     "for cellId (%d)\n", cell->cellId));
+            DU_LOG("\nERROR  -->  SCH : Unable to send PHICH info "
+                     "for cellId (%d)\n", cell->cellId);
             RGSCH_FREE_MEM(cntrlInfo);
             return ret;
          }
          if ((ret = rgSCHTomUtlFillUlPdcch (cell, cntrlInfo, ulSf, err)) != 
                         ROK)
          {
-            RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"Unable to send PDCCH info "
-                     "for cellId (%d)\n", cell->cellId));
+            DU_LOG("\nERROR  -->  SCH : Unable to send PDCCH info "
+                     "for cellId (%d)\n", cell->cellId);
             RGSCH_FREE_MEM(cntrlInfo);
             return ret;
          }
@@ -2920,8 +2914,8 @@ RgSchErrInfo         *err
          /* Fill PDCCH info */
          if ((ret = rgSCHTomUtlFillDlPdcch(cell,cntrlInfo, dlSf, err)) != ROK)
          {
-            RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"Unable to send PDCCH info "
-                     "for cellId (%d)\n", cell->cellId));
+            DU_LOG("\nERROR  -->  SCH : Unable to send PDCCH info "
+                     "for cellId (%d)\n", cell->cellId);
             RGSCH_FREE_MEM(cntrlInfo);
             return ret;
          }
@@ -2945,8 +2939,7 @@ if(0 == cntrlInfo->dlMpdcchLst.count)
       //if (rgSCHUtlTfuCntrlReq(inst, cell->tfuSap->sapCfg.suId, cntrlInfo) 
             //!= ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to send Cntrl info "
-            "for cell");
+         DU_LOG("\nERROR  -->  SCH : Unable to send Cntrl info for cell");
       }
    return ROK;
 
@@ -3457,8 +3450,7 @@ RgSchErrInfo            *err
                   sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp));
             if (ret != ROK)
             {
-               RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
-                        "TfuUeRecpReqInfo for cell");
+               DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for cell");
                err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
                return ret;
             }
@@ -3595,9 +3587,6 @@ TfuUeRecpReqInfo        *pucchRecpInfo,
 RgSchErrInfo            *err
 )
 { 
-#ifdef DEBUGP
-   Inst                 inst = cell->instIdx;
-#endif
    S16                  ret;
    RgSchUeCb            *ue;
    TfuUePucchRecpReq    *pucchReqInfo = NULLP;
@@ -3612,8 +3601,8 @@ RgSchErrInfo            *err
          sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp));
    if (ret != ROK)
    {
-      RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"Unable to Allocate "
-               "TfuUeRecpReqInfo for cellId=%d \n", cell->cellId));
+      DU_LOG("\nERROR  -->  SCH : Unable to Allocate "
+               "TfuUeRecpReqInfo for cellId=%d \n", cell->cellId);
       err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
       return ret;
    }
@@ -3712,8 +3701,7 @@ RgSchErrInfo            *err
          sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp));
    if (ret != ROK)
    {
-      RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"Unable to Allocate "
-               "TfuUeRecpReqInfo for cellId=%d \n", cell->cellId));
+      DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for cellId=%d \n", cell->cellId);
       err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
       return ret;
    }
@@ -4018,8 +4006,8 @@ RgSchErrInfo            *err
          sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp));
    if (ret != ROK)
    {
-      RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"Unable to Allocate "
-               "TfuUeRecpReqInfo for cellId=%d \n", cell->cellId));
+      DU_LOG("\nERROR  -->  SCH : Unable to Allocate "
+               "TfuUeRecpReqInfo for cellId=%d \n", cell->cellId);
       err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
       return ret;
    }
@@ -4204,8 +4192,7 @@ RgSchErrInfo            *err
       if ((ret = rgSCHUtlGetEventMem((Ptr *)&pucchRecpInfo,
                   sizeof(TfuUeRecpReqInfo),&(recpReqInfo->memCp))) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
-            "TfuUeRecpReqInfo for cell RNTI:%d",ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for cell RNTI:%d",ue->ueId);
          err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
          return ret;
       }
@@ -4373,7 +4360,7 @@ RgSchErrInfo         *err
          if ((ret = rgSCHUtlGetEventMem((Ptr *)&pucchRecpInfo,
                      sizeof(TfuUeRecpReqInfo),&(recpReqInfo->memCp))) != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
+            DU_LOG("\nERROR  -->  SCH : Unable to Allocate "
                "TfuUeRecpReqInfo for cell RNTI:%d",ue->ueId);
             err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
             return ret;
@@ -4453,8 +4440,7 @@ RgSchErrInfo         *err
          if ((ret = rgSCHUtlGetEventMem((Ptr *)&pucchRecpInfo,
                      sizeof(TfuUeRecpReqInfo),&(recpReqInfo->memCp))) != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
-               "TfuUeRecpReqInfo for cell RNTI:%d ", ue->ueId);
+            DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for cell RNTI:%d ", ue->ueId);
             err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
             return ret;
          }
@@ -4540,16 +4526,14 @@ RgSchErrInfo         *err
       cqiPmiSz = rgSCHTomUtlFetchPcqiBitSz(ue, cell->numTxAntPorts, &ri); 
       if(!cqiPmiSz)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unable to Fill CqiPmi "
-            "size", ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to Fill CqiPmi size", ue->ueId);
          continue;
       }
 
       if ((ret = rgSCHUtlGetEventMem((Ptr *)&pucchRecpInfo,
                   sizeof(TfuUeRecpReqInfo),&(recpReqInfo->memCp))) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
-            "TfuUeRecpReqInfo for cell RNTI:%d ", ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for cell RNTI:%d ", ue->ueId);
          err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
          return ret;
       }
@@ -4631,8 +4615,7 @@ RgSchErrInfo         *err
          if ((ret = rgSCHUtlGetEventMem((Ptr *)&pucchRecpInfo,
                      sizeof(TfuUeRecpReqInfo),&(recpReqInfo->memCp))) != ROK)
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
-               "TfuUeRecpReqInfo for RNTI:%d ",ue->ueId);
+            DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for RNTI:%d ",ue->ueId);
             err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
             return ret;
          }
@@ -4721,8 +4704,7 @@ RgSchErrInfo         *err
                                 sizeof(TfuUeRecpReqInfo), 
                                 &(recpReqInfo->memCp))) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
-            "TfuUeRecpReqInfo for RNTI:%d ", alloc->ue->ueId);
+         DU_LOG("\nERROR  -->  SCH : Unable to Allocate TfuUeRecpReqInfo for RNTI:%d ", alloc->ue->ueId);
          err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
          return ret;
       }
@@ -4809,7 +4791,8 @@ RgSchErrInfo         *err
 
    if((0 == (recpReqInfo->timingInfo.sfn % 30)) && (0 == recpReqInfo->timingInfo.slot))
    {
-      //printf("5GTF_CHECK rgSCHTomUtlFillDatRecpReq (%d : %d)\n", recpReqInfo->timingInfo.sfn, recpReqInfo->timingInfo.slot);
+      //DU_LOG("\nERROR  -->  SCH : 5GTF_CHECK rgSCHTomUtlFillDatRecpReq (%d : %d)\n",\
+      recpReqInfo->timingInfo.sfn, recpReqInfo->timingInfo.slot);
    }
    /* processing steps are 
     * - Run through the UL allocations going out in this subframe.
@@ -4824,7 +4807,7 @@ RgSchErrInfo         *err
             sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp));
       if(ret != ROK)            
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Allocate "
+         DU_LOG("\nERROR  -->  SCH : Unable to Allocate "
             "TfuUeRecpReqInfo for RNTI:%d ", alloc->rnti);
          err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
          return ret;
@@ -5644,7 +5627,7 @@ uint16_t          validIdx
    cqiPmiSz = rgSCHTomUtlFetchPcqiBitSz(alloc->ue, cell->numTxAntPorts, &ri);
    if(0 == cqiPmiSz)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to Fill "
+      DU_LOG("\nERROR  -->  SCH : Unable to Fill "
          "CqiPmi size RNTI:%d",alloc->rnti);
       return RFAILED;
    }
@@ -6015,8 +5998,7 @@ Bool               isDatPresOnSecCell
                rgSCHTomUtlFetchPcqiBitSz(ue, cell->numTxAntPorts, &ri); 
             if(0 == pucchRecpInfo->t.pucchRecpReq.cqiInfo.cqiPmiSz)
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d "
-                  "Unable to Fill CqiPmi size", ue->ueId);
+               DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to Fill CqiPmi size", ue->ueId);
                return RFAILED;
             }
             if(pucchRecpInfo->t.pucchRecpReq.uciInfo == TFU_PUCCH_HARQ_SR)
@@ -6214,10 +6196,9 @@ uint16_t          validIdx
                rgSCHTomUtlFetchPcqiBitSz(ue, cell->numTxAntPorts, &ri); 
             if(0 == pucchRecpInfo->t.pucchRecpReq.cqiInfo.cqiPmiSz)
             {
-               RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d"
-                  " Unable to Fill CqiPmi size", ue->ueId);
+               DU_LOG("\nERROR  -->  SCH : RNTI:%d Unable to Fill CqiPmi size", ue->ueId);
                return RFAILED;
-                               }
+           }
 
             pucchRecpInfo->t.pucchRecpReq.uciInfo = TFU_PUCCH_SR_CQI;
          }
@@ -6382,7 +6363,7 @@ RgSchDlSf       *nxtDlsf
                      sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp));
          if (ret != ROK)            
          {
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,"Unable to"
+            DU_LOG("\nERROR  -->  SCH : Unable to"
                "Allocate TfuUeRecpReqInfo for RNTI:%d ", ueCb->ueId);
             err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
             return ret;
@@ -7211,7 +7192,7 @@ uint8_t                 hqSz
       if ((ret = rgSCHUtlGetEventMem((Ptr *)&pucchInfo,
                   sizeof(RgSchUePucchRecpInfo), memCp)) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,"Unable to "
+         DU_LOG("\nERROR  -->  SCH : Unable to "
             "Allocate TfuUeRecpReqInfo for cell RNTI:%d",rnti);
          err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
          return ret;
@@ -7226,7 +7207,7 @@ uint8_t                 hqSz
       if ((ret = rgSCHUtlGetEventMem((Ptr *)&(pucchInfo->pucchRecpInfo),
                   sizeof(TfuUeRecpReqInfo), &(recpReqInfo->memCp))) != ROK)
       {
-         RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,"Unable to "
+         DU_LOG("\nERROR  -->  SCH : Unable to "
             "Allocate TfuUeRecpReqInfo for cell RNTI:%d",rnti);
          err->errCause = RGSCHERR_TOM_MEM_EXHAUST;
          return ret;
@@ -7292,8 +7273,7 @@ uint8_t                 hqSz
                 if(anInfo == NULL)
                 {/* ANInfo must be there. adding block
                     because of kworks*/
-                   RGSCHDBGERRNEW(cellCb->instIdx,(rgSchPBuf(cellCb->instIdx),
-                            "ANInfo should not be NULL for cellId=%d \n", cellCb->cellId));
+                   DU_LOG("\nERROR  -->  SCH : ANInfo should not be NULL for cellId=%d \n", cellCb->cellId);
                    return RFAILED;
                 }
 #endif
@@ -7302,7 +7282,7 @@ uint8_t                 hqSz
        }else
        {/* This needs to be revisited while
            adding support for PUCCH format 3 */
-          RGSCHDBGERRNEW(cellCb->instIdx,(rgSchPBuf(cellCb->instIdx),"Invalid Pucch format configured.."));
+          DU_LOG("\nERROR  -->  SCH : Invalid Pucch format configured..");
           return RFAILED;
        }
     }
@@ -7505,8 +7485,7 @@ RgSchErrInfo         *err
    /* Fill PHICH info */
    if ((ret = rgSCHTomUtlFillPhich (cell, cntrlInfo, ulSf, err)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to send PHICH info for "
-            "cell");
+      DU_LOG("\nERROR  -->  SCH : Unable to send PHICH info for cell");
       RGSCH_FREE_MEM(cntrlInfo);
       return ret;
    }
@@ -7514,8 +7493,7 @@ RgSchErrInfo         *err
    /* Fill UL Pdcch */
    if ((ret = rgSCHTomUtlFillUlPdcch (cell, cntrlInfo, ulSf, err)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to send PDCCH info for "
-            "cell");
+      DU_LOG("\nERROR  -->  SCH : Unable to send PDCCH info for cell");
       RGSCH_FREE_MEM(cntrlInfo);
       return ret;
    }
@@ -7533,11 +7511,9 @@ RgSchErrInfo         *err
    if (cntrlInfo->ulPdcchLst.count || cntrlInfo->phichLst.count)
 #endif
    {
-      //if (rgSCHUtlTfuCntrlReq(inst, cell->tfuSap->sapCfg.suId, cntrlInfo) 
-               != ROK)
+      //if (rgSCHUtlTfuCntrlReq(inst, cell->tfuSap->sapCfg.suId, cntrlInfo) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Unable to send Cntrl info for"
-               " cell");
+         DU_LOG("\nERROR  -->  SCH : Unable to send Cntrl info for cell");
       }
    }
    else
@@ -7575,9 +7551,8 @@ RgSchCellCb          *cell
       if (rgSCHUtlAllocSBuf (cell->instIdx,
                (Data**)&rgrTtiInd, sizeof(RgrTtiIndInfo)) != ROK)
       {
-         RGSCHDBGERRNEW(cell->instIdx,(rgSchPBuf(cell->instIdx),
-                  "Mem alloc failed for RGR TTI ind, cellId (%d))\n", 
-                  cell->cellId));
+         DU_LOG("\nERROR  -->  SCH : Mem alloc failed for RGR TTI ind, cellId (%d))\n", 
+                  cell->cellId);
          return;
       }
       rgrTtiInd->cellId = cell->cellId;
@@ -7586,9 +7561,8 @@ RgSchCellCb          *cell
 
       if (rgSCHUtlRgrTtiInd (cell, rgrTtiInd) != ROK)
       {
-         RGSCHDBGERRNEW(cell->instIdx,(rgSchPBuf(cell->instIdx),
-                  "Failed to send RGR TTI ind, cellId (%d))\n", 
-                  cell->cellId));
+         DU_LOG("\nERROR  -->  SCH : Failed to send RGR TTI ind, cellId (%d))\n", 
+                  cell->cellId);
          rgSCHUtlFreeSBuf(cell->instIdx, (Data**)&rgrTtiInd,
                sizeof(RgrTtiIndInfo));
          return;
@@ -7620,7 +7594,7 @@ static Void rgSCHDynTDDMrkCrntSfIdx(Inst   schInst)
        rgSchDynTddInfo->crntDTddSfIdx = (rgSchDynTddInfo->crntDTddSfIdx + 1) %
                                   RG_SCH_DYNTDD_MAX_SFINFO;
 
-   //printf("Initializing Index %d \n", rgSchDynTddInfo->crntDTddSfIdx);
+   //DU_LOG("\nERROR  -->  SCH : Initializing Index %d \n", rgSchDynTddInfo->crntDTddSfIdx);
 
    return;
 }
@@ -7676,8 +7650,7 @@ RgSchCellCb        *cells[]
       if (cell == NULLP) 
       {
          /* Use SCH inst 0 print buff */
-         RGSCHDBGERRNEW(schInst,(rgSchPBuf(schInst),
-                  "RgLiTfuTtiInd()No cell exists for cellId %d\n", 
+        DU_LOG("\nERROR  -->  SCH : RgLiTfuTtiInd()No cell exists for cellId %d\n", 
                   cellInfo->cellId));
          continue;
       }
@@ -7687,7 +7660,7 @@ RgSchCellCb        *cells[]
       /* 4UE_TTI_DELTA */
       if(cell->schTickDelta != cellInfo->schTickDelta)
       {
-         printf("\nMukesh: Delta changed for cellId=%d: curr delta=%d new delta=%d\n"
+         DU_LOG("\nERROR  -->  SCH : Delta changed for cellId=%d: curr delta=%d new delta=%d\n"
          "dlblankSf=%d ulblankSf=%d dummyTti=%d \n",
          cell->cellId, cell->schTickDelta, cellInfo->schTickDelta, cellInfo->dlBlankSf,cellInfo->ulBlankSf,
          cellInfo->isDummyTti);
@@ -7705,7 +7678,7 @@ RgSchCellCb        *cells[]
       }
       if((0 == (cellInfo->timingInfo.sfn % 30)) && (0 == cellInfo->timingInfo.slot))
       {
-        //printf("5GTF_CHECK rgSCHTOMTtiInd (%d : %d)\n", cellInfo->timingInfo.sfn, cellInfo->timingInfo.slot);
+        //DU_LOG("5GTF_CHECK rgSCHTOMTtiInd (%d : %d)\n", cellInfo->timingInfo.sfn, cellInfo->timingInfo.slot);
       }
 #ifndef EMTC_ENABLE 
       RGSCHCPYTIMEINFO(cellInfo->timingInfo, cell->crntTime);
@@ -7922,8 +7895,8 @@ RgSchCellCb *cell
          if(rgSCHUtlAllocSBuf (cell->instIdx,(Data**)&rgrLoadInf,
                sizeof(RgrLoadInfIndInfo)) != ROK)
          {
-            RGSCHDBGERRNEW(cell->instIdx,(rgSchPBuf(cell->instIdx),"Could not "
-                     "allocate memory for sending LoadInfo\n"));
+            DU_LOG("\nERROR  -->  SCH : Could not "\
+                     "allocate memory for sending LoadInfo\n");
             return;
          }
          cell->lteAdvCb.absLoadTtiCnt = 0;
@@ -8116,9 +8089,7 @@ static Void rgSCHTomUtlProcTddUlSf(RgSchCellCb  *cell)
       if (rgSCHTomUtlProcUlSf (cell, &err) != ROK)
       {
          /* fill in err type and call sta ind */
-         RGSCHDBGERRNEW(cell->instIdx, (rgSchPBuf(cell->instIdx),
-                  "Unable to process Uplink subframe for cellId (%d))\n", 
-                  cell->cellId));
+         DU_LOG("\nERROR  -->  SCH : Unable to process Uplink subframe for cellId (%d))\n", cell->cellId);
       }
    }
    /* TDD Fix , to allow Special SF  SRS CFg  */
@@ -8128,9 +8099,7 @@ static Void rgSCHTomUtlProcTddUlSf(RgSchCellCb  *cell)
       if (rgSCHTomUtlPrcUlTddSpclSf(cell, &err) != ROK)
       {
          /* fill in err type and call sta ind */
-         RGSCHDBGERRNEW(cell->instIdx, (rgSchPBuf(cell->instIdx),
-                  "Unable to process Sipceial subframe for cellId (%d))\n", 
-                  cell->cellId));
+         DU_LOG("\nERROR  -->  SCH : Unable to process Sipceial subframe for cellId (%d))\n", cell->cellId);
       }
    }
 
index 397565a..895d550 100755 (executable)
@@ -122,7 +122,7 @@ Void rgSCHUhmProcDatInd(RgSchCellCb *cell,RgSchUeCb  *ue,CmLteTimingInfo frm,uin
    rgSCHUtlUlHqProcForUe(cell, frm, ue, &hqProc);
    if (hqProc == NULLP)
    {
-      printf("UE[%d] failed to find UL HqProc for [%d:%d]\n",
+      DU_LOG("\nERROR  -->  SCH : UE[%d] failed to find UL HqProc for [%d:%d]\n",
                      ue->ueId, frm.sfn, frm.slot);
       return;
    }
@@ -181,7 +181,7 @@ Void rgSCHUhmProcMsg3DatInd(RgSchUlHqProcCb *hqProc)
 {
    hqProc->rcvdCrcInd = TRUE;
    hqProc->remTx = 0;        /*Reseting the value of rem Tx*/
-   printf("\nrgSCHUhmProcMsg3DatInd,id:%u\n",hqProc->procId);
+   DU_LOG("\nINFO  -->  SCH : rgSCHUhmProcMsg3DatInd,id:%u\n",hqProc->procId);
    return;
 }  /* rgSCHUhmProcMsg3DatInd */
 
@@ -248,7 +248,7 @@ Void rgSCHUhmProcHqFailure(RgSchCellCb  *cell,RgSchUeCb  *ue,CmLteTimingInfo  fr
    rgSCHUtlUlHqProcForUe(cell, frm, ue, &hqProc);
    if (hqProc == NULLP)
    {
-      printf("UE[%d] failed to find UL HqProc for [%d:%d]\n",
+      DU_LOG("\nERROR  -->  SCH : UE[%d] failed to find UL HqProc for [%d:%d]\n",
                      ue->ueId, frm.sfn, frm.slot);
       return;
    }
@@ -411,7 +411,7 @@ Void rgSCHUhmFreeProc(RgSchUlHqProcCb *hqProc,RgSchCellCb *cell)
  {
 
 #ifdef UL_ADPT_DBG 
-    printf("\n\n########HARQ FREED HARQPROC ID (%d )after rgSCHUhmFreeProc inuse %ld free %ld \n",hqProc->alloc->grnt.hqProcId, (CmLListCp *)(&((RgUeUlHqCb*)hqProc->hqEnt)->inUse)->count,(CmLListCp *) (&((RgUeUlHqCb*)hqProc->hqEnt)->free)->count);
+    DU_LOG("\nDEBUG  -->  SCH : ########HARQ FREED HARQPROC ID (%d )after rgSCHUhmFreeProc inuse %ld free %ld \n",hqProc->alloc->grnt.hqProcId, (CmLListCp *)(&((RgUeUlHqCb*)hqProc->hqEnt)->inUse)->count,(CmLListCp *) (&((RgUeUlHqCb*)hqProc->hqEnt)->free)->count);
 #endif
    hqProc->alloc = NULLP;
    hqProc->ulSfIdx = RGSCH_INVALID_INFO;
@@ -425,14 +425,14 @@ Void rgSCHUhmFreeProc(RgSchUlHqProcCb *hqProc,RgSchCellCb *cell)
    cmLListAdd2Tail(&((RgUeUlHqCb*)hqProc->hqEnt)->free, &hqProc->lnk);
 
    /*
-   printf("after rgSCHUhmFreeProc inuse %ld free %ld \n", 
+   DU_LOG("\nINFO  -->  SCH : after rgSCHUhmFreeProc inuse %ld free %ld \n", 
         (CmLListCp *)(&((RgUeUlHqCb*)hqProc->hqEnt)->inUse)->count,
          (CmLListCp *) (&((RgUeUlHqCb*)hqProc->hqEnt)->free)->count);
    */
  }
  else
  {
-     printf("\nhqEnt is NULL\n");
+     DU_LOG("\nERROR  -->  SCH : hqEnt is NULL\n");
  }
    return;
 }  /* rgSCHUhmFreeProc */
@@ -777,7 +777,7 @@ S16 rgSCHUhmGetAvlHqProc(RgSchCellCb *cell,RgSchUeCb  *ue,RgSchUlHqProcCb  **hqP
       //RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,
        //                "rgSCHUhmGetAvlHqProc free %ld inUse %ld ue %d"
         //                                   , hqE->free.count, hqE->inUse.count, ue->ueId);
-      //printf("5GTF_ERROR rgSCHUhmGetAvlHqProc cellId %d  %ld inUse %ld ue %d"
+      //DU_LOG("5GTF_ERROR rgSCHUhmGetAvlHqProc cellId %d  %ld inUse %ld ue %d"
                               //, cell->cellId, hqE->free.count, hqE->inUse.count, ue->ueId);
       /* No Harq Process available in the free queue. */
       return RFAILED;
@@ -792,7 +792,7 @@ S16 rgSCHUhmGetAvlHqProc(RgSchCellCb *cell,RgSchUeCb  *ue,RgSchUlHqProcCb  **hqP
    cmLListAdd2Tail(&hqE->inUse, &tmpHqProc->lnk);
 
 #ifdef UL_ADPT_DBG 
-         printf("rgSCHUhmGetAvlHqProc cellId %d  free %ld inUse %ld ue %d time (%d %d)\n",cell->cellId, hqE->free.count, hqE->inUse.count, ue->ueId,cellUl->schdTime.sfn,cellUl->schdTime.slot);
+         DU_LOG("\nDEBUG  -->  SCH : rgSCHUhmGetAvlHqProc cellId %d  free %ld inUse %ld UE %d time (%d %d)\n",cell->cellId, hqE->free.count, hqE->inUse.count, ue->ueId,cellUl->schdTime.sfn,cellUl->schdTime.slot);
 #endif         
    tmpHqProc->schdTime = cellUl->schdTime;
 
@@ -830,10 +830,12 @@ RgSchUlHqProcCb* rgSCHUhmGetUlProcByTime(RgSchCellCb *cell,RgSchUeCb *ue, CmLteT
    {
       proc = (RgSchUlHqProcCb *)(lnk->node);
       lnk = lnk->next;
-      //   printf("compare rgSCHUhmGetUlProcByTime time (%d %d) CRC time (%d %d) proc->procId %d \n",proc->schdTime.sfn,proc->schdTime.slot,frm.sfn,frm.slot ,proc->procId);
+      //   DU_LOG("\nINFO  -->  SCH : compare rgSCHUhmGetUlProcByTime time (%d %d) CRC time (%d %d) proc->procId %d
+      //   \n",\proc->schdTime.sfn,proc->schdTime.slot,frm.sfn,frm.slot ,proc->procId);
       if (RGSCH_TIMEINFO_SAME(proc->schdTime, frm))
       {
-        // printf("Harq timing Matched rgSCHUhmGetUlProcByTime time (%d %d) proc->procId %d \n",proc->schdTime.sfn,proc->schdTime.slot, proc->procId);
+        // DU_LOG("\nINFO  -->  SCH : Harq timing Matched rgSCHUhmGetUlProcByTime time (%d %d) proc->procId %d \n",\
+       proc->schdTime.sfn,proc->schdTime.slot, proc->procId);
          return (proc);
       }
    }
index 73acecf..cdeee40 100755 (executable)
@@ -32,9 +32,6 @@
 @brief This file implements the schedulers main access to MAC layer code.
 */
 
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=177;
 
 /* header include files -- defines (.h) */
 #include "common_def.h"
@@ -739,8 +736,7 @@ S16 rgSchSFRTotalPoolInit(RgSchCellCb *cell,RgSchDlSf *sf)
    ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data **)&temp, sizeof(CmLList));
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                     "CE Pool memory allocation FAILED for cell");       
+      DU_LOG("\nERROR  -->  SCH : CE Pool memory allocation FAILED for cell");       
       rgSchSFRTotalPoolFree(&sf->sfrTotalPoolInfo, cell);
       return RFAILED;
    }
@@ -748,8 +744,7 @@ S16 rgSchSFRTotalPoolInit(RgSchCellCb *cell,RgSchDlSf *sf)
    ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data **)&temp->node, sizeof(RgSchSFRPoolInfo));
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                     "CE Pool memory allocation FAILED for cell ");       
+      DU_LOG("\nERROR  -->  SCH : CE Pool memory allocation FAILED for cell ");       
       rgSchSFRTotalPoolFree(&sf->sfrTotalPoolInfo,cell);
       return RFAILED;
    }
@@ -782,8 +777,7 @@ S16 rgSchSFRTotalPoolInit(RgSchCellCb *cell,RgSchDlSf *sf)
    ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data **)&temp, sizeof(CmLList));
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                     "CC Pool memory allocation FAILED for cell ");       
+      DU_LOG("\nERROR  -->  SCH : CC Pool memory allocation FAILED for cell ");       
       rgSchSFRTotalPoolFree(&sf->sfrTotalPoolInfo,cell);
       return RFAILED;
    }
@@ -791,8 +785,7 @@ S16 rgSchSFRTotalPoolInit(RgSchCellCb *cell,RgSchDlSf *sf)
    ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data **)&temp->node, sizeof(RgSchSFRPoolInfo));
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                     "CC Pool memory allocation FAILED for cell ");       
+      DU_LOG("\nERROR  -->  SCH : CC Pool memory allocation FAILED for cell ");       
       rgSchSFRTotalPoolFree(&sf->sfrTotalPoolInfo,cell);
       return RFAILED;
    }
@@ -844,8 +837,7 @@ S16 rgSchSFRTotalPoolInit(RgSchCellCb *cell,RgSchDlSf *sf)
       ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data **)&temp, sizeof(CmLList));
       if (ret != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                        "CC Pool memory allocation FAILED for cell ");       
+         DU_LOG("\nERROR  -->  SCH : CC Pool memory allocation FAILED for cell ");       
          rgSchSFRTotalPoolFree(&sf->sfrTotalPoolInfo,cell);
          return RFAILED;
       }
@@ -853,8 +845,7 @@ S16 rgSchSFRTotalPoolInit(RgSchCellCb *cell,RgSchDlSf *sf)
       ret = rgSCHUtlAllocSBuf(cell->instIdx, (Data **)&temp->node, sizeof(RgSchSFRPoolInfo));
       if (ret != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
-                        "CC Pool memory allocation FAILED for cell ");       
+         DU_LOG("\nERROR  -->  SCH : CC Pool memory allocation FAILED for cell ");       
          rgSchSFRTotalPoolFree(&sf->sfrTotalPoolInfo,cell);
          return RFAILED;
       }
@@ -915,7 +906,7 @@ S16   rgSchDSFRRntpInfoInit(TknStrOSXL  *rntpPtr,RgSchCellCb *cell,uint16_t bw)
    if((rgSCHUtlAllocSBuf(inst, (Data**)&(rntpPtr->val),
                (len * sizeof(uint8_t)))) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED for RNTP Alloc");
+      DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for RNTP Alloc");
       return RFAILED;
    }
 
@@ -1089,7 +1080,7 @@ Bool            isForMsg3
 
    if(ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, " rgSCHUtlAddPhich(): "
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlAddPhich(): "
                "Allocation of RgSchPhich failed");
       return RFAILED;
    }
@@ -1674,8 +1665,7 @@ uint8_t        *hqPId
    {
       if ( ((alloc->ue) == NULLP) ||  (RG_SCH_CMN_GET_UE(alloc->ue, alloc->ue->cell) == NULLP))
       {
-         RLOG_ARG2(L_ERROR,DBG_CELLID,alloc->ue->cell->cellId,
-                     "Failed: ue->sch is null RNTI:%d,isRetx=%d",
+         DU_LOG("\nERROR  -->  SCH : Failed: ue->sch is null RNTI:%d,isRetx=%d",
                      alloc->rnti, alloc->grnt.isRtx);
          return RFAILED; 
       }
@@ -1883,7 +1873,7 @@ Void rgSCHUtlPrachCfgInit(RgSchCellCb *cell,RgrCellCfg *cellCfg)
 
    if(cellCfg->prachRscInfo.numRsc <= 0)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "Invalid"
+      DU_LOG("\nERROR  -->  SCH : Invalid"
                   "PRACH resources Configuration ");
       return;
    }
@@ -2196,7 +2186,7 @@ S16 rgSCHUtlRgrCellCfg(RgSchCellCb *cell,RgrCellCfg *cellCfg,RgSchErrInfo *errIn
       if((rgSCHUtlAllocSBuf(inst, (Data**)&(cell->rntpAggrInfo.val),
                   (len * sizeof(uint8_t)))) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED for RNTP Alloc");
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for RNTP Alloc");
          return RFAILED;
       }
       cell->rntpAggrInfo.pres = PRSNT_NODEF;
@@ -3202,7 +3192,7 @@ S16 rgSCHUtlRgrUeRecfg(RgSchCellCb *cell,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,RgSch
             ue->f1bCsAVal += rgSCHUtlGetMaxTbSupp(ueRecfg->txMode.txModeEnum);
 
 
-            RLOG1(L_INFO,"UeReCfg A valie is %d\n",ue->f1bCsAVal);
+            DU_LOG("\nINFO  -->  SCH : UeReCfg A valie is %d\n",ue->f1bCsAVal);
          }
 #endif
          ue->mimoInfo.txMode = ueRecfg->txMode.txModeEnum;
@@ -3772,7 +3762,7 @@ S16 rgSCHUtlGetRlsHqAlloc(RgSchCellCb *cell)
                      (Data**)&(cell->rlsHqArr[idx].ueHqInfo),
                       (sizeof(RgInfUeHqInfo)*RGSCH_MAX_UE_PER_DL_SF))) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED for "
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
             "UE Alloc");
          return RFAILED;
       }
@@ -3858,7 +3848,7 @@ S16 rgSCHUtlGetSfAlloc(RgSchCellCb *cell)
                      (Data**)&(cell->sfAllocArr[idx].ueInfo.allocInfo),
                       (sizeof(RgInfUeAlloc)*RGSCH_MAX_UE_PER_DL_SF))) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED for "
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
             "UE Alloc");
          return RFAILED;
       }
@@ -3868,7 +3858,7 @@ S16 rgSCHUtlGetSfAlloc(RgSchCellCb *cell)
                      (Data**)&(cell->sfAllocArr[idx].rarInfo.raRntiInfo),
                       (sizeof(RgInfRaRntiInfo)*RGSCH_MAX_RARNTI_PER_DL_SF))) != ROK)
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED for "
+         DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
             "RARNTI");
          return RFAILED;
       }
@@ -3878,7 +3868,7 @@ S16 rgSCHUtlGetSfAlloc(RgSchCellCb *cell)
             (Data**)&(cell->sfAllocArr[idx].rarInfo.raRntiInfo[indx].crntiInfo),
                    (sizeof(RgInfCrntiInfo)* (cellUl->maxMsg3PerUlSf)))) != ROK)
          {
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Memory allocation FAILED for "
+            DU_LOG("\nERROR  -->  SCH : Memory allocation FAILED for "
                "RNTI");
             return RFAILED;
          }
@@ -4011,8 +4001,7 @@ Size    size                /* size */
      /*  Send an alarm to Layer Manager */
      rgSCHLmmStaInd(inst, LCM_CATEGORY_RESOURCE, LCM_EVENT_SMEM_ALLOC_FAIL,
                                        LCM_CAUSE_MEM_ALLOC_FAIL, &dgn);
-     RGSCHLOGERROR(inst, ERRCLS_DEBUG, ERG015, 0, "Unable to Allocate Buffer");
-     RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Unable to Allocate the Buffer");
+     DU_LOG("\nERROR  -->  SCH : Unable to Allocate the Buffer");
      return RFAILED;
    }
 
@@ -4063,9 +4052,7 @@ Size size           /* size */
 
    if (ret != ROK)
    {
-      RGSCHLOGERROR(inst, ERRCLS_DEBUG, ERG016, (ErrVal) 0,
-                 "rgSCHUtlFreeSBuf failed.\n");
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "rgSCHUtlFreeSBuf failed");
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlFreeSBuf failed");
       return;
    }
 
@@ -4257,7 +4244,7 @@ S16 rgSCHUtlCalMcsAndNPrb(RgSchCellCb *cell,uint8_t cfgType,MsgLen msgLen,uint8_
       /*Get the nPrb and mcs parametr values */
    if (rgSCHUtlGetAllwdCchTbSz(msgLen*8, &nPrb, &mcs) != (msgLen*8))
       {
-         RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "msgLen does "
+         DU_LOG("\nERROR  -->  SCH : msgLen does "
             "not match any valid TB Size");
          return RFAILED;
       }
@@ -4797,8 +4784,7 @@ static Void rgSCHUtlFillRgInfTbInfo(RgSchDlHqProcCb *hqP,RgInfUeAlloc *allocInfo
             allocInfo->pa = (uint8_t)ue->cell->lteAdvCb.sfrCfg.pwrThreshold.pHigh;  /* KW fix for LTE_ADV */  
             if(tmpCnt++ == 100000)
             {
-               RLOG_ARG2(L_DEBUG,DBG_CELLID,ue->cell->cellId, 
-                        "DSFR::ll UEs can go HIGH, PHigh(%d) for UE(%d)",allocInfo->pa, ue->ueId);
+               DU_LOG("\nDEBUG  -->  SCH : DSFR::ll UEs can go HIGH, PHigh(%d) for UE(%d)",allocInfo->pa, ue->ueId);
                tmpCnt = 0;
             }
          }    
@@ -4812,8 +4798,7 @@ static Void rgSCHUtlFillRgInfTbInfo(RgSchDlHqProcCb *hqP,RgInfUeAlloc *allocInfo
                   allocInfo->pa = ue->cell->lteAdvCb.sfrCfg.pwrThreshold.pHigh;
                   if(tmpCnt++ == 100000)
                   {
-                     RLOG_ARG2(L_DEBUG,DBG_CELLID,ue->cell->cellId, 
-                              "SFR::UE is CELL EDGE, PHigh(%d) for UE(%d)",allocInfo->pa, ue->ueId);
+                     DU_LOG("\nDEBUG  -->  SCH : SFR::UE is CELL EDGE, PHigh(%d) for UE(%d)",allocInfo->pa, ue->ueId);
                      tmpCnt = 0;
                   }
 
@@ -4830,8 +4815,7 @@ static Void rgSCHUtlFillRgInfTbInfo(RgSchDlHqProcCb *hqP,RgInfUeAlloc *allocInfo
                      allocInfo->pa = ue->cell->lteAdvCb.sfrCfg.pwrThreshold.pLow;
                      if(tmpCnt++ == 100000)
                      {
-                        RLOG_ARG2(L_DEBUG,DBG_CELLID,ue->cell->cellId, 
-                                 "SFR::UE is CELL CENTRE, PLow(%d) for UE(%d)\n",allocInfo->pa, ue->ueId);
+                        DU_LOG("\nDEBUG  -->  SCH : SFR::UE is CELL CENTRE, PLow(%d) for UE(%d)\n",allocInfo->pa, ue->ueId);
                         tmpCnt = 0;
                      }
                   }
@@ -5064,7 +5048,7 @@ Void rgSCHUtlFillRgInfUeInfo(RgSchDlSf *sf,RgSchCellCb *cell,CmLListCp *dlDrxIna
    CM_LLIST_FIRST_NODE(lnkLst, tmp);
    while(NULLP != tmp)
    {
-      printf("5GTF_ERROR MSG4 Consolidation\n");
+      DU_LOG("\nINFO  -->  SCH : 5GTF_ERROR MSG4 Consolidation\n");
       hqCb = (RgSchDlHqProcCb *)(tmp->node);
       CM_LLIST_NEXT_NODE(lnkLst, tmp);
 
@@ -5263,7 +5247,7 @@ S16 rgSCHUtlAddUeToCcchSduLst(RgSchCellCb  *cell,RgSchUeCb *ueCb)
        ((!(ueCb->dl.dlInactvMask & RG_HQENT_INACTIVE)) &&
        ((hqP != NULLP) && (hqP->hqE->ccchSduProc))))
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RNTI:%d Unexpected CCCH SDU BO",
+      DU_LOG("\nINFO  -->  SCH : RNTI:%d Unexpected CCCH SDU BO",
          ueCb->ueId);
       return ROK;
    }
@@ -5293,7 +5277,7 @@ S16 rgSCHUtlUpdtBo(RgSchCellCb  *cell,RgInfCmnBoRpt *staRsp)
    if ((ueCb = rgSCHDbmGetUeCb(cell, staRsp->u.rnti)) == NULLP)
    {
       /* Handle Ue fetch failure */
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid UEID:%d",staRsp->u.rnti);
+      DU_LOG("\nERROR  -->  SCH : Invalid UEID:%d",staRsp->u.rnti);
       return RFAILED;
    }
    /* Update Bo in ueCb */
@@ -5341,8 +5325,7 @@ S16 rgSCHUtlHndlCcchBoUpdt(RgSchCellCb *cell,RgInfCmnBoRpt *boRpt)
       return (rgSCHUtlUpdtBo(cell, boRpt));
 #else
       /* Handle RaCb fetch failure */
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-                     "Invalid RNTI:%d to fetch raCb",boRpt->u.rnti);
+      DU_LOG("\nERROR  -->  SCH : Invalid RNTI:%d to fetch raCb",boRpt->u.rnti);
       return RFAILED;
 #endif
    }
@@ -5377,7 +5360,7 @@ S16 rgSCHUtlHndlCcchBoUpdt(RgSchCellCb *cell,RgInfCmnBoRpt *boRpt)
          if ((ueCb = rgSCHDbmGetUeCb(cell, boRpt->u.rnti)) == NULLP)
          {
             /* Handle Ue fetch failure */
-            RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Invalid RNTI:%d",boRpt->u.rnti);
+            DU_LOG("\nERROR  -->  SCH : Invalid RNTI:%d",boRpt->u.rnti);
             return RFAILED;
          }
          /* Update Bo in ueCb */
@@ -5466,8 +5449,7 @@ S16 rgSCHUtlHndlBcchPcchBoUpdt(RgSchCellCb *cell,RgInfCmnBoRpt *boUpdt)
    dlLc = rgSCHDbmGetBcchOnBch(cell);
    if (dlLc == NULLP)
    {
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-      "No Logical Channel dlLc is NULLP for RNTI:%d LCID:%d",boUpdt->u.rnti,boUpdt->lcId);
+      DU_LOG("\nERROR  -->  SCH : No Logical Channel dlLc is NULLP for RNTI:%d LCID:%d",boUpdt->u.rnti,boUpdt->lcId);
       return RFAILED;
    }
    if (boUpdt->lcId != dlLc->lcId)
@@ -5479,7 +5461,7 @@ S16 rgSCHUtlHndlBcchPcchBoUpdt(RgSchCellCb *cell,RgInfCmnBoRpt *boUpdt)
          if (rgSCHUtlGetAllwdCchTbSz(boUpdt->bo*8, &nPrb, &mcs) 
                != (boUpdt->bo*8))
          {
-            RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId,"[%ld]BO: does not match any "
+            DU_LOG("\nERROR  -->  SCH : [%d]BO: does not match any "
                   "valid TB Size RNTI:%d LCID:%d", boUpdt->bo,boUpdt->u.rnti,boUpdt->lcId);
             return RFAILED;
          }
@@ -5492,14 +5474,13 @@ S16 rgSCHUtlHndlBcchPcchBoUpdt(RgSchCellCb *cell,RgInfCmnBoRpt *boUpdt)
    if ((dlLc = rgSCHDbmGetCmnLcCb(cell, boUpdt->lcId)) == NULLP)
    {
       /* Handle lcCb fetch failure */
-      RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
-                     "LCID:%d Invalid for RNTI:%d",boUpdt->lcId,boUpdt->u.rnti);
+      DU_LOG("\nERROR  -->  SCH : LCID:%d Invalid for RNTI:%d",boUpdt->lcId,boUpdt->u.rnti);
    }
 
    if (((rgSCHUtlAllocSBuf(inst, (Data **)(&boRpt), sizeof(RgSchClcBoRpt))) ==RFAILED) ||
        (!boRpt))
    {
-      RLOG_ARG3(L_ERROR,DBG_CELLID,cell->cellId, "Allocation of common bo %dreport "
+      DU_LOG("\nERROR  -->  SCH : Allocation of common bo %dreport "
          "failed  RNTI:%d LCID:%d", boUpdt->bo,boUpdt->u.rnti,boUpdt->lcId);
       return RFAILED;
    }
@@ -5554,7 +5535,7 @@ S16 rgSCHUtlRgrBndCfm(Inst instId,SuId suId,uint8_t status)
    ret = RgUiRgrBndCfm(&rgSchCb[instId].rgrSap[suId].sapCfg.sapPst, rgSchCb[instId].rgrSap[suId].sapCfg.suId, status);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"rgSCHUtlRgrBndCfm: RgUiRgrBndCfm Failed ");
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrBndCfm: RgUiRgrBndCfm Failed ");
       return (ret);
    }
    return (ret);
@@ -5584,7 +5565,7 @@ S16 rgSCHUtlRgmBndCfm(Inst instId,SuId suId,uint8_t status)
    ret = RgUiRgmBndCfm(&rgSchCb[instId].rgmSap[suId].sapCfg.sapPst, rgSchCb[instId].rgmSap[suId].sapCfg.suId, status);
    if (ret != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"rgSCHUtlRgmBndCfm: RgUiRgrBndCfm Failed ");
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgmBndCfm: RgUiRgrBndCfm Failed ");
       return (ret);
    }
    return (ret);
@@ -5612,7 +5593,6 @@ S16 rgSCHUtlRgmBndCfm(Inst instId,SuId suId,uint8_t status)
 S16 schSendCfgCfm(Region reg,Pool pool,RgrCfgTransId transId,uint8_t status)
 {
    Pst cfmPst;
-   Inst inst = 0;
 
    memset((&cfmPst), 0, sizeof(Pst));
 
@@ -5628,8 +5608,7 @@ S16 schSendCfgCfm(Region reg,Pool pool,RgrCfgTransId transId,uint8_t status)
 
    if(RgUiRgrCfgCfm(&cfmPst,transId, status) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"schSendCfgCfm: RgUiRgrCfgCfm Failed");
-      printf("\nschSendCfgCfm: RgUiRgrCfgCfm Failed ");
+      DU_LOG("\nERROR  -->  SCH : schSendCfgCfm: RgUiRgrCfgCfm Failed ");
       return RFAILED;
    }
    return ROK;
@@ -5663,8 +5642,7 @@ S16 rgSCHUtlRgrTtiInd(RgSchCellCb *cell,RgrTtiIndInfo *rgrTti)
    rgrSap = cell->rgrSap;
    if (rgrSap->sapSta.sapState != LRG_BND)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "rgSCHUtlRgrTtiInd() Upper SAP not bound (%d) ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrTtiInd() Upper SAP not bound (%d) ",
                rgrSap->sapSta.sapState);
       return RFAILED;
    }
@@ -5720,7 +5698,7 @@ RgSchErrInfo     *err
    raCb = rgSCHDbmGetRaCb (cellCb, rnti);
    if (raCb == NULLP)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId, "RNTI:%d Received MSG3, unable to "
+      DU_LOG("\nERROR  -->  SCH : RNTI:%d Received MSG3, unable to "
          "find raCb",rnti);
       return RFAILED;
    }
@@ -5730,7 +5708,7 @@ RgSchErrInfo     *err
    ret = rgSCHRamProcMsg3 (cellCb, ueCb, raCb, pdu, err);
    if (ret != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,"Processing failed in the RAM "
+      DU_LOG("\nERROR  -->  SCH : Processing failed in the RAM "
          "RNTI:%d ",rnti);
       return (ret);
    }
@@ -5822,15 +5800,13 @@ S16 rgSCHUtlTfuGrpPwrCntrlReq(Inst inst,S16 sapId,TfuGrpPwrCntrlReqInfo *grpPwrC
    tfuSap = &(rgSchCb[inst].tfuSap[sapId]);
    if (tfuSap->sapSta.sapState != LRG_BND)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,grpPwrCntrlReq->cellId,
-                     "rgSCHUtlTfuGrpPwrCntrlReq() Lower SAP not bound (%d) ",tfuSap->sapSta.sapState);
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlTfuGrpPwrCntrlReq() Lower SAP not bound (%d) ",tfuSap->sapSta.sapState);
       return RFAILED;
    }
    memcpy (&pst, &(tfuSap->sapCfg.sapPst), sizeof(Pst));
    if((ret = RgLiTfuGrpPwrCntrlReq (&pst, tfuSap->sapCfg.spId, grpPwrCntrlReq)) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_CELLID,grpPwrCntrlReq->cellId,
-                     "rgSCHUtlTfuGrpPwrCntrlReq() Call to RgLiTfuGrpPwrCntrlReq() failed");
+       DU_LOG("\nERROR  -->  SCH : rgSCHUtlTfuGrpPwrCntrlReq() Call to RgLiTfuGrpPwrCntrlReq() failed");
    }
    return (ret);
 }  /* rgSCHUtlTfuGrpPwrCntrlReq */
@@ -5901,7 +5877,7 @@ S16 rgSCHUtlValidateTfuSap(Inst  inst,SuId  suId)
 
    if(suId >= rgSchCb[inst].numSaps)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Incorrect SuId");
+      DU_LOG("\nERROR  -->  SCH : Incorrect SuId");
       return RFAILED;
    }
    tfuSap = &(rgSchCb[inst].tfuSap[suId]);
@@ -5909,13 +5885,13 @@ S16 rgSCHUtlValidateTfuSap(Inst  inst,SuId  suId)
    /* First lets check the suId */
    if( suId != tfuSap->sapCfg.suId)
    {
-      RLOG_ARG2(L_ERROR,DBG_INSTID,inst,"Incorrect SuId. Configured (%d) Recieved (%d)",
+      DU_LOG("\nERROR  -->  SCH : Incorrect SuId. Configured (%d) Recieved (%d)",
             tfuSap->sapCfg.suId, suId);
       return RFAILED;
    }
    if (tfuSap->sapSta.sapState != LRG_BND)
    {
-      RLOG_ARG1(L_ERROR,DBG_INSTID,inst,"Lower SAP not enabled SuId (%d)",
+      DU_LOG("\nERROR  -->  SCH : Lower SAP not enabled SuId (%d)",
             tfuSap->sapCfg.suId);
       return RFAILED;
    }
@@ -5948,8 +5924,7 @@ S16 rgSCHUtlAllocEventMem(Inst inst,Ptr *memPtr,Size memSize)
 #if (ERRCLASS & ERRCLS_DEBUG)
    if (memSize<= 0)
    {
-      RGSCHLOGERROR(inst, ERRCLS_INT_PAR, ERG022, memSize,
-                   "rgAllocEventMem(): memSize invalid\n");
+      DU_LOG("\nERROR  -->  SCH : rgAllocEventMem(): memSize invalid\n");
       return  (RFAILED);
    }
 #endif /* ERRCLASS & ERRCLS_DEBUG */
@@ -5965,7 +5940,7 @@ S16 rgSCHUtlAllocEventMem(Inst inst,Ptr *memPtr,Size memSize)
    if(ROK != cmAllocEvnt(memSize, TFU_MAX_MEMBLK_SIZE, &sMem, memPtr))
 #endif /* */
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"cmAllocEvnt Failed.");
+      DU_LOG("\nERROR  -->  SCH : cmAllocEvnt Failed.");
       return RFAILED;
    }
    /*stoping Task*/
@@ -6846,10 +6821,10 @@ Void rgSCHUtlUlAllocRls(RgSchUlSf *sf,RgSchUlAlloc *alloc)
    else
    {
 
-      printf("\nError: allocDb->count is ZERO ====\n");
+      DU_LOG("\nERROR  -->  SCH :  allocDb->count is ZERO ");
    }
 
-   //printf("\nallocDb->count:%u\n",allocDb->count);
+   //DU_LOG("\nallocDb->count:%u\n",allocDb->count);
 
    return;
 }
@@ -7789,7 +7764,7 @@ S16 rgSCHUtlRgrSiCfgCfm(Inst instId,SpId  spId,RgrCfgTransId transId,uint8_t sta
                     rgSchCb[instId].rgrSap[spId].sapCfg.suId,
                     transId, status) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"rgSCHUtlRgrSiCfgCfm: "
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrSiCfgCfm: "
                 "RgUiRgrSiCfgCfm Failed ");
       return RFAILED;
    }
@@ -7827,7 +7802,7 @@ S16 rgSCHUtlRgrWarningSiCfgCfm(Inst instId,SpId spId,uint8_t siId,RgrCfgTransId
                     rgSchCb[instId].rgrSap[spId].sapCfg.suId, 
                     transId, siId, status) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"rgSCHUtlRgrSiCfgCfm: "
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrSiCfgCfm: "
                 "RgUiRgrSiCfgCfm Failed ");
       return RFAILED;
    }
@@ -7912,9 +7887,6 @@ CmLListCp       *ulInActvLst
    RgSchDrxDlHqProcCb    *drxHq;
    RgSchDRXCellCb        *drxCell = cellCb->drxCb;
    RgSchDrxUeCb          *drxUe;
-#ifdef DEBUGP
-   Inst                  inst = cellCb->instIdx;
-#endif
    uint8_t                    cellIdx = ueCb->cellIdToCellIdxMap[RG_SCH_CELLINDEX(dlHq->hqE->cell)];
    uint32_t                   dlInactvMask;
    uint32_t                   ulInactvMask;
@@ -7941,9 +7913,9 @@ CmLListCp       *ulInActvLst
             /* This condition should never occur */      
             if(drxHq->reTxIndx >= RG_SCH_MAX_DRXQ_SIZE)
             {
-               RGSCHDBGERRNEW(inst,(rgSchPBuf(inst),"[%d]UE:DRXUE RETX IDX[%d]"
+                DU_LOG("\nERROR  -->  SCH : [%d]UE:DRXUE RETX IDX[%d]"
                         "is out of bound,dlInactvMask %d,procId %d\n", ueCb->ueId,
-                        drxHq->reTxIndx,ueCb->dl.dlInactvMask, dlHq->procId));
+                        drxHq->reTxIndx,ueCb->dl.dlInactvMask, dlHq->procId);
             }
 
             drxUe->drxDlInactvMaskPerCell[cellIdx]  |= (RG_SCH_DRX_DLHQ_BITMASK << dlHq->procId);
@@ -8068,7 +8040,7 @@ S16 rgSCHUtlFillSndStaInd(RgSchCellCb *cell,RgSchUeCb *ue,RgrStaIndInfo *staInfo
    /* Call utility function (rgSCHUtlRgrStaInd) to send rpts to RRM */
    if(rgSCHUtlRgrStaInd(cell, staInfo) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Could not send "
+      DU_LOG("\nERROR  -->  SCH : Could not send "
          "CQI reports for RNTI:%d",ue->ueId);
       return RFAILED;
    }
@@ -8104,8 +8076,7 @@ S16 rgSCHUtlRgrStaInd(RgSchCellCb *cell,RgrStaIndInfo *rgrSta)
    rgrSap = cell->rgrSap;
    if (rgrSap->sapSta.sapState != LRG_BND)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "rgSCHUtlRgrStaInd() Upper SAP not bound (%d) ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrStaInd() Upper SAP not bound (%d) ",
                rgrSap->sapSta.sapState);
       return RFAILED;
    }
@@ -8184,8 +8155,7 @@ S16 rgSCHUtlRgrLoadInfInd(RgSchCellCb *cell,RgrLoadInfIndInfo *rgrLoadInf)
    rgrSap = cell->rgrSap;
    if (rgrSap->sapSta.sapState != LRG_BND)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "rgSCHUtlRgrLoadInfInd() Upper SAP not bound (%d) ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrLoadInfInd() Upper SAP not bound (%d) ",
                rgrSap->sapSta.sapState);
       return RFAILED;
    }
@@ -8263,7 +8233,7 @@ S16 rgSCHUtlFillSndUeStaInd(RgSchCellCb *cell,RgSchUeCb  *ue,RgrUeStaIndInfo  *u
    /* Call utility function (rgSCHUtlRgrUeStaInd) to send rpts to RRM */
    if(rgSCHUtlRgrUeStaInd(cell, ueStaInfo) != ROK)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Could not send "
+      DU_LOG("\nERROR  -->  SCH : Could not send "
          "UE Sta reports CRNTI:%d",ue->ueId);
       return RFAILED;
    }
@@ -8299,8 +8269,7 @@ S16 rgSCHUtlRgrUeStaInd(RgSchCellCb *cell,RgrUeStaIndInfo *rgrUeSta)
    rgrSap = cell->rgrSap;
    if (rgrSap->sapSta.sapState != LRG_BND)
    {
-      RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
-               "rgSCHUtlRgrUeStaInd() Upper SAP not bound (%d) ",
+      DU_LOG("\nERROR  -->  SCH : rgSCHUtlRgrUeStaInd() Upper SAP not bound (%d) ",
                rgrSap->sapSta.sapState);
       return RFAILED;
    }
@@ -8406,10 +8375,10 @@ S16 rgSCHUtlUpdAvgPrbUsage(RgSchCellCb  *cell)
 #ifdef DBG_MAC_RRM_PRB_PRINT
    if((count % reprotForEvery20Sec) == 0 )
    {
-      printf("\n====================================================================");
-      printf("\nMAC:  QCI-1[DL:UL]  | QCI-2[DL:UL]  | QCI-3[DL:UL]  | QCI-4[DL:UL] \n");
-      printf("======================================================================\n");
-      printf(" [%d: %d]\t | [%d: %d]\t | [%d: %d]\t| [%d: %d]\t\n", 
+      DU_LOG("\n====================================================================");
+      DU_LOG("\nINFO  -->  SCH : QCI-1[DL:UL]  | QCI-2[DL:UL]  | QCI-3[DL:UL]  | QCI-4[DL:UL] \n");
+      DU_LOG("======================================================================\n");
+      DU_LOG(" [%d: %d]\t | [%d: %d]\t | [%d: %d]\t| [%d: %d]\t\n", 
                  prbRprtInd->stQciPrbRpts[0].bAvgPrbDlUsage,
                  prbRprtInd->stQciPrbRpts[0].bAvgPrbUlUsage,
                  prbRprtInd->stQciPrbRpts[1].bAvgPrbDlUsage,
@@ -9050,7 +9019,7 @@ Void rgSCHUtlSndUeSCellDel2Mac(RgSchCellCb *cell,CmLteRnti rnti)
    Inst         inst = cell->instIdx;
    RgInfRlsRnti rntiInfo;
 
-   RGSCHDBGINFONEW(inst,(rgSchPBuf(inst),"RNTI Release IND for UE(%d)\n", rnti));
+   DU_LOG("\nINFO  -->  SCH : RNTI Release IND for UE(%d)\n", rnti);
    /* Copy the info to rntiInfo */
    rntiInfo.cellId = cell->cellId;
    rntiInfo.rnti   = rnti;
@@ -9568,7 +9537,7 @@ Void rgSCHUtlCpuOvrLdAdjItbsCap( RgSchCellCb *cell)
          }
       }
 #ifdef CPU_OL_DBG_PRINTS
-      printf("\n DL CPU OL ADJ = %lu, %lu, %d\n", cell->measurements.dlTpt, cell->cpuOvrLdCntrl.tgtDlTpt, 
+      DU_LOG("\nINFO  -->  SCH :  DL CPU OL ADJ = %lu, %lu, %d\n", cell->measurements.dlTpt, cell->cpuOvrLdCntrl.tgtDlTpt, 
             cell->thresholds.maxDlItbs);
 #endif
    }
@@ -9596,7 +9565,7 @@ Void rgSCHUtlCpuOvrLdAdjItbsCap( RgSchCellCb *cell)
          }
       }
 #ifdef CPU_OL_DBG_PRINTS
-      printf("\n UL CPU OL ADJ = %lu, %lu, %d\n", cell->measurements.ulTpt, cell->cpuOvrLdCntrl.tgtUlTpt, 
+      DU_LOG("\nDEBUG  -->  SCH :  UL CPU OL ADJ = %lu, %lu, %d\n", cell->measurements.ulTpt, cell->cpuOvrLdCntrl.tgtUlTpt, 
             cell->thresholds.maxUlItbs);
 #endif
    }
@@ -9656,15 +9625,15 @@ static Void rgSCHUtlChkAndUpdNumUePerTtiCpuOvInstr(RgSchCellCb *cell,uint8_t crn
          else
          {
 #ifdef CPU_OL_DBG_PRINTS
-            printf("CPU_OL_TTI__ERROR\n");
+            DU_LOG("\nERROR  -->  SCH : CPU_OL_TTI__ERROR\n");
 #endif
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid CPU OL");
+            DU_LOG("\nERROR  -->  SCH : Invalid CPU OL");
          }
       }
 #ifdef CPU_OL_DBG_PRINTS
-      printf("dlNxtIndxDecNumUeTti = %d\n", cpuInstr->dlNxtIndxDecNumUeTti);
+     DU_LOG("\nDEBUG  -->  SCH : dlNxtIndxDecNumUeTti = %d\n", cpuInstr->dlNxtIndxDecNumUeTti);
 #endif
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,"dlNxtIndxDecNumUeTti = %d",
+      DU_LOG("\nDEBUG  -->  SCH : dlNxtIndxDecNumUeTti = %d",
          cpuInstr->dlNxtIndxDecNumUeTti);
    }
    else if ( crntCpuOvrLdIns &  RGR_CPU_OVRLD_DL_INC_NUM_UE_PER_TTI )
@@ -9680,15 +9649,15 @@ static Void rgSCHUtlChkAndUpdNumUePerTtiCpuOvInstr(RgSchCellCb *cell,uint8_t crn
          else
          {
 #ifdef CPU_OL_DBG_PRINTS
-            printf("CPU_OL_TTI__ERROR\n");
+             DU_LOG("\nERROR  -->  SCH : CPU_OL_TTI__ERROR\n");
 #endif
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid CPU OL");
+             DU_LOG("\nERROR  -->  SCH : Invalid CPU OL");
          }
       }
 #ifdef CPU_OL_DBG_PRINTS
-      printf("dlNxtIndxDecNumUeTti = %d\n", cpuInstr->dlNxtIndxDecNumUeTti);
+      DU_LOG("\nDEBUG  -->  SCH : dlNxtIndxDecNumUeTti = %d\n", cpuInstr->dlNxtIndxDecNumUeTti);
 #endif
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,"dlNxtIndxDecNumUeTti = %d",
+      DU_LOG("\nERROR  -->  SCH : dlNxtIndxDecNumUeTti = %d",
          cpuInstr->dlNxtIndxDecNumUeTti);
    }
    /* Check for UL CPU commands */
@@ -9706,15 +9675,15 @@ static Void rgSCHUtlChkAndUpdNumUePerTtiCpuOvInstr(RgSchCellCb *cell,uint8_t crn
          else
          {
 #ifdef CPU_OL_DBG_PRINTS
-            printf("CPU_OL_TTI__ERROR\n");
+            DU_LOG("\nERROR  -->  SCH : CPU_OL_TTI__ERROR\n");
 #endif
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid CPU OL");
+            DU_LOG("\nERROR  -->  SCH : Invalid CPU OL");
          }
       }
 #ifdef CPU_OL_DBG_PRINTS
-      printf("ulNxtIndxDecNumUeTti = %d\n", cpuInstr->ulNxtIndxDecNumUeTti);
+      DU_LOG("\nDEBUG  -->  SCH : ulNxtIndxDecNumUeTti = %d\n", cpuInstr->ulNxtIndxDecNumUeTti);
 #endif
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,"dlNxtIndxDecNumUeTti = %d",
+      DU_LOG("\nDEBUG  -->  SCH : dlNxtIndxDecNumUeTti = %d",
          cpuInstr->dlNxtIndxDecNumUeTti);
    }
    else if ( crntCpuOvrLdIns &  RGR_CPU_OVRLD_UL_INC_NUM_UE_PER_TTI )
@@ -9730,31 +9699,31 @@ static Void rgSCHUtlChkAndUpdNumUePerTtiCpuOvInstr(RgSchCellCb *cell,uint8_t crn
          else
          {
 #ifdef CPU_OL_DBG_PRINTS
-            printf("CPU_OL_TTI__ERROR\n");
+            DU_LOG("\nERROR  -->  SCH : CPU_OL_TTI__ERROR\n");
 #endif
-            RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Invalid CPU OL");
+            DU_LOG("\nERROR  -->  SCH : Invalid CPU OL");
          }
       }
 #ifdef CPU_OL_DBG_PRINTS
-      printf("ulNxtIndxDecNumUeTti = %d\n", cpuInstr->ulNxtIndxDecNumUeTti);
+      DU_LOG("\nDEBUG  -->  SCH : ulNxtIndxDecNumUeTti = %d\n", cpuInstr->ulNxtIndxDecNumUeTti);
 #endif
-      RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,"dlNxtIndxDecNumUeTti = %d",
+      DU_LOG("\nDEBUG  -->  SCH : dlNxtIndxDecNumUeTti = %d",
          cpuInstr->dlNxtIndxDecNumUeTti);
    }
 #ifdef CPU_OL_DBG_PRINTS 
  /* TODO: Debug Information - Shall be moved under CPU_OL_DBG_PRINTS */
-   printf("maxUeNewDlTxPerTti = %d, maxUeNewUlTxPerTti = %d\n", maxUeNewDlTxPerTti, maxUeNewUlTxPerTti);
-   printf("DL Sf numUePerTti:");
+   DU_LOG("\nDEBUG  -->  SCH : maxUeNewDlTxPerTti = %d, maxUeNewUlTxPerTti = %d\n", maxUeNewDlTxPerTti, maxUeNewUlTxPerTti);
+   DU_LOG("\nINFO  -->  SCH : DL Sf numUePerTti:");
    for ( idx = 0; idx < 10 ; idx ++ )
    {
-      printf("  %d", cpuInstr->maxUeNewTxPerTti[idx]);  
+      DU_LOG("  %d", cpuInstr->maxUeNewTxPerTti[idx]);  
    }
-   printf("\nUL Sf numUePerTti:");
+   DU_LOG("\nINFO  -->  SCH : UL Sf numUePerTti:");
    for ( idx = 0; idx < 10 ; idx ++ )
    {
-      printf("  %d", cpuInstr->maxUeNewRxPerTti[idx]);  
+      DU_LOG("  %d", cpuInstr->maxUeNewRxPerTti[idx]);  
    }
-   printf("\n");
+   DU_LOG("\n");
 #endif
 
    return;
@@ -9786,17 +9755,17 @@ S16 rgSCHUtlResetCpuOvrLdState(RgSchCellCb *cell,uint8_t crntCpuOvrLdIns)
    uint8_t idx;
 
 #ifdef CPU_OL_DBG_PRINTS
-   printf("\n CPU OVR LD Ins Rcvd = %d\n", (int)crntCpuOvrLdIns);
+   DU_LOG("\nDEBUG  -->  SCH : CPU OVR LD Ins Rcvd = %d\n", (int)crntCpuOvrLdIns);
 #endif
-   RLOG_ARG0(L_INFO,DBG_CELLID,cell->cellId,"CPU OVR LD Ins Rcvd");
+   DU_LOG("\nINFO  -->  SCH : CPU OVR LD Ins Rcvd");
 
    if ( RGR_CPU_OVRLD_RESET == crntCpuOvrLdIns )
    {
       /* The CPU OL instruction received with RESET (0), hence reset it */
 #ifdef CPU_OL_DBG_PRINTS
-      printf("rgSCHUtlResetCpuOvrLdState: RESET CPU OL instr\n");
+      DU_LOG("\nDEBUG  -->  SCH : rgSCHUtlResetCpuOvrLdState: RESET CPU OL instr\n");
 #endif
-      RLOG_ARG0(L_INFO,DBG_CELLID,cell->cellId,"RESET CPU OVR LD");
+      DU_LOG("\nINFO  -->  SCH : RESET CPU OVR LD");
       cell->cpuOvrLdCntrl.cpuOvrLdIns = 0;
       /* Reset the max UL and DL itbs to 26 */
       cell->thresholds.maxUlItbs = RG_SCH_UL_MAX_ITBS;
@@ -9861,10 +9830,10 @@ S16 rgSCHUtlResetCpuOvrLdState(RgSchCellCb *cell,uint8_t crntCpuOvrLdIns)
          cell->cpuOvrLdCntrl.tgtUlTpt = cell->measurements.ulTpt + \
             (cell->measurements.ulTpt * 2 )/100;
       }
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,"CPU OVR LD UL Reset to "
-            "%d, %lu, %lu", (int)crntUlCpuOL, cell->cpuOvrLdCntrl.tgtUlTpt,cell->measurements.ulTpt);
+      DU_LOG("\nDEBUG  -->  SCH : CPU OVR LD UL Reset to "
+            "%d, %u, %u", (int)crntUlCpuOL, cell->cpuOvrLdCntrl.tgtUlTpt,cell->measurements.ulTpt);
 #ifdef CPU_OL_DBG_PRINTS
-      printf("\n CPU OVR LD UL Reset to= %d, %lu, %lu\n", (int)crntUlCpuOL, cell->cpuOvrLdCntrl.tgtUlTpt,
+      DU_LOG("\nDEBUG  -->  SCH : CPU OVR LD UL Reset to= %d, %u, %u\n", (int)crntUlCpuOL, cell->cpuOvrLdCntrl.tgtUlTpt,
                              cell->measurements.ulTpt);
 #endif
    }
@@ -9881,11 +9850,11 @@ S16 rgSCHUtlResetCpuOvrLdState(RgSchCellCb *cell,uint8_t crntCpuOvrLdIns)
          cell->cpuOvrLdCntrl.tgtDlTpt = cell->measurements.dlTpt + \
             (cell->measurements.dlTpt * 1 )/100;
       }
-      RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,"CPU OVR LD DL Reset to "
-            "%d, %lu, %lu", (int)crntDlCpuOL, cell->cpuOvrLdCntrl.tgtDlTpt,cell->measurements.dlTpt);
+      DU_LOG("\nDEBUG  -->  SCH : CPU OVR LD DL Reset to "
+            "%d, %u, %u", (int)crntDlCpuOL, cell->cpuOvrLdCntrl.tgtDlTpt,cell->measurements.dlTpt);
 
 #ifdef CPU_OL_DBG_PRINTS
-      printf("\n CPU OVR LD DL Reset to= %d, %lu, %lu\n", (int)crntDlCpuOL, cell->cpuOvrLdCntrl.tgtDlTpt,
+      DU_LOG("\nDEBUG  -->  SCH :  CPU OVR LD DL Reset to= %d, %lu, %lu\n", (int)crntDlCpuOL, cell->cpuOvrLdCntrl.tgtDlTpt,
                              cell->measurements.dlTpt);
 #endif
    }
@@ -9920,13 +9889,13 @@ RgSchIotRes *iotRes
       cp = &emtcUe->dlResLst;
    }else
    {
-      RLOG0(L_INFO, "*****restype mismatch");
+      DU_LOG("\nINFO  -->  SCH : *****restype mismatch");
    }
    if(cp != NULLP )
    { 
       if(cp->count == 0)
       {
-         RLOG0(L_INFO,"****error count*****\n");
+         DU_LOG("\nINFO  -->  SCH : ****error count*****\n");
          return ROK;
       }
    }
index c4cc663..16495af 100644 (file)
@@ -123,7 +123,7 @@ uint8_t SchInstCfg(RgCfg *cfg, Inst  dInst)
    uint16_t ret = LCM_REASON_NOT_APPL;
    Inst     inst = (dInst - SCH_INST_START);
 
-   printf("\nEntered SchInstCfg()");
+   DU_LOG("\nDEBUG  -->  SCH : Entered SchInstCfg()");
    /* Check if Instance Configuration is done already */
    if (schCb[inst].schInit.cfgDone == TRUE)
    {
@@ -161,14 +161,14 @@ uint8_t SchInstCfg(RgCfg *cfg, Inst  dInst)
    if (ODU_REG_TMR_MT(schCb[inst].schInit.ent, dInst,
            (int)schCb[inst].genCfg.tmrRes, schActvTmr) != ROK)
    {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "SchInstCfg(): Failed to "
+      DU_LOG("\nERROR  -->  SCH : SchInstCfg(): Failed to "
            "register timer.");
       return (LCM_REASON_MEM_NOAVAIL);
    }   
 #endif               
    /* Set Config done in TskInit */
    schCb[inst].schInit.cfgDone = TRUE;
-   printf("\nScheduler gen config done");
+   DU_LOG("\nINFO  -->  SCH : Scheduler gen config done");
 
    return ret;
 }
@@ -205,7 +205,7 @@ uint8_t SchProcGenCfgReq(Pst *pst, RgMngmt *cfg)
            "pst->dstInst=%d SCH_INST_START=%d", pst->dstInst,SCH_INST_START); 
       return ROK;
    }
-   printf("\nSCH : Received scheduler gen config");
+   DU_LOG("\nINFO -->  SCH : Received scheduler gen config");
    /* Fill the post structure for sending the confirmation */
    memset(&cfmPst, 0 , sizeof(Pst));
    SchFillCfmPst(pst, &cfmPst, cfg);
@@ -327,9 +327,196 @@ uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd)
    return ROK;
 }
 
+#ifdef NR_TDD
+/**
+ *@brief Returns TDD periodicity in micro seconds
+ *
+ * @details
+ * 
+ * Function : schGetPeriodicityInMsec 
+ * 
+ * This API retunrs TDD periodicity in micro seconds
+ * 
+ * @param[in] DlUlTxPeriodicity 
+ * @return  periodicityInMsec
+ * **/
+
+uint16_t schGetPeriodicityInMsec(DlUlTxPeriodicity tddPeriod)
+{
+   uint16_t  periodicityInMsec = 0;
+   switch(tddPeriod)
+   {
+      case TX_PRDCTY_MS_0P5:
+      {
+         periodicityInMsec = 500;
+         break;
+      }
+      case TX_PRDCTY_MS_0P625:
+      {
+         periodicityInMsec = 625;
+         break;
+      }
+      case TX_PRDCTY_MS_1:
+      {
+         periodicityInMsec = 1000;
+         break;
+      }
+      case TX_PRDCTY_MS_1P25:
+      {
+         periodicityInMsec = 1250;
+         break;
+      }
+      case TX_PRDCTY_MS_2:
+      {
+         periodicityInMsec = 2000;
+         break;
+      }
+      case TX_PRDCTY_MS_2P5:
+      {
+         periodicityInMsec = 2500;
+         break;
+      }
+      case TX_PRDCTY_MS_5:
+      {
+         periodicityInMsec = 5000;
+         break;
+      }
+      case TX_PRDCTY_MS_10:
+      {
+         periodicityInMsec = 10000;
+         break;
+      }
+      default:
+      {
+        DU_LOG("\nERROR  -->  SCH : Invalid DlUlTxPeriodicity:%d", tddPeriod);
+      }
+   }
+
+   return periodicityInMsec;
+}
+
 
 /**
- * @brief inti cellCb based on cellCfg
+ * @brief init TDD slot config 
+ *
+ * @details
+ *
+ *     Function : schInitTddSlotCfg 
+ *      
+ *      This API is invoked after receiving schCellCfg
+ *           
+ *  @param[in]  schCellCb *cell
+ *  @param[in]  SchCellCfg *schCellCfg
+ *  @return  int
+ *      -# ROK 
+ *      -# RFAILED 
+ **/
+void schInitTddSlotCfg(SchCellCb *cell, SchCellCfg *schCellCfg)
+{
+   uint16_t periodicityInMicroSec = 0;
+   uint32_t slotBitPos, symbBitPos, bitMask;
+   int8_t slotIdx, symbIdx;
+
+   periodicityInMicroSec = schGetPeriodicityInMsec(schCellCfg->tddCfg.tddPeriod);
+   schCellCfg->numerology = 1; //TODO: Remove this
+   cell->numSlotsInPeriodicity = (periodicityInMicroSec * pow(2, schCellCfg->numerology))/1000;
+cell->slotFrmtBitMap = 0;
+   cell->symbFrmtBitMap = 0;
+   slotBitPos = (cell->numSlotsInPeriodicity*2)-1; /* considering 2 bits to represent a slot */
+   symbBitPos = (MAX_SYMB_PER_SLOT*2)-1; /* considering 2 bits to represent a symbol */
+   for(slotIdx = cell->numSlotsInPeriodicity-1; slotIdx >= 0; slotIdx--)
+   {
+      symbIdx = 0;
+      /* If the first and last symbol are the same, the entire slot is the same type */
+      if((schCellCfg->tddCfg.slotCfg[slotIdx][symbIdx] == schCellCfg->tddCfg.slotCfg[slotIdx][MAX_SYMB_PER_SLOT-1]) &&
+              schCellCfg->tddCfg.slotCfg[slotIdx][symbIdx] != FLEXI_SLOT)
+      {
+         switch(schCellCfg->tddCfg.slotCfg[slotIdx][symbIdx])
+         {
+            case DL_SLOT:
+            {
+               /*BitMap to be set to 00 */
+               bitMask = 1<<slotBitPos;
+               cell->slotFrmtBitMap = (cell->slotFrmtBitMap & ~(bitMask)) | ((0<<slotBitPos) & bitMask);
+               slotBitPos--;
+               bitMask = 1<<slotBitPos;
+               cell->slotFrmtBitMap = (cell->slotFrmtBitMap & ~(bitMask)) | ((0<<slotBitPos) & bitMask);
+               slotBitPos--;
+               break;
+            }
+            case UL_SLOT:
+            {
+               /*BitMap to be set to 01 */
+               bitMask = 1<<slotBitPos;
+               cell->slotFrmtBitMap = (cell->slotFrmtBitMap & ~(bitMask)) | ((0<<slotBitPos) & bitMask);
+               slotBitPos--;
+               bitMask = 1<<slotBitPos;
+               cell->slotFrmtBitMap = (cell->slotFrmtBitMap & ~(bitMask)) | ((1<<slotBitPos) & bitMask);
+               slotBitPos--;
+               break;
+            }
+            default:
+               DU_LOG("\nERROR  -->  SCH : Invalid slot Config in schInitTddSlotCfg");
+           }
+         continue;
+      }
+      /* slot config is flexible. First set slotBitMap to 10 */
+      bitMask = 1<<slotBitPos;
+      cell->slotFrmtBitMap = (cell->slotFrmtBitMap & ~(bitMask)) | ((1<<slotBitPos) & bitMask);
+      slotBitPos--;
+      bitMask = 1<<slotBitPos;
+      cell->slotFrmtBitMap = (cell->slotFrmtBitMap & ~(bitMask)) | ((0<<slotBitPos) & bitMask);
+      slotBitPos--;
+      /* Now set symbol bitmap */ 
+      for(symbIdx = MAX_SYMB_PER_SLOT-1; symbIdx >= 0; symbIdx--)
+      {
+         switch(schCellCfg->tddCfg.slotCfg[slotIdx][symbIdx])
+         {
+            case DL_SLOT:
+            {
+               /*symbol BitMap to be set to 00 */
+               bitMask = 1<<symbBitPos;
+               cell->symbFrmtBitMap = (cell->symbFrmtBitMap & ~(bitMask)) | ((0<<symbBitPos) & bitMask);
+               symbBitPos--;
+               bitMask = 1<<symbBitPos;
+               cell->symbFrmtBitMap = (cell->symbFrmtBitMap & ~(bitMask)) | ((0<<symbBitPos) & bitMask);
+               symbBitPos--;
+               break;
+            }
+            case UL_SLOT:
+            {
+               /*symbol BitMap to be set to 01 */
+               bitMask = 1<<symbBitPos;
+               cell->symbFrmtBitMap = (cell->symbFrmtBitMap & ~(bitMask)) | ((0<<symbBitPos) & bitMask);
+               symbBitPos--;
+               bitMask = 1<<symbBitPos;
+               cell->symbFrmtBitMap = (cell->symbFrmtBitMap & ~(bitMask)) | ((1<<symbBitPos) & bitMask);
+               symbBitPos--;
+               break;
+            }
+            case FLEXI_SLOT:
+            {
+               /*symbol BitMap to be set to 10 */
+               bitMask = 1<<symbBitPos;
+               cell->symbFrmtBitMap = (cell->symbFrmtBitMap & ~(bitMask)) | ((1<<symbBitPos) & bitMask);
+               symbBitPos--;
+               bitMask = 1<<symbBitPos;
+               cell->symbFrmtBitMap = (cell->symbFrmtBitMap & ~(bitMask)) | ((0<<symbBitPos) & bitMask);
+               symbBitPos--;
+               break;
+            }
+            default:
+              DU_LOG("\nERROR  -->  SCH : Invalid slot Config in schInitTddSlotCfg");
+         }
+      }
+   }
+
+}
+#endif
+
+
+/**
+ * @brief init cellCb based on cellCfg
  *
  * @details
  *
@@ -345,7 +532,7 @@ uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd)
  **/
 uint8_t schInitCellCb(Inst inst, SchCellCfg *schCellCfg)
 {
-   SchCellCb *cell;
+   SchCellCb *cell= NULLP;
    SCH_ALLOC(cell, sizeof(SchCellCb));
    if(!cell)
    {
@@ -385,6 +572,9 @@ uint8_t schInitCellCb(Inst inst, SchCellCfg *schCellCfg)
       default:
         DU_LOG("\nERROR  -->  SCH : Numerology %d not supported", schCellCfg->numerology);
    }
+#ifdef NR_TDD
+   schInitTddSlotCfg(cell, schCellCfg);   
+#endif
 
    SCH_ALLOC(cell->schDlSlotInfo, cell->numSlots * sizeof(SchDlSlotInfo*));
    if(!cell->schDlSlotInfo)
index 1c81629..e1388a7 100644 (file)
@@ -207,6 +207,11 @@ typedef struct schCellCb
    uint32_t      actvUeBitMap;                      /*!<Bit map to find active UEs */
    uint32_t      boIndBitMap;                       /*!<Bit map to indicate UEs that have recevied BO */
    SchUeCb       ueCb[MAX_NUM_UE];                  /*!<Pointer to UE contexts of this cell */
+#ifdef NR_TDD
+   uint8_t       numSlotsInPeriodicity;             /*!< number of slots in configured periodicity and SCS */
+   uint32_t      slotFrmtBitMap;                    /*!< 2 bits must be read together to determine D/U/S slots. 00-D, 01-U, 10-S */
+   uint32_t      symbFrmtBitMap;                    /*!< 2 bits must be read together to determine D/U/S symbols. 00-D, 01-U, 10-S */
+#endif
 }SchCellCb;
 
 /**
index 9343811..cdcbf90 100644 (file)
@@ -516,7 +516,7 @@ uint8_t schUlResAlloc(SchCellCb *cell, Inst schInst)
    ret = sendUlSchInfoToMac(&ulSchedInfo, schInst);
    if(ret != ROK)
    {
-      DU_LOG("\nSending UL Sch info from SCH to MAC failed");
+      DU_LOG("\nERROR  -->  SCH : Sending UL Sch info from SCH to MAC failed");
    }
 
    schInitUlSlot(schUlSlotInfo);
index 3db3816..079d01a 100644 (file)
@@ -152,7 +152,7 @@ uint8_t schAllocMsg3Pusch(Inst schInst, uint16_t slot, uint16_t crnti, \
    SCH_ALLOC(schUlSlotInfo->schPuschInfo, sizeof(SchPuschInfo));
    if(!schUlSlotInfo->schPuschInfo)
    {
-      DU_LOG("SCH: Memory allocation failed in schAllocMsg3Pusch");
+      DU_LOG("\nERROR  -->  SCH :  Memory allocation failed in schAllocMsg3Pusch");
       return RFAILED;
    }
    tbSize = 0;  /* since nPrb has been incremented, recalculating tbSize */
@@ -214,7 +214,7 @@ uint8_t schProcessRachInd(RachIndInfo *rachInd, Inst schInst)
    SCH_ALLOC(rarInfo, sizeof(RarInfo));
    if(rarInfo == NULLP)
    {
-      DU_LOG("\nMAC: Memory Allocation failed for rarInfo");
+      DU_LOG("\nERROR  -->  SCH : Memory Allocation failed for rarInfo");
       return RFAILED;
    }
 
index bd3e642..44864f0 100644 (file)
@@ -155,7 +155,7 @@ uint8_t schFillBoGrantDlSchedInfo(SchCellCb *cell, DlSchedInfo *dlSchedInfo, DlM
       SCH_ALLOC(dlMsgAlloc, sizeof(DlMsgAlloc));
       if(!dlMsgAlloc)
       {
-        DU_LOG("\nMAC: Memory Allocation failed for ded DL msg alloc");
+        DU_LOG("\nERROR  -->  SCH : Memory Allocation failed for ded DL msg alloc");
         return RFAILED;
       }
       memset(dlMsgAlloc, 0, sizeof(DlMsgAlloc));
@@ -282,7 +282,7 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
       ret = schBroadcastAlloc(cell,dlBrdcstAlloc,slot);
       if(ret != ROK)
       {
-        DU_LOG("\nschBroadcastAlloc failed");
+        DU_LOG("\nERROR  -->  SCH : schBroadcastAlloc failed");
         return (ret);
       }
    }
@@ -294,7 +294,7 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
       SCH_ALLOC(rarAlloc, sizeof(RarAlloc));
       if(!rarAlloc)
       {
-        DU_LOG("\nMAC: Memory Allocation failed for RAR alloc");
+        DU_LOG("\nERROR  -->  SCH : Memory Allocation failed for RAR alloc");
         return RFAILED;
       }
 
@@ -322,7 +322,7 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
       SCH_ALLOC(msg4Alloc, sizeof(DlMsgAlloc));
       if(!msg4Alloc)
       {
-        DU_LOG("\nMAC: Memory Allocation failed for msg4 alloc");
+        DU_LOG("\nERROR  -->  SCH : Memory Allocation failed for msg4 alloc");
         return RFAILED;
       }
 
@@ -369,7 +369,7 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
         SCH_ALLOC(dciInfo, sizeof(DciInfo));
         if(!dciInfo)
         {
-           DU_LOG("\nMAC: Memory Allocation failed for dciInfo alloc");
+           DU_LOG("\nERROR  -->  SCH : Memory Allocation failed for dciInfo alloc");
            return RFAILED;
         }
         memset(dciInfo,0,sizeof(DciInfo));
@@ -396,7 +396,7 @@ uint8_t schProcessSlotInd(SlotIndInfo *slotInd, Inst schInst)
    ret = sendDlAllocToMac(&dlSchedInfo, schInst);
    if(ret != ROK)
    {
-      DU_LOG("\nSending DL Broadcast allocation from SCH to MAC failed");
+      DU_LOG("\nERROR  -->  SCH : Sending DL Broadcast allocation from SCH to MAC failed");
       return (ret);
    }
 
index 3e50010..22f16a7 100644 (file)
@@ -69,12 +69,12 @@ void SchSendUeCfgRspToMac(uint16_t event, SchUeCfg *ueCfg, Inst inst,\
    if(event == EVENT_ADD_UE_CONFIG_REQ_TO_SCH)
    {
       rspPst.event = EVENT_UE_CONFIG_RSP_TO_MAC;
-      DU_LOG("\nSCH: Sending UE Config response to MAC");
+      DU_LOG("\nINFO  -->  SCH :  Sending UE Config response to MAC");
    }
    else if(event == EVENT_MODIFY_UE_CONFIG_REQ_TO_SCH)
    {
       rspPst.event = EVENT_UE_RECONFIG_RSP_TO_MAC;
-      DU_LOG("\nSCH: Sending UE Reconfig response to MAC");
+      DU_LOG("\nINFO  -->  SCH :  Sending UE Reconfig response to MAC");
    }
    SchUeCfgRspOpts[rspPst.selector](&rspPst, cfgRsp);
 }
@@ -276,7 +276,7 @@ SchCellCb *getSchCellCb(uint16_t srcEvent, Inst inst, SchUeCfg *ueCfg)
    }
    if(idx == MAX_NUM_CELL)
    {
-      DU_LOG("\nSCH : Ue create request failed. Invalid cell id %d", ueCfg->cellId);
+      DU_LOG("\nERROR  -->  SCH : Ue create request failed. Invalid cell id %d", ueCfg->cellId);
       SchSendUeCfgRspToMac(srcEvent, ueCfg, inst, RSP_NOK, &cfgRsp);
       return NULLP;
    }
@@ -284,7 +284,7 @@ SchCellCb *getSchCellCb(uint16_t srcEvent, Inst inst, SchUeCfg *ueCfg)
    /* Check if max number of UE configured */
    if(cellCb->numActvUe > MAX_NUM_UE)
    {
-      DU_LOG("SCH : Max number of UE [%d] already configured", MAX_NUM_UE);
+      DU_LOG("\nERROR  -->  SCH :  Max number of UE [%d] already configured", MAX_NUM_UE);
       SchSendUeCfgRspToMac(srcEvent, ueCfg, inst, RSP_NOK, &cfgRsp);
       return NULLP;
    }
@@ -318,10 +318,10 @@ uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfg)
 
    if(!ueCfg)
    {
-      DU_LOG("\nSCH : Adding UE Config Request failed at MacSchAddUeConfigReq()");
+      DU_LOG("\nERROR  -->  SCH :  Adding UE Config Request failed at MacSchAddUeConfigReq()");
       return RFAILED;
    }
-   DU_LOG("\nSCH : Adding UE Config Request for CRNTI[%d]", ueCfg->crnti);
+   DU_LOG("\nDEBUG  -->  SCH :  Adding UE Config Request for CRNTI[%d]", ueCfg->crnti);
    cellCb = getSchCellCb(pst->event, inst, ueCfg);
 
    /* Search if UE already configured */
@@ -331,14 +331,14 @@ uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfg)
    {
       if((ueCb->crnti == ueCfg->crnti) && (ueCb->state == SCH_UE_STATE_ACTIVE))
       {
-        DU_LOG("\n SCH : CRNTI %d already configured ", ueCfg->crnti);
+        DU_LOG("\nDEBUG  -->  SCH : CRNTI %d already configured ", ueCfg->crnti);
         SchSendUeCfgRspToMac(pst->event, ueCfg, inst, RSP_OK, &cfgRsp);
         return ROK;
       }
    }
    else
    {
-      DU_LOG("\n SCH : SchUeCb not found at MacSchAddUeConfigReq() ");
+      DU_LOG("\nERROR  -->  SCH : SchUeCb not found at MacSchAddUeConfigReq() ");
       SchSendUeCfgRspToMac(pst->event, ueCfg, inst, RSP_NOK, &cfgRsp);
       return RFAILED;
    }
@@ -431,7 +431,7 @@ uint8_t schFillPuschAlloc(SchUeCb *ueCb, uint16_t pdcchSlot, uint32_t dataVol, S
   SCH_ALLOC(schUlSlotInfo->schPuschInfo, sizeof(SchPuschInfo));
   if(!schUlSlotInfo->schPuschInfo)
   {
-     DU_LOG("SCH: Memory allocation failed in schAllocMsg3Pusch");
+     DU_LOG("\nERROR  -->  SCH: Memory allocation failed in schAllocMsg3Pusch");
      return RFAILED;
   }
   memcpy(schUlSlotInfo->schPuschInfo, puschInfo, sizeof(SchPuschInfo));
@@ -547,10 +547,10 @@ uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfg)
 
    if(!ueCfg)
    {
-      DU_LOG("\nSCH : Modifying Ue Config request failed at MacSchModUeConfigReq()");
+      DU_LOG("\nERROR  -->  SCH : Modifying Ue Config request failed at MacSchModUeConfigReq()");
       return RFAILED;
    }
-   DU_LOG("\nSCH : Modifying Ue Config Request for CRNTI[%d]", ueCfg->crnti);
+   DU_LOG("\nDEBUG  -->  SCH : Modifying Ue Config Request for CRNTI[%d]", ueCfg->crnti);
    cellCb = getSchCellCb(pst->event, inst, ueCfg);
 
    /* Search if UE already configured */
@@ -559,7 +559,7 @@ uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfg)
    
    if(!ueCb)
    {
-      DU_LOG("\n SCH : SchUeCb not found at MacSchModUeConfigReq() ");
+      DU_LOG("\nERROR  -->  SCH : SchUeCb not found at MacSchModUeConfigReq() ");
       SchSendUeCfgRspToMac(pst->event, ueCfg, inst, RSP_NOK, &cfgRsp);
       return RFAILED;
    }
index f764f9c..2f9d4ee 100644 (file)
@@ -4017,7 +4017,7 @@ S16             flags           /* additional control flags, unused */
    S32 ret =0;                     /* temporary return value */
    S32 retVal =0;                  /* temporary return value */
    S16 i =0;                       /* loop index */
-   CmInetIovec  txArr[CM_INET_MAX_DBUF] = {0}; /* scatter vector */
+   CmInetIovec  txArr[CM_INET_MAX_DBUF] = {{0}}; /* scatter vector */
    S16      numDBufs =0;           /* number of dBufs in message */
    struct   msghdr msg ={0};         /* sendmsg() message header */
    MsgLen   msgLen =0;             /* message length */ 
@@ -4505,7 +4505,7 @@ S16             flags           /* additional control flags, unused */
    S32 ret;                     /* temporary return value */
    S32 retVal;                  /* temporary return value */
    S16 i;                       /* loop index */
-   CmInetIovec  txArr[CM_INET_MAX_DBUF] ={0}; /* scatter vector */
+   CmInetIovec  txArr[CM_INET_MAX_DBUF] ={{0}}; /* scatter vector */
    S16      numDBufs;           /* number of dBufs in message */
    struct   msghdr msg;         /* sendmsg() message header */
    MsgLen   msgLen;             /* message length */ 
@@ -5726,7 +5726,7 @@ S32              flags          /* additional control flags */
    struct msghdr msg = {0};            /* message header */ 
    /* cm_inet_c_001.main_54: Fix for Klockworks issue */
    Buffer       *tempMsg = NULLP;        /* temporary message */
-   CmInetIovec  rxArr[CM_INET_MAX_DBUF]= {0};  /* dynamic gather array */
+   CmInetIovec  rxArr[CM_INET_MAX_DBUF]= {{0}};  /* dynamic gather array */
    Buffer      **dBufs = NULLP;   /* dynamic array with allocated dBufs */
    S16           numDBufs =0;       /* number of allocated dBufs */
 
index 630c62c..02dbe20 100644 (file)
@@ -102,12 +102,12 @@ Ptr             *ptr         /* Location to place allocated event ptr */
 #ifndef LTE_ENB_PAL
   if( evntSize > maxBlkSize)
   {
-     printf("\nNot Allocating memory for Event\n");
+     DU_LOG("\nERROR  -->  Not Allocating memory for Event\n");
 #ifdef ALIGN_64BIT
-     printf("eventSize [%d] greater than maxBlkSize [%d]\n",
+     DU_LOG("\nERROR  -->  eventSize [%d] greater than maxBlkSize [%d]\n",
            evntSize, maxBlkSize);
 #else
-     printf("eventSize [%ld] greater than maxBlkSize [%ld]\n",
+     DU_LOG("\nERROR  -->  eventSize [%ld] greater than maxBlkSize [%ld]\n",
            evntSize, maxBlkSize);
 #endif
      return RFAILED;
index 4ef65d6..46c32de 100755 (executable)
@@ -294,7 +294,7 @@ void InsertToT2kMemLeakInfo(uint64_t address, uint32_t size, uint32_t lineNo, ch
 
    if(((uint64_t)(address - regMemLeakInfo.regStartAddr[region]) & regMinBktSzInfo[region].minBktSzMins1) !=0)
    {
-     printf("address in InsertToT2kMemLeakInfo is %ld size = %d file is %s line is %d \n", address, size, fileName, lineNo);
+      DU_LOG("\nINFO  --> address in InsertToT2kMemLeakInfo is %ld size = %d file is %s line is %d \n", address, size, fileName, lineNo);
    }
 
    leakInfo = (((T2kMeamLeakInfo*)(regMemLeakInfo.gMemLeakInfo[region])) + index1);
@@ -308,7 +308,8 @@ void InsertToT2kMemLeakInfo(uint64_t address, uint32_t size, uint32_t lineNo, ch
       leakInfo->prevRemLineNo = 0;
       leakInfo->prevRemFileName = '\0';
 
-      //printf("InsertToT2kMemLeakInfo  the adress from List  Address = %x, index1 = %d   from File=%s, line=%d \n",address,index1,fileName,lineNo);
+      //DU_LOG("\nINFO  --> InsertToT2kMemLeakInfo  the adress from List  Address = %x, index1 = %d   \
+      from File=%s, line=%d \n",address,index1,fileName,lineNo);
       if(smallTick++ == 4096)
       {
          smallTick = 0;
@@ -317,8 +318,8 @@ void InsertToT2kMemLeakInfo(uint64_t address, uint32_t size, uint32_t lineNo, ch
    }
    else
    {
-         printf("Something is wrong, trying to insert %ld index1 = %d file is %s line is %d \n",address, index1, fileName, lineNo);
-         printf("Address present :%ld, from File:%s, Line:%d, Size:%d, Age:%d",
+         DU_LOG("\nERROR  --> Something is wrong, trying to insert %ld index1 = %d file is %s line is %d \n",address, index1, fileName, lineNo);
+         DU_LOG("\nINFO  --> Address present :%ld, from File:%s, Line:%d, Size:%d, Age:%d",
                leakInfo->address, leakInfo->fileName,
                leakInfo->lineNo, leakInfo->size,
                leakInfo->age);
@@ -339,7 +340,7 @@ void RemoveFromT2kMemLeakInfo(uint64_t address, char *file, uint32_t line,Region
 
    if(index1 >= T2K_MEM_LEAK_INFO_TABLE_SIZE)
    {
-      printf("index1 out of range = %d address is %ld file = %s line = %d. We are going to crash!!!\n",
+      DU_LOG("\nERROR  --> index1 out of range = %d address is %ld file = %s line = %d. We are going to crash!!!\n",
               index1,
               address,
               file,
@@ -358,14 +359,14 @@ void RemoveFromT2kMemLeakInfo(uint64_t address, char *file, uint32_t line,Region
    }
    else
    {
-         printf("Something is wrong, trying to remove %ld index1 = %d  from File=%s, line=%d address present is %ld region%d \n",address, index1, file,line,leakInfo->address,region);
+         DU_LOG("\nERROR  --> Something is wrong, trying to remove %ld index1 = %d  from File=%s, line=%d address present is %ld region%d \n",address, index1, file,line,leakInfo->address,region);
 
-         printf("\n Last Del file %s line %d\n",leakInfo->lastDelFileName,
+         DU_LOG("\nINFO  -->  Last Del file %s line %d\n",leakInfo->lastDelFileName,
                  leakInfo->lastDelLineNum);
 
          if(leakInfo->prevRemFileName != NULLP)
          {
-            printf("Previous File:%s, Previous Line:%d\n",
+             DU_LOG("\nINFO  --> Previous File:%s, Previous Line:%d\n",
                   leakInfo->prevRemFileName, leakInfo->prevRemLineNo);
          }
    }
@@ -380,7 +381,7 @@ void DumpT2kMemLeakInfoToFile()
 
    if(fp == NULL)
    {
-      printf("Could not open file for dumping mem leak info\n");
+      DU_LOG("\nERROR  --> Could not open file for dumping mem leak info\n");
       return;
    }
    for(reg=0; reg <regMemLeakInfo.numActvRegions; reg++)
@@ -747,7 +748,7 @@ S16 cmMmRegInit(Region region,CmMmRegCb *regCb,CmMmRegCfg  *cfg)
 #ifdef BRDCM_SSI_MEM_LEAK_DEBUG_LEVEL2
     /* Initialize the hast list to maintain the SSI memory information for Broadcom */
     offset = (uint16_t)((PTR)(&ptrHdr.ent) - (PTR) &ptrHdr);
-    printf("###########offset is %d region %d\n", offset, region);
+    DU_LOG("\nINFO  --> offset is %d region %d\n", offset, region);
     if(cmHashListInit(&regCb->brdcmSsiLstCp, 1000, offset, FALSE, 
        CM_HASH_KEYTYPE_UINT32_MOD, region, 0) != ROK)
     {
@@ -1205,7 +1206,7 @@ Data  **prevptr;
       /* Initialize the elements with 0xAB */
       memset(*ptr, 0xAB, *size);
 #endif
-//      printf("Pointer allocated %8p size %d\n", *ptr, *size);
+//      DU_LOG("\nINFO  --> Pointer allocated %8p size %d\n", *ptr, *size);
       /* Store this pointer in hash list */
       if ((bkt->nextBlk) && *ptr)
 #elif SS_LIGHT_MEM_LEAK_STS
@@ -1310,7 +1311,7 @@ Data  **prevptr;
                if (g_overused[bktIdx] == 0 && OVERUSED(bkt))
                {
                   g_overused[bktIdx] = 1;
-                  /*printf("cmAlloc: bktIdx %u overused %u numAlloc %u\n", bktIdx, g_overused[bktIdx], bkt->numAlloc); */
+                  /*DU_LOG("\nINFO  --> cmAlloc: bktIdx %u overused %u numAlloc %u\n", bktIdx, g_overused[bktIdx], bkt->numAlloc); */
                }
             }
 #endif
@@ -1703,13 +1704,13 @@ Size    size
                size(%d) %8p, Bucket Id:%03d\n",
                size, ptrHdr->requestedSize, ptr, regCb->mapTbl[idx].bktIdx);
 #endif
-         printf("Passed size (%d) does not match with allocated \
+         DU_LOG("\nERROR  --> Passed size (%d) does not match with allocated \
                size(%d) %8p, Bucket Id:%03d\n",
                size, ptrHdr->requestedSize, ptr, regCb->mapTbl[idx].bktIdx);
          abort();
       }
       /* Validate the tail part to see if there is any over run */
-//      printf("Pointer free request %8p, size %d\n", ptr, size);
+//      DU_LOG("\nINFO  --> Pointer free request %8p, size %d\n", ptr, size);
 #endif
 
       /* validate the block to be freed for trampling */
@@ -1770,7 +1771,7 @@ Size    size
                 return (RTRAMPLINGNOK);
            }
 #ifdef BRDCM_SSI_MEM_LEAK_DEBUG_LEVEL1
-         printf("Memory signature is invalid\n");
+         DU_LOG("\nERROR  --> Memory signature is invalid\n");
          abort();
 #endif
       }
@@ -1806,7 +1807,7 @@ Size    size
           (Void) SUnlock(&(bkt->bktLock));
 #endif
 #ifdef BRDCM_SSI_MEM_LEAK_DEBUG_LEVEL1
-         printf("Attempt to double deallocate memory at: %8p, Bucket Id:%03d,\
+         DU_LOG("\nERROR  --> Attempt to double deallocate memory at: %8p, Bucket Id:%03d,\
                  size %u bytes \n", ptr, regCb->mapTbl[idx].bktIdx, bkt->size);
           abort();
 #endif
@@ -2782,7 +2783,7 @@ Size    size
          sprintf(dbgPrntBuf, "Passed size (%d) does not match with allocated size(%d):%8p, Bucket Id:%03d\n",
                  size, ptrHdr->requestedSize, ptr, regCb->mapTbl[idx].bktIdx);
 #endif
-         printf("Passed size (%d) does not match with allocated size(%d):%8p, Bucket Id:%03d\n",
+         DU_LOG("\nERROR  --> Passed size (%d) does not match with allocated size(%d):%8p, Bucket Id:%03d\n",
                  size, ptrHdr->requestedSize, ptr, regCb->mapTbl[idx].bktIdx);
          abort();
       }
@@ -2826,7 +2827,7 @@ Size    size
          }
 #endif
 #ifdef BRDCM_SSI_MEM_LEAK_DEBUG_LEVEL1
-         printf("Memory signature is invalid\n");
+         DU_LOG("\nERROR  --> Memory signature is invalid\n");
          abort();
 #endif
       }
@@ -2856,7 +2857,7 @@ Size    size
          SDisplay(0, dbgPrntBuf);
 #endif /* DEBUGP */
 #ifdef BRDCM_SSI_MEM_LEAK_DEBUG_LEVEL1
-         printf("Attempt to double deallocate memory at: %8p, Bucket Id:%03d,\
+         DU_LOG("\nERROR  --> Attempt to double deallocate memory at: %8p, Bucket Id:%03d,\
                  size %u bytes \n", ptr, regCb->mapTbl[idx].bktIdx, bkt->size);
           abort();
 #endif
@@ -4587,13 +4588,13 @@ Void cmStartStopLeakLog(Void)
 {
    if (FALSE == gmemLkCb.isStarted)
    {
-      printf("!!leak capturing started\n");
+      DU_LOG("\nINFO  --> leak capturing started\n");
       gmemLkCb.isStarted = TRUE;
    }
    else
    {
       gmemLkCb.isStarted = FALSE;
-      printf("!!leak capturing stopped\n");
+      DU_LOG("\nINFO  --> leak capturing stopped\n");
       cmPrintLeakLog();
    }
    return;
@@ -4620,18 +4621,18 @@ Void cmPrintLeakLog(Void)
    static uint32_t leakCount =0; 
 
 
-   printf("---- START OF LEAK LOG ----");
+   DU_LOG("\nINFO  --> START OF LEAK LOG ");
    SLock(&gmemLkCb.memLock);
-   printf("---- Lock Acquired ----");
+   DU_LOG("\nINFO  -->  Lock Acquired");
    for(indx = 0; indx < CM_MAX_ALLOC_ENTERIES; indx++)
    {
       if(gmemLkCb.allocInfo[indx].used == TRUE)
       {
          leakCount++;
          aBkt =(CmMmBlkHdr *)gmemLkCb.allocInfo[indx].memAddr;
-         printf("LeakCnt(%ld)Addr(0x%p)RqSz(%ld)",
+         DU_LOG("LeakCnt(%ld)Addr(0x%p)RqSz(%ld)",
             leakCount,gmemLkCb.allocInfo[indx].memAddr, aBkt->requestedSize);
-         printf("LineNo(%ld)funcName(%s)\n",
+         DU_LOG("LineNo(%ld)funcName(%s)\n",
             aBkt->lineNo, aBkt->currFuncName);
          gmemLkCb.allocInfo[indx].used = FALSE;
          cmPutFreeIndx(indx);
@@ -4639,9 +4640,9 @@ Void cmPrintLeakLog(Void)
       //if(leakCount % 10 == 0)
         // sleep(1);
    }
-   printf("---- END OF LEAK LOG ----");
+   DU_LOG("\nINFO  -->  END OF LEAK LOG ");
    SUnlock(&gmemLkCb.memLock);
-   printf("---- Lock Released ----");
+   DU_LOG("\nINFO  -->  Lock Released");
    leakCount =0; 
    return;
 }
@@ -5930,7 +5931,7 @@ uint8_t   entId    /* Tapa task which free the memory */
    /* If hash list is full then print the error tna continue */
    if(hashListCp->totalNumEntries == (CMM_HIST_MAX_MEM_BIN * CMM_HIST_MAX_MEM_ENTRY_PER_BIN))
    {
-        printf("No place in the hash list. Increase the value of macro CMM_HIST_MAX_MEM_BIN and CMM_HIST_MAX_MEM_ENTRY_PER_BIN \n");
+        DU_LOG("\nERROR  --> No place in the hash list. Increase the value of macro CMM_HIST_MAX_MEM_BIN and CMM_HIST_MAX_MEM_ENTRY_PER_BIN \n");
         return RFAILED;
    } /* End of if */
 
@@ -6004,7 +6005,7 @@ uint8_t    entId
 
    if(hashListCp->totalNumEntries == (CMM_HIST_MAX_MEM_BIN * CMM_HIST_MAX_MEM_ENTRY_PER_BIN))
    {
-        printf("No place in the hash list. Increase the value of macro CMM_HIST_MAX_MEM_BIN and CMM_HIST_MAX_MEM_ENTRY_PER_BIN\n");
+        DU_LOG("\nERROR  --> No place in the hash list. Increase the value of macro CMM_HIST_MAX_MEM_BIN and CMM_HIST_MAX_MEM_ENTRY_PER_BIN\n");
         return RFAILED;
    } /* End of if */
 
@@ -6173,12 +6174,12 @@ CmMemEntries  **entry
       } /* End of if (numEnt) */
       else
       {
-         printf ("Unable to find the entry in hash list\n");
+         DU_LOG("\nERROR  --> Unable to find the entry in hash list\n");
          return RFAILED;
       }/* End of else (numEnt) */
    }/* end of for (numBin = 0) */
 
-   printf("Unable to find the entry in the hash list\n");
+   DU_LOG("\nERROR  --> Unable to find the entry in the hash list\n");
    return RFAILED;
 } /* end of cmHstGrmFindEntry */
 
index 2c4b8c3..244bff9 100755 (executable)
@@ -50,7 +50,7 @@
 #include "cm_lte.h"             /* Common LTE header file */
 #include "cm_llist.h"           /* Linked list header file */
 #include "cm_tkns.h"            /* Common tokens header file */
-
+#include "du_log.h"
 
 /* header/extern include files (.x) */
 
@@ -148,7 +148,7 @@ static Buffer* TSInfUtlAllocMsg(Pst   *pst)
 
 
    if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
-      printf("\n MBuf Allocation failed\n");
+      DU_LOG("\nERROR  -->  RLC : MBuf Allocation failed\n");
    }
    return (mBuf);
 }
index 84e6b04..4dd2abf 100644 (file)
 #define ODU_SET_THREAD_AFFINITY SSetAffinity
 #define ODU_CREATE_TASK SCreateSTsk
 
+#ifdef NR_TDD
+/* Maximum slots for max periodicity and highest numerology is 320.
+ * However, aligning to fapi_interface.h, setting this macro to 160 */
+#define MAX_TDD_PERIODICITY_SLOTS 160 
+#define MAX_SYMB_PER_SLOT 14 
+#endif
+
 #define GET_UE_IDX( _crnti,_ueIdx)         \
 {                                          \
    _ueIdx = _crnti - ODU_START_CRNTI + 1;  \
@@ -179,6 +186,27 @@ typedef enum
    CONFIG_DEL
 }ConfigType;
 
+#ifdef NR_TDD
+typedef enum
+{
+   DL_SLOT,
+   UL_SLOT,
+   FLEXI_SLOT
+}SlotConfig;
+
+typedef enum
+{
+   TX_PRDCTY_MS_0P5,
+   TX_PRDCTY_MS_0P625,
+   TX_PRDCTY_MS_1,
+   TX_PRDCTY_MS_1P25,
+   TX_PRDCTY_MS_2,
+   TX_PRDCTY_MS_2P5,
+   TX_PRDCTY_MS_5,
+   TX_PRDCTY_MS_10
+}DlUlTxPeriodicity;
+#endif
+
 typedef struct slotIndInfo
 {
    uint16_t cellId;
@@ -197,6 +225,16 @@ typedef struct oduCellId
    uint16_t cellId;
 }OduCellId;
 
+#ifdef NR_TDD
+typedef struct tddCfg
+{
+   bool               pres;
+   DlUlTxPeriodicity  tddPeriod;      /* DL UL Transmission periodicity */
+   SlotConfig         slotCfg[MAX_TDD_PERIODICITY_SLOTS][MAX_SYMB_PER_SLOT]; 
+}TDDCfg;
+#endif
+
+
 uint64_t gSlotCount;
 
 void freqDomRscAllocType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain);
index 4a943f2..03bca92 100755 (executable)
@@ -4561,7 +4561,7 @@ Buffer *mBuf
 #endif
    if(param->unLicnsdCfgPres)
    {   
-      printf("pverma param->unLicnsdCfgPres cm/ctf -->%d\n",param->unLicnsdCfgPres);
+      DU_LOG("\nDEBUG  -->  pverma param->unLicnsdCfgPres cm/ctf -->%d\n",param->unLicnsdCfgPres);
       CMCHKPK(cmPkCtfUnLicnsdCellParam, &param->lteUCfg, mBuf);
    }
    CMCHKPK(oduUnpackUInt8, param->unLicnsdCfgPres, mBuf);
@@ -4795,7 +4795,7 @@ Buffer *mBuf
 
    if(param->unLicnsdCfgPres)
    {
-      printf("pverma param->unLicnsdCfgPres 2 -->%d \n",param->unLicnsdCfgPres);
+      DU_LOG("\nDEBUG  -->  pverma param->unLicnsdCfgPres 2 -->%d \n",param->unLicnsdCfgPres);
       CMCHKUNPK(cmUnpkCtfUnLicnsdCellParam, &param->lteUCfg, mBuf);
    }   
 #ifdef EMTC_ENABLE
@@ -5009,7 +5009,7 @@ Buffer *mBuf
    CMCHKUNPK(SUnpkS16, &param->pilotSigPwr, mBuf);
    CMCHKUNPK(SUnpkS16, &param->priSigPwr, mBuf);
    CMCHKUNPK(SUnpkS16, &param->secSigPwr, mBuf);
-   printf("param->pilotSigPwr = %d\nparam->priSigPwr = %d\n param->secSigPwr = %d\n",param->pilotSigPwr,param->priSigPwr,param->secSigPwr); 
+   DU_LOG("\nDEBUG  -->  param->pilotSigPwr = %d\nparam->priSigPwr = %d\n param->secSigPwr = %d\n",param->pilotSigPwr,param->priSigPwr,param->secSigPwr); 
 #ifdef ENABLE_API_LOG
    CMCHKUNPK(oduPackUInt8, &param->enableAPILog, mBuf);
 #endif /* ENABLE_API_LOG */
index e1ef58f..385ca18 100644 (file)
@@ -55,7 +55,7 @@ uint8_t packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
       /* pack the address of the structure */
       CMCHKPK(oduPackPointer,(PTR)macCellCfg, mBuf);
 
-      DU_LOG("\nDU-APP : MAC CELL config sent");
+      DU_LOG("\nDEBUG  -->  DU-APP : MAC CELL config sent");
       return ODU_POST_TASK(pst,mBuf);
    } 
    return ROK;
@@ -206,7 +206,7 @@ uint8_t packMacCellStart(Pst *pst, OduCellId *cellId)
 
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nDU APP : Memory allocation failed for cell start req pack");
+        DU_LOG("\nERROR  --> DU APP : Memory allocation failed for cell start req pack");
         return RFAILED;
       }
 
@@ -284,7 +284,7 @@ uint8_t packMacCellStop(Pst *pst, OduCellId  *cellId)
 
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nDU APP : Memory allocation failed for cell stop req pack");
+        DU_LOG("\nERROR  --> DU APP : Memory allocation failed for cell stop req pack");
         return RFAILED;
       }
 
@@ -356,7 +356,7 @@ uint8_t packMacCellUpInd(Pst *pst, OduCellId *cellId)
 
    if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
    {
-      DU_LOG("\nDU APP : Memory allocation failed for packMacCellUpInd");
+      DU_LOG("\nERROR  --> DU APP : Memory allocation failed for packMacCellUpInd");
       return RFAILED;
    }
 
@@ -446,14 +446,13 @@ uint8_t packMacStopInd(Pst *pst, OduCellId *cellId)
 
    if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
    {
-      DU_LOG("\nDU APP : Memory allocation failed for stop Ind pack");
+      DU_LOG("\nERROR  --> DU APP : Memory allocation failed for stop Ind pack");
       return RFAILED;
    }
 
    if(pst->selector == ODU_SELECTOR_LC)
    {
       /*pack the payload here*/
-      DU_LOG("\nDU APP : Packed CellId");
       CMCHKPK(oduUnpackUInt16, cellId->cellId, mBuf);
       CM_FREE_SHRABL_BUF(pst->region, pst->pool, cellId, sizeof(OduCellId));
       cellId = NULL;
@@ -542,7 +541,7 @@ uint8_t packMacUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nMAC : Memory allocation failed at packMacUlCcchInd");
+        DU_LOG("\nERROR  --> MAC : Memory allocation failed at packMacUlCcchInd");
         return RFAILED;
       }
       /* pack the address of the structure */
@@ -550,7 +549,7 @@ uint8_t packMacUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo)
    }
    else
    {
-      DU_LOG("\nMAC: Only LWLC supported for UL CCCH Ind ");
+      DU_LOG("\nERROR  -->  MAC: Only LWLC supported for UL CCCH Ind ");
       return RFAILED;
    }
 
@@ -589,7 +588,7 @@ uint8_t unpackMacUlCcchInd(DuMacUlCcchInd func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\n Only LWLC supported for UL CCCH Ind ");
+      DU_LOG("\nERROR  -->  MAC : Only LWLC supported for UL CCCH Ind ");
       ODU_PUT_MSG_BUF(mBuf);
    }
    return RFAILED;
@@ -621,7 +620,7 @@ uint8_t packMacDlCcchInd(Pst *pst, DlCcchIndInfo *dlCcchIndInfo)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nMAC : Memory allocation failed at packMacDlCcchInd");
+        DU_LOG("\nERROR  --> MAC : Memory allocation failed at packMacDlCcchInd");
         return RFAILED;
       }
       /* pack the address of the structure */
@@ -629,7 +628,7 @@ uint8_t packMacDlCcchInd(Pst *pst, DlCcchIndInfo *dlCcchIndInfo)
    }
    else
    {
-      DU_LOG("\nDU APP: Only LWLC supported for DL CCCH Ind ");
+      DU_LOG("\nERROR  -->  DU APP : Only LWLC supported for DL CCCH Ind ");
       return RFAILED;
    }
 
@@ -668,7 +667,7 @@ uint8_t unpackMacDlCcchInd(DuMacDlCcchInd func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\n Only LWLC supported for DL CCCH Ind ");
+      DU_LOG("\nERROR  -->  DU APP : Only LWLC supported for DL CCCH Ind ");
       ODU_PUT_MSG_BUF(mBuf);
    }
 
@@ -701,7 +700,7 @@ uint8_t packDuMacUeCreateReq(Pst *pst, MacUeCfg *ueCfg)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nMAC : Memory allocation failed at packDuMacUeCreateReq");
+        DU_LOG("\nERROR  --> MAC : Memory allocation failed at packDuMacUeCreateReq");
         return RFAILED;
       }
       /* pack the address of the structure */
@@ -709,7 +708,7 @@ uint8_t packDuMacUeCreateReq(Pst *pst, MacUeCfg *ueCfg)
    }
    else
    {
-      DU_LOG("\nMAC: Only LWLC supported for packDuMacUeCreateReq");
+      DU_LOG("\nERROR  -->  MAC: Only LWLC supported for packDuMacUeCreateReq");
       return RFAILED;
    }
 
@@ -748,7 +747,7 @@ uint8_t unpackMacUeCreateReq(DuMacUeCreateReq func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\n Only LWLC supported for UE Create Request ");
+      DU_LOG("\nERROR  -->  DU APP : Only LWLC supported for UE Create Request ");
       ODU_PUT_MSG_BUF(mBuf);
    }
 
@@ -779,7 +778,7 @@ uint8_t packDuMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nMAC : Memory allocation failed at packDuMacUeCfgRsp");
+        DU_LOG("\nERROR  --> MAC : Memory allocation failed at packDuMacUeCfgRsp");
         return RFAILED;
       }
       /* pack the address of the structure */
@@ -787,7 +786,7 @@ uint8_t packDuMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp)
    }
    else
    {
-      DU_LOG("\nMAC: Only LWLC supported for packDuMacUeCfgRsp");
+      DU_LOG("\nERROR  -->  MAC: Only LWLC supported for packDuMacUeCfgRsp");
       return RFAILED;
    }
 
@@ -851,7 +850,7 @@ uint8_t packDuMacUeReconfigReq(Pst *pst, MacUeCfg *ueCfg)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        DU_LOG("\nMAC : Memory allocation failed at packDuMacUeReconfigReq");
+        DU_LOG("\nERROR  --> MAC : Memory allocation failed at packDuMacUeReconfigReq");
         return RFAILED;
       }
       /* pack the address of the structure */
@@ -859,7 +858,7 @@ uint8_t packDuMacUeReconfigReq(Pst *pst, MacUeCfg *ueCfg)
    }
    else
    {
-      DU_LOG("\nMAC: Only LWLC supported for packDuMacUeReconfigReq");
+      DU_LOG("\nERROR  -->  MAC: Only LWLC supported for packDuMacUeReconfigReq");
       return RFAILED;
    }
 
@@ -897,7 +896,7 @@ uint8_t unpackMacUeReconfigReq(DuMacUeReconfigReq func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\n Only LWLC supported for UE Create Request ");
+      DU_LOG("\nERROR  -->  DU APP : Only LWLC supported for UE Create Request ");
       ODU_PUT_MSG_BUF(mBuf);
    }
 
index 16c90a9..efb935d 100644 (file)
@@ -21,8 +21,6 @@
 #define __MACINT_H__
 
 #define NUM_NUMEROLOGY 5  /* Number of numerology */
-#define MAXIMUM_TDD_PERIODICITY 10
-#define MAX_SYMB_PER_SLOT 14 
 
 #define NUM_SSB                1       /* max value is 64 */
 #define SSB_MASK_SIZE  1       /* SSB mask size is 32bit for sub6 */
@@ -123,25 +121,6 @@ typedef enum
    RSSI_UNIT_DBFS
 }RSSIMeasUnit;
 
-typedef enum
-{
-   DL_SLOT,
-   UL_SLOT,
-   GUARD_SLOT
-}SlotConfig;
-
-typedef enum
-{
-   TX_PRDCTY_MS_0P5,
-   TX_PRDCTY_MS_0P625,
-   TX_PRDCTY_MS_1,
-   TX_PRDCTY_MS_1P25,
-   TX_PRDCTY_MS_2,
-   TX_PRDCTY_MS_2P5,
-   TX_PRDCTY_MS_5,
-   TX_PRDCTY_MS_10
-}DlUlTxPeriodicity;
-
 typedef enum
 {
    BETA_PSS_0DB,
@@ -563,13 +542,6 @@ typedef struct prachCfg
    uint8_t       raRspWindow;         /* RA Response Window */
 }PrachCfg;
 
-typedef struct tddCfg
-{
-   bool               pres;
-   DlUlTxPeriodicity  tddPeriod;      /* DL UL Transmission periodicity */
-   SlotConfig         slotCfg[MAXIMUM_TDD_PERIODICITY][MAX_SYMB_PER_SLOT]; 
-}TDDCfg;
-
 typedef struct sib1CellCfg
 {
    uint8_t  *sib1Pdu;
@@ -665,7 +637,9 @@ typedef struct macCellCfg
    bool           freqShft;         /* Indicates presence of 7.5kHz frequency shift */
    SsbCfg         ssbCfg;           /* SSB configuration */          
    PrachCfg       prachCfg;         /* PRACH Configuration */
+#ifdef NR_TDD
    TDDCfg         tddCfg;           /* TDD periodicity and slot configuration */
+#endif
    RSSIMeasUnit   rssiUnit;         /* RSSI measurement unit */
    Sib1CellCfg    sib1Cfg;          /* SIB1 config */
    BwpDlConfig    initialDlBwp;     /* Initial DL BWP */
index b2ec581..d85e02f 100644 (file)
@@ -45,7 +45,7 @@ uint8_t packDuRlcUeCreateReq(Pst *pst, RlcUeCfg *ueCfg)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-         DU_LOG("\nRLC : Memory allocation failed at packDuRlcUeCreateReq");
+         DU_LOG("\nERROR  --> RLC : Memory allocation failed at packDuRlcUeCreateReq");
          return RFAILED;
       }
       /* pack the address of the structure */
@@ -53,7 +53,7 @@ uint8_t packDuRlcUeCreateReq(Pst *pst, RlcUeCfg *ueCfg)
    }
    else
    {
-      DU_LOG("\nRLC: Only LWLC supported for packDuRlcUeCreateReq");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packDuRlcUeCreateReq");
       return RFAILED;
    }
 
@@ -91,7 +91,7 @@ uint8_t unpackRlcUeCreateReq(DuRlcUeCreateReq func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\nRLC: Only LWLC supported for UE Create Request ");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for UE Create Request ");
       ODU_PUT_MSG_BUF(mBuf);
    }
 
@@ -124,7 +124,7 @@ uint8_t packRlcDuUeCfgRsp(Pst *pst, RlcUeCfgRsp *ueCfg)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-         DU_LOG("\nRLC : Memory allocation failed at packRlcDuUeCfgRsp");
+         DU_LOG("\nERROR  --> RLC : Memory allocation failed at packRlcDuUeCfgRsp");
          return RFAILED;
       }
       /* pack the address of the structure */
@@ -132,7 +132,7 @@ uint8_t packRlcDuUeCfgRsp(Pst *pst, RlcUeCfgRsp *ueCfg)
    }
    else
    {
-      DU_LOG("\nRLC: Only LWLC supported for packRlcDuUeCfgRsp");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packRlcDuUeCfgRsp");
       return RFAILED;
    }
 
@@ -170,7 +170,7 @@ uint8_t unpackRlcUeCfgRsp(RlcDuUeCfgRsp func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\nRLC: Only LWLC supported for UE Cfg Response ");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for UE Cfg Response ");
       ODU_PUT_MSG_BUF(mBuf);
    }
 
@@ -202,7 +202,7 @@ uint8_t packRlcUlRrcMsgToDu(Pst *pst, RlcUlRrcMsgInfo *ulRrcMsgInfo)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-         DU_LOG("\nRLC : Memory allocation failed at packRlcUlRrcMsgToDu");
+         DU_LOG("\nERROR  --> RLC : Memory allocation failed at packRlcUlRrcMsgToDu");
          return RFAILED;
       }
       /* pack the address of the structure */
@@ -211,7 +211,7 @@ uint8_t packRlcUlRrcMsgToDu(Pst *pst, RlcUlRrcMsgInfo *ulRrcMsgInfo)
    }
    else
    {
-      DU_LOG("\nRLC: Only LWLC supported for packRlcUlRrcMsgToDu");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packRlcUlRrcMsgToDu");
    }
    return RFAILED;
 }
@@ -245,7 +245,7 @@ uint8_t unpackRlcUlRrcMsgToDu(RlcUlRrcMsgToDuFunc func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\nRLC: Only LWLC supported for UL RRC Message transfer ");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for UL RRC Message transfer ");
       ODU_PUT_MSG_BUF(mBuf);
    }
 
@@ -276,7 +276,7 @@ uint8_t packDlRrcMsgToRlc(Pst *pst, RlcDlRrcMsgInfo *dlRrcMsgInfo)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-         DU_LOG("\nRLC : Memory allocation failed at packRlcDlRrcMsgToRlc");
+         DU_LOG("\nERROR  --> RLC : Memory allocation failed at packRlcDlRrcMsgToRlc");
          return RFAILED;
       }
       /* pack the address of the structure */
@@ -285,7 +285,7 @@ uint8_t packDlRrcMsgToRlc(Pst *pst, RlcDlRrcMsgInfo *dlRrcMsgInfo)
    }
    else
    {
-      DU_LOG("\nRLC: Only LWLC supported for packDlRrcMsgToRlc");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packDlRrcMsgToRlc");
    }
    return RFAILED;
 }
@@ -321,7 +321,7 @@ uint8_t unpackDlRrcMsgToRlc(DuDlRrcMsgToRlcFunc func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\nRLC: Only LWLC supported for UL RRC Message transfer ");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for UL RRC Message transfer ");
       ODU_PUT_MSG_BUF(mBuf);
    }
    return RFAILED;
@@ -353,7 +353,7 @@ uint8_t packRrcDeliveryReportToDu(Pst *pst, RrcDeliveryReport *rrcDeliveryReport
     {
        if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
        {
-          DU_LOG("\nRLC : Memory allocation failed at packRrcDeliveryReportToDu");
+          DU_LOG("\nERROR  --> RLC : Memory allocation failed at packRrcDeliveryReportToDu");
           return RFAILED;
        }
        /* pack the address of the structure */
@@ -362,7 +362,7 @@ uint8_t packRrcDeliveryReportToDu(Pst *pst, RrcDeliveryReport *rrcDeliveryReport
     }
     else
     {
-       DU_LOG("\nRLC: Only LWLC supported for packRrcDeliveryReportToDu");
+       DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packRrcDeliveryReportToDu");
     }
     return RFAILED;
  }
@@ -398,7 +398,7 @@ uint8_t unpackRrcDeliveryReportToDu(RlcRrcDeliveryReportToDuFunc func, Pst *pst,
     else
     {
        /* Nothing to do for other selectors */
-       DU_LOG("\nRLC: Only LWLC supported for RRC delivery Message transfer ");
+       DU_LOG("\nERROR  -->  RLC: Only LWLC supported for RRC delivery Message transfer ");
        ODU_PUT_MSG_BUF(mBuf);
     }
 
@@ -431,7 +431,7 @@ uint8_t packDuRlcUeReconfigReq(Pst *pst, RlcUeCfg *ueCfg)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-         DU_LOG("\nRLC : Memory allocation failed at packDuRlcUeReconfigReq");
+         DU_LOG("\nERROR  --> RLC : Memory allocation failed at packDuRlcUeReconfigReq");
          return RFAILED;
       }
       /* pack the address of the structure */
@@ -439,7 +439,7 @@ uint8_t packDuRlcUeReconfigReq(Pst *pst, RlcUeCfg *ueCfg)
    }
    else
    {
-      DU_LOG("\nRLC: Only LWLC supported for packDuRlcUeReconfigReq");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packDuRlcUeReconfigReq");
       return RFAILED;
    }
 
@@ -476,7 +476,7 @@ uint8_t unpackRlcUeReconfigReq(DuRlcUeReconfigReq func, Pst *pst, Buffer *mBuf)
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\nRLC: Only LWLC supported for UE Create Request ");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for UE Create Request ");
       ODU_PUT_MSG_BUF(mBuf);
    }
    return RFAILED;
@@ -507,7 +507,7 @@ uint8_t packRlcDlRrcMsgRspToDu(Pst *pst, RlcDlRrcMsgRsp *dlRrcMsgRsp)
    {
       if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-         DU_LOG("\nRLC : Memory allocation failed at packRlcDlRrcMsgRspToDu");
+         DU_LOG("\nERROR  --> RLC : Memory allocation failed at packRlcDlRrcMsgRspToDu");
          return RFAILED;
       }
       /* pack the address of the structure */
@@ -516,7 +516,7 @@ uint8_t packRlcDlRrcMsgRspToDu(Pst *pst, RlcDlRrcMsgRsp *dlRrcMsgRsp)
    }
    else
    {
-      DU_LOG("\nRLC: Only LWLC supported for packRlcDlRrcMsgRspToDu");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for packRlcDlRrcMsgRspToDu");
    }
    return RFAILED;
 }
@@ -550,7 +550,7 @@ uint8_t unpackRlcDlRrcMsgRspToDu(RlcDlRrcMsgRspToDuFunc func, Pst *pst, Buffer *
    else
    {
       /* Nothing to do for other selectors */
-      DU_LOG("\nRLC: Only LWLC supported for DL RRC Message transfer ");
+      DU_LOG("\nERROR  -->  RLC: Only LWLC supported for DL RRC Message transfer ");
       ODU_PUT_MSG_BUF(mBuf);
    }
    return RFAILED;
index d4acd4a..8407e38 100644 (file)
@@ -94,7 +94,7 @@ uint8_t packEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg)
 
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nDU_APP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  DU_APP : Failed to allocate memory");
       return RFAILED;
    }
    if(egtpCfg.localIp.ipV4Pres)
@@ -190,7 +190,7 @@ uint8_t packEgtpCfgCfm(Pst *pst, CmStatus cfm)
   
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nEGTP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  EGTP : Failed to allocate memory");
       return RFAILED;
    }
  
@@ -249,7 +249,7 @@ uint8_t packEgtpSrvOpenReq(Pst *pst)
  
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nDU_APP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  DU_APP : Failed to allocate memory");
       return RFAILED;
    }
   
@@ -302,7 +302,7 @@ uint8_t packEgtpSrvOpenCfm(Pst *pst, CmStatus cfm)
  
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nEGTP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  EGTP : Failed to allocate memory");
       return RFAILED;
    }
  
@@ -364,7 +364,7 @@ uint8_t packEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt)
 
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nDU_APP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  DU_APP : Failed to allocate memory");
       return RFAILED;
    }
 
@@ -434,7 +434,7 @@ uint8_t packEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt)
 
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nEGTP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  EGTP : Failed to allocate memory");
       return RFAILED;
    }
     
@@ -504,7 +504,7 @@ uint8_t packEgtpStartPollingReq(Pst *pst)
 
    if(ODU_GET_MSG_BUF(DFLT_REGION, pst->pool, &mBuf) != ROK)
    {
-      printf("\nDU_APP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  DU_APP : Failed to allocate memory");
       return RFAILED;
    }
 
index 1641bc4..12f673d 100644 (file)
@@ -43,7 +43,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
 
    if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
    {
-      printf("\nSCTP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  SCTP : Failed to allocate memory");
       return RFAILED;
    }
 
@@ -56,7 +56,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
 
    if (ODU_POST_TASK(pst, mBuf) != ROK)
    {
-      printf("\nSCTP : ODU_POST_TASK failed while sending SCTP notification");
+      DU_LOG("\nERROR  -->  SCTP : ODU_POST_TASK failed while sending SCTP notification");
       return RFAILED;
    }
 
index 23acb13..e585379 100644 (file)
@@ -640,6 +640,9 @@ typedef struct schCellCfg
    SchRachCfg     schRachCfg;       /* PRACH config */
    SchBwpDlCfg    schInitialDlBwp;  /* Initial DL BWP */
    SchBwpUlCfg    schInitialUlBwp;  /* Initial UL BWP */
+#ifdef NR_TDD
+   TDDCfg         tddCfg;           /* TDD Cfg */ 
+#endif
 }SchCellCfg;
 
 typedef struct schCellCfgCfm
index c431c68..b792976 100644 (file)
@@ -38,7 +38,7 @@ uint8_t packRlcBoStatus(Pst* pst, RlcBoStatus  *boStatus)
  
    if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) 
    {
-      DU_LOG("\nRLC: Memory allocation failed at packBOStatus");
+      DU_LOG("\nERROR  -->  RLC: Memory allocation failed at packBOStatus");
       return RFAILED;
    }
 
@@ -109,7 +109,7 @@ uint8_t packRlcSchedResultRpt(Pst* pst, RlcSchedResultRpt *schRep)
  
    if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) 
    {
-      DU_LOG("\nMAC: Memory allocation failed at packSchResultRep");
+      DU_LOG("\nERROR  -->  MAC : Memory allocation failed at packSchResultRep");
       return RFAILED;
    }
    if (pst->selector == ODU_SELECTOR_LWLC)
@@ -177,7 +177,7 @@ uint8_t packRlcDlData(Pst* pst, RlcData *dlData)
 
    if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) 
    {
-      DU_LOG("\nRLC: Memory allocation failed at packRlcDlData");
+      DU_LOG("\nERROR  -->  RLC : Memory allocation failed at packRlcDlData");
       return RFAILED;
    }
  
@@ -245,7 +245,7 @@ uint8_t packRlcUlData(Pst* pst, RlcData *ulData)
  
    if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) 
    {
-      DU_LOG("\nMAC : Memory allocation failed at packRlcUlData");
+      DU_LOG("\nERROR  -->  MAC : Memory allocation failed at packRlcUlData");
       return RFAILED;
    }
 
index 28d793c..bba7b90 100644 (file)
@@ -200,14 +200,14 @@ S16 SendF1APMsg(Region region, Pool pool)
 
         if(sctpSend(mBuf) != 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;
       }
@@ -215,7 +215,7 @@ S16 SendF1APMsg(Region region, Pool pool)
    }
    else
    {
-      DU_LOG("\nF1AP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  F1AP : Failed to allocate memory");
       return RFAILED;
    }
 
@@ -275,13 +275,13 @@ S16 BuildAndSendF1SetupRsp()
    Cells_to_be_Activated_List_t *cellToActivate;
    RRC_Version_t      *rrcVer;
    asn_enc_rval_t     encRetVal; 
-   DU_LOG("\nF1AP : Building F1 Setup Response\n");
+   DU_LOG("\nINFO  -->  F1AP : Building F1 Setup Response\n");
 
    /* Allocate the memory for F1SetupRequest_t */
    CU_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");
       return RFAILED;
    }
    f1apMsg->present =  F1AP_PDU_PR_successfulOutcome;
@@ -289,7 +289,7 @@ S16 BuildAndSendF1SetupRsp()
    CU_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");
       CU_FREE(f1apMsg, sizeof(F1AP_PDU_t));
       return RFAILED;  
    }
@@ -308,7 +308,7 @@ S16 BuildAndSendF1SetupRsp()
         elementCnt * sizeof(F1SetupResponseIEs_t *));
    if(f1SetupRsp->protocolIEs.list.array == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation for F1ResponseIEs failed");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation for F1ResponseIEs failed");
       CU_FREE(f1apMsg->choice.successfulOutcome, sizeof(SuccessfulOutcome_t));
       CU_FREE(f1apMsg, sizeof(F1AP_PDU_t));
       return RFAILED;
@@ -631,23 +631,23 @@ S16 BuildAndSendF1SetupRsp()
    /* Check encode results */
    if(encRetVal.encoded == ENCODE_FAIL)
    {
-      DU_LOG("\nF1AP : Could not encode F1SetupResponse structure (at %s)\n",\
+      DU_LOG("\nERROR  -->  F1AP : Could not encode F1SetupResponse structure (at %s)\n",\
            encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
       return RFAILED;   
    } 
    else 
    {
-      DU_LOG("\nF1AP : Created APER encoded buffer for F1SetupResponse\n");
+      DU_LOG("\nDEBUG  -->  F1AP : Created APER encoded buffer for F1SetupResponse\n");
       for(int i=0; i< encBufSize; i++)
       {
-        printf("%x",encBuf[i]);
+        DU_LOG("%x",encBuf[i]);
       } 
    }
 
    /* Sending msg */
    if(SendF1APMsg(CU_APP_MEM_REG, CU_POOL) != ROK)
    {
-      DU_LOG("\nF1AP : Sending F1 Setup Response failed");      
+      DU_LOG("\nERROR  -->  F1AP : Sending F1 Setup Response failed");      
       return RFAILED;
    }
 
@@ -681,13 +681,13 @@ S16 BuildAndSendDUUpdateAck()
    GNBDUConfigurationUpdateAcknowledge_t *gNBDuCfgAck;
    asn_enc_rval_t enRetVal; /* Encoder return value */
 
-   DU_LOG("\nF1AP : Building GNB-DU Config Update Ack\n");
+   DU_LOG("\nINFO  -->  F1AP : Building GNB-DU Config Update Ack\n");
 
    /* Allocate the memory for F1SetupRequest_t */
    CU_ALLOC(f1apMsg, (Size)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");
       return RFAILED;
    }
 
@@ -696,7 +696,7 @@ S16 BuildAndSendDUUpdateAck()
    CU_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");
       CU_FREE(f1apMsg, sizeof(F1AP_PDU_t));
       return RFAILED;
    }
@@ -714,7 +714,7 @@ S16 BuildAndSendDUUpdateAck()
    CU_ALLOC(gNBDuCfgAck->protocolIEs.list.array, elementCnt * sizeof(GNBDUConfigurationUpdateAcknowledgeIEs_t *));
    if(gNBDuCfgAck->protocolIEs.list.array == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation for DuUpdateAcknowledgeIEs failed");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation for DuUpdateAcknowledgeIEs failed");
       CU_FREE(f1apMsg->choice.successfulOutcome, sizeof(SuccessfulOutcome_t));
       CU_FREE(f1apMsg,(Size)sizeof(F1AP_PDU_t));
       return RFAILED;
@@ -758,22 +758,22 @@ S16 BuildAndSendDUUpdateAck()
    /* Checking encode results */
    if(enRetVal.encoded == ENCODE_FAIL) 
    {
-      DU_LOG("\nF1AP : Could not encode DUConfigUpdateAcknowledge structure (at %s)",enRetVal.failed_type ? enRetVal.failed_type->name : "unknown");
+      DU_LOG("\nERROR  -->  F1AP : Could not encode DUConfigUpdateAcknowledge structure (at %s)",enRetVal.failed_type ? enRetVal.failed_type->name : "unknown");
       return RFAILED; 
    } 
    else 
    {
-      DU_LOG("\nF1AP : Created APER encoded buffer for DuConfigUpdateAcknowledge\n");  
+      DU_LOG("\nDEBUG  -->  F1AP : Created APER encoded buffer for DuConfigUpdateAcknowledge\n");  
       for(int i=0; i< encBufSize; i++)
       {
-        printf("%x",encBuf[i]);
+        DU_LOG("%x",encBuf[i]);
       } 
    }
 
    /* Sending msg */
    if(SendF1APMsg(CU_APP_MEM_REG, CU_POOL) != ROK)
    {
-      DU_LOG("\nF1AP : Sending GNB-DU Config Update Ack failed");
+      DU_LOG("\nERROR  -->  F1AP : Sending GNB-DU Config Update Ack failed");
       return RFAILED;
    }
 
@@ -844,20 +844,20 @@ 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
    {
       CU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t));
       if(f1apMsg == NULLP)
       {
-        DU_LOG("\nF1AP : Memory allocation for the BuildAndSendF1ResetReq's F1AP-PDU failed"); 
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for the BuildAndSendF1ResetReq's F1AP-PDU failed"); 
         break;
       }
       f1apMsg->present = F1AP_PDU_PR_initiatingMessage;
       CU_ALLOC(f1apMsg->choice.initiatingMessage, sizeof(InitiatingMessage_t));
       if(f1apMsg->choice.initiatingMessage == NULLP)
       {
-        DU_LOG("\nF1AP : Memory allocation for BuildAndSendF1ResetReq failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for BuildAndSendF1ResetReq failed");
         break;
       }
       f1apMsg->choice.initiatingMessage->procedureCode = ProcedureCode_id_Reset;
@@ -874,7 +874,7 @@ uint8_t BuildAndSendF1ResetReq()
       CU_ALLOC(f1ResetMsg->protocolIEs.list.array,f1ResetMsg->protocolIEs.list.size);
       if(f1ResetMsg->protocolIEs.list.array == NULLP)
       {
-        DU_LOG("\nF1AP : Memory allocation failed for BuildAndSendF1ResetReq");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation failed for BuildAndSendF1ResetReq");
         break;
       }
       for(idx=0; idx<elementCnt; idx++)
@@ -882,7 +882,7 @@ uint8_t BuildAndSendF1ResetReq()
         CU_ALLOC(f1ResetMsg->protocolIEs.list.array[idx],sizeof(ResetIEs_t));
         if(f1ResetMsg->protocolIEs.list.array[idx] == NULLP)
         {
-           DU_LOG("\nF1AP : Memory allocation failed for BuildAndSendF1ResetReq msg array");
+           DU_LOG("\nERROR  -->  F1AP : Memory allocation failed for BuildAndSendF1ResetReq msg array");
            break;
         }
       }
@@ -921,22 +921,22 @@ 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]);
+           DU_LOG("%x",encBuf[idx]);
         }
       }
 
       if(SendF1APMsg(CU_APP_MEM_REG, CU_POOL) != ROK)
       {
-        DU_LOG("\nF1AP : Sending F1 Reset request failed");
+        DU_LOG("\nERROR  -->  F1AP : Sending F1 Reset request failed");
         break;
       }
 
@@ -1140,16 +1140,16 @@ uint8_t fillDlCcchRrcMsg(RRCContainer_t *rrcContainer)
                  /* Encode results */
                  if(encRetVal.encoded == ENCODE_FAIL)
                  {
-                    DU_LOG( "\n F1AP : Could not encode RRCContainer for DL-CCCH Msg(at %s)\n",\
+                    DU_LOG( "\nERROR  -->  F1AP : Could not encode RRCContainer for DL-CCCH Msg(at %s)\n",\
                           encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
                     return RFAILED;
                  }
                  else
                  {
-                    DU_LOG("\n F1AP : Created APER encoded buffer for RRCContainer for DL-CCCH Msg\n");
+                    DU_LOG("\nDEBUG  -->  F1AP : Created APER encoded buffer for RRCContainer for DL-CCCH Msg\n");
                     for(int i = 0; i< encBufSize; i++)
                     {
-                       printf("%x",encBuf[i]);
+                       DU_LOG("%x",encBuf[i]);
                     }
                     rrcContainer->size = encBufSize;
                     CU_ALLOC(rrcContainer->buf, rrcContainer->size);
@@ -1170,13 +1170,13 @@ uint8_t fillDlCcchRrcMsg(RRCContainer_t *rrcContainer)
            }
            else
            {
-              DU_LOG("\nF1AP: Memory Alloc failed for RRC Setup Msg at fillDlCcchRrcMsg()");
+              DU_LOG("\nERROR  -->  F1AP: Memory Alloc failed for RRC Setup Msg at fillDlCcchRrcMsg()");
               ret = RFAILED;
            }
         }
         else
         {
-           DU_LOG("\nF1AP: Memory Alloc failed for RRC Msg at fillDlCcchRrcMsg()");
+           DU_LOG("\nERROR  -->  F1AP: Memory Alloc failed for RRC Msg at fillDlCcchRrcMsg()");
            ret = RFAILED;
         }
       }
@@ -1188,7 +1188,7 @@ uint8_t fillDlCcchRrcMsg(RRCContainer_t *rrcContainer)
    }
    else
    {
-      DU_LOG("\nF1AP: RRC Container is NULLP at fillDlCcchRrcMsg()");
+      DU_LOG("\nERROR  -->  F1AP: RRC Container is NULLP at fillDlCcchRrcMsg()");
       ret = RFAILED;
    }
 }
@@ -1267,14 +1267,14 @@ uint8_t fillCnAssoc(struct DRB_ToAddMod__cnAssociation *cnAssoc)
         }
         else
         {
-           DU_LOG("\nF1AP: Memory alloc failed at mappedQoS_FlowsToAdd in fillCnAssoc()");
+           DU_LOG("\nERROR  -->  F1AP: Memory alloc failed at mappedQoS_FlowsToAdd in fillCnAssoc()");
            CU_FREE(cnAssoc->choice.sdap_Config, sizeof(SDAP_Config_t));
            ret = RFAILED;
         }
       }
       else
       {
-        DU_LOG("\nF1AP: Mem alloc failed at fillCnAssoc()");
+        DU_LOG("\nERROR  -->  F1AP: Mem alloc failed at fillCnAssoc()");
         ret = RFAILED;
       }
    }
@@ -1380,7 +1380,7 @@ uint8_t fillRrcReconfigIE(RRCReconfiguration_IEs_t *rrcReconfigMsg)
            ret = fillDrbCfg(DRB1, rrcReconfigMsg->radioBearerConfig->drb_ToAddModList);
            if(ret == RFAILED)
            {
-              DU_LOG("\n F1AP: Failed to fill DrbCfg at fillRrcReconfigIE()");
+              DU_LOG("\nERROR  -->  F1AP : Failed to fill DrbCfg at fillRrcReconfigIE()");
               CU_FREE(rrcReconfigMsg->radioBearerConfig->srb_ToAddModList, sizeof(SRB_ToAddModList_t));
               CU_FREE(rrcReconfigMsg->radioBearerConfig->drb_ToAddModList, sizeof(DRB_ToAddModList_t));
            }
@@ -1388,7 +1388,7 @@ uint8_t fillRrcReconfigIE(RRCReconfiguration_IEs_t *rrcReconfigMsg)
       }
       else
       {
-        DU_LOG("\n F1AP: memory Alloc failed at fillRrcReconfigIE()");
+        DU_LOG("\nERROR  -->  F1AP : memory Alloc failed at fillRrcReconfigIE()");
         CU_FREE(rrcReconfigMsg->radioBearerConfig->srb_ToAddModList, sizeof(SRB_ToAddModList_t));
       }
    }
@@ -1454,16 +1454,16 @@ uint8_t fillDlDcchRrcMsg(RRCContainer_t *rrcContainer)
                  /* Encode results */
                  if(encRetVal.encoded == ENCODE_FAIL)
                  {
-                    DU_LOG( "\n F1AP : Could not encode RRCContainer for DL-DCCH Msg (at %s)\n",\
+                    DU_LOG( "\nERROR  -->  F1AP : Could not encode RRCContainer for DL-DCCH Msg (at %s)\n",\
                           encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
                     return RFAILED;
                  }
                  else
                  {
-                    DU_LOG("\n F1AP : Created APER encoded buffer for RRCContainer for DL-DCCH Msg\n");
+                    DU_LOG("\nDEBUG  -->  F1AP : Created APER encoded buffer for RRCContainer for DL-DCCH Msg\n");
                     for(int i = 0; i< encBufSize; i++)
                     {
-                       printf("%x",encBuf[i]);
+                       DU_LOG("%x",encBuf[i]);
                     }
                     rrcContainer->size = encBufSize;
                     CU_ALLOC(rrcContainer->buf, rrcContainer->size);
@@ -1479,30 +1479,30 @@ uint8_t fillDlDcchRrcMsg(RRCContainer_t *rrcContainer)
               }
               else
               {
-                 DU_LOG("\nF1AP: Failed to fill RrcReconfig IE at fillDlDcchRrcMsg()");
+                 DU_LOG("\nERROR  -->  F1AP: Failed to fill RrcReconfig IE at fillDlDcchRrcMsg()");
               }
            }
            else
            {
-              DU_LOG("\nF1AP: Memory Alloc failed for RRC Reconfig at fillDlDcchRrcMsg()");
+              DU_LOG("\nERROR  -->  F1AP: Memory Alloc failed for RRC Reconfig at fillDlDcchRrcMsg()");
               ret = RFAILED;
            }
         }
         else
         {
-           DU_LOG("\nF1AP: Memory Alloc failed for RRC Msg at fillDlDcchRrcMsg()");
+           DU_LOG("\nERROR  -->  F1AP: Memory Alloc failed for RRC Msg at fillDlDcchRrcMsg()");
            ret = RFAILED;
         }
       }
       else
       {
-        DU_LOG("\nF1AP: Memory Alloc failed for DL Dcch Msg choice at fillDlDcchRrcMsg()");
+        DU_LOG("\nERROR  -->  F1AP: Memory Alloc failed for DL Dcch Msg choice at fillDlDcchRrcMsg()");
         ret = RFAILED;
       }
    }
    else
    {
-      DU_LOG("\nF1AP: RRC Container is NULLP at fillDlDcchRrcMsg()");
+      DU_LOG("\nERROR  -->  F1AP: RRC Container is NULLP at fillDlDcchRrcMsg()");
       ret = RFAILED;
    }
    return ret;
@@ -1535,7 +1535,7 @@ uint8_t   BuildDLRRCContainer(uint8_t rrcMsgType, RRCContainer_t *rrcContainer)
    { 
       ret = fillDlCcchRrcMsg(rrcContainer);
       if(ret == RFAILED)
-        DU_LOG("\n F1AP: Failed to fill DL-CCCH Msg at RRC SETUP");
+        DU_LOG("\nERROR  -->  F1AP: Failed to fill DL-CCCH Msg at RRC SETUP");
    }
    else if(rrcMsgType == REGISTRATION_ACCEPT)
    {
@@ -1606,12 +1606,12 @@ uint8_t BuildAndSendDLRRCMessageTransfer(uint8_t srbId, uint8_t rrcMsgType)
    DLRRCMessageTransfer_t  *dlRRCMsg = NULLP;
    asn_enc_rval_t   encRetVal;        /* Encoder return value */
 
-   DU_LOG("\n F1AP : Building DL RRC Message Transfer Message\n");
+   DU_LOG("\nINFO  -->  F1AP : Building DL RRC Message Transfer Message\n");
 
    CU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t));
    if(f1apMsg == NULLP)
    {
-      DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation for F1AP-PDU failed");
       return RFAILED;
    }
 
@@ -1620,7 +1620,7 @@ uint8_t BuildAndSendDLRRCMessageTransfer(uint8_t srbId, uint8_t rrcMsgType)
         sizeof(InitiatingMessage_t));
    if(f1apMsg->choice.initiatingMessage == NULLP)
    {
-      DU_LOG(" F1AP : Memory allocation for  F1AP-PDU failed");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation for  F1AP-PDU failed");
       CU_FREE(f1apMsg, sizeof(F1AP_PDU_t));
       return RFAILED;
    }
@@ -1638,7 +1638,7 @@ uint8_t BuildAndSendDLRRCMessageTransfer(uint8_t srbId, uint8_t rrcMsgType)
    CU_ALLOC(dlRRCMsg->protocolIEs.list.array, dlRRCMsg->protocolIEs.list.size);
    if(dlRRCMsg->protocolIEs.list.array == NULLP)
    {
-      DU_LOG(" F1AP : Memory allocation for DL RRC MessageTransferIEs failed");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation for DL RRC MessageTransferIEs failed");
       CU_FREE(f1apMsg->choice.initiatingMessage, sizeof(InitiatingMessage_t));
       CU_FREE(f1apMsg, sizeof(F1AP_PDU_t));
       return RFAILED;
@@ -1706,23 +1706,23 @@ uint8_t BuildAndSendDLRRCMessageTransfer(uint8_t srbId, uint8_t rrcMsgType)
    /* Encode results */
    if(encRetVal.encoded == ENCODE_FAIL)
    {
-      DU_LOG( "\n F1AP : Could not encode DL RRC Message Transfer structure (at %s)\n",\
+      DU_LOG( "\nERROR  -->  F1AP : Could not encode DL RRC Message Transfer structure (at %s)\n",\
            encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
       return RFAILED;
    }
    else
    {
-      DU_LOG("\n F1AP : Created APER encoded buffer for DL RRC Message transfer\n");
+      DU_LOG("\nDEBUG  -->  F1AP : Created APER encoded buffer for DL RRC Message transfer\n");
       for(int i=0; i< encBufSize; i++)
       {
-        printf("%x",encBuf[i]);
+        DU_LOG("%x",encBuf[i]);
       }
    }
 
    /* Sending  msg  */
    if(SendF1APMsg(CU_APP_MEM_REG,CU_POOL)  !=  ROK)
    {
-      DU_LOG("\n F1AP : Sending  DL RRC Message Transfer Failed");
+      DU_LOG("\nERROR  -->  F1AP : Sending  DL RRC Message Transfer Failed");
       return RFAILED;
    }
 
@@ -1795,7 +1795,7 @@ uint8_t procInitULRRCMsg(F1AP_PDU_t *f1apMsg)
    uint8_t idx, rrcMsgType;
    uint8_t ret =ROK;
    InitialULRRCMessageTransfer_t *initULRRCMsg = NULLP;
-   DU_LOG("\n filling the required values in DB in procInitULRRCMsg");
+   DU_LOG("\nINFO -->  F1AP : filling the required values in DB in procInitULRRCMsg");
 
    initULRRCMsg = &f1apMsg->choice.initiatingMessage->value.choice.InitialULRRCMessageTransfer;
 
@@ -1817,7 +1817,7 @@ uint8_t procInitULRRCMsg(F1AP_PDU_t *f1apMsg)
                        .DUtoCURRCContainer.size > 0) && (initULRRCMsg->protocolIEs\
                           .list.array[idx]->value.choice.DUtoCURRCContainer.buf != NULLP))
               {
-                 DU_LOG("\n Received Du to Cu RRC Container ");
+                 DU_LOG("\nINFO  -->  Received Du to Cu RRC Container ");
                  f1apMsgDb.duToCuContainer.size = initULRRCMsg->protocolIEs\
                                                   .list.array[idx]->value.choice.DUtoCURRCContainer.size;
                  CU_ALLOC(f1apMsgDb.duToCuContainer.buf, \
@@ -1831,13 +1831,13 @@ uint8_t procInitULRRCMsg(F1AP_PDU_t *f1apMsg)
               }
               else
               {
-                 DU_LOG("\n Failed to receive Du to Cu RRC Container ");
+                 DU_LOG("\nERROR  -->  Failed to receive Du to Cu RRC Container ");
                  ret = RFAILED;
               }
               break;
            }
         default:
-           DU_LOG("\n Invalid Event %ld", initULRRCMsg->protocolIEs.list.array[idx]->id);
+           DU_LOG("\nERROR  -->  Invalid Event %ld", initULRRCMsg->protocolIEs.list.array[idx]->id);
            break;
       }
    }
@@ -2705,7 +2705,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
                        }
                        break;
                     default:
-                       printf("\nF1AP: Invalid event type %ld", ueSetReq->protocolIEs.list.array[idx]->id);
+                       DU_LOG("\nERROR  -->  F1AP: Invalid event type %ld", ueSetReq->protocolIEs.list.array[idx]->id);
                  }
               }
               break;
@@ -2764,7 +2764,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
    }
 
@@ -2774,7 +2774,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
       CU_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;
       }
    }
@@ -2796,7 +2796,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
         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;
    }
 
@@ -2824,7 +2824,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
         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;
    }
 
@@ -2835,7 +2835,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
         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;
       }
 
@@ -2844,7 +2844,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
       CU_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;
       }
    }
@@ -2856,7 +2856,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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 */
@@ -2867,7 +2867,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
@@ -2910,7 +2910,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
    }
 
@@ -2920,7 +2920,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
       CU_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;
       }
    }
@@ -2934,7 +2934,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
@@ -2944,7 +2944,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
         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 = \
@@ -2955,7 +2955,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
    }
 
@@ -2973,7 +2973,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
         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;
    }
 
@@ -2987,7 +2987,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
    }
 
@@ -3006,7 +3006,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
    CU_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;
    }
 
@@ -3017,7 +3017,7 @@ void FreeUeContextSetupReq(F1AP_PDU_t  *f1apMsg)
         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 = \
@@ -3049,7 +3049,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;
    }
 
@@ -3065,7 +3065,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;
    }
 
@@ -3109,7 +3109,7 @@ uint8_t BuildBWPDlDedPdcchCfg(struct PDCCH_Config *pdcchCfg)
    CU_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;
    }
 
@@ -3118,7 +3118,7 @@ uint8_t BuildBWPDlDedPdcchCfg(struct PDCCH_Config *pdcchCfg)
    CU_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;
@@ -3187,7 +3187,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;
    }
 
@@ -3201,7 +3201,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;
    }
 
@@ -3212,7 +3212,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;
       }
    }
@@ -3256,7 +3256,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;
@@ -3289,7 +3289,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;
    }
 
@@ -3306,7 +3306,7 @@ uint8_t BuildBWPDlDedPdschCfg(struct PDSCH_Config *pdschCfg)
    CU_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)
@@ -3322,7 +3322,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;
    }
    if(BuildPdschTimeDomAllocList(pdschCfg->pdsch_TimeDomainAllocationList) != ROK)
@@ -3341,7 +3341,7 @@ uint8_t BuildBWPDlDedPdschCfg(struct PDSCH_Config *pdschCfg)
    CU_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;
@@ -3383,7 +3383,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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; 
@@ -3392,7 +3392,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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)
@@ -3404,7 +3404,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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;
@@ -3413,7 +3413,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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;
    }
 
@@ -3453,7 +3453,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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;
    }
 
@@ -3462,7 +3462,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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; 
@@ -3474,7 +3474,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;
    }
 
@@ -3483,7 +3483,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;
@@ -3525,7 +3525,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;
    }
 
@@ -3538,7 +3538,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;
    }
 
@@ -3549,7 +3549,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;
       }
    }
@@ -3559,7 +3559,7 @@ uint8_t BuildInitialDlBWP(BWP_DownlinkDedicated_t *dlBwp)
    CU_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;
@@ -3591,7 +3591,7 @@ uint8_t BuildBWPUlDedPuschCfg(PUSCH_Config_t *puschCfg)
    CU_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;
@@ -3602,7 +3602,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;
    }
 
@@ -3622,7 +3622,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;
    }
 
@@ -3638,7 +3638,7 @@ uint8_t BuildBWPUlDedPuschCfg(PUSCH_Config_t *puschCfg)
    CU_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;
@@ -3679,7 +3679,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso
    CU_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;
    }
 
@@ -3688,7 +3688,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso
       CU_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;
       }
    }
@@ -3703,7 +3703,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\
@@ -3734,7 +3734,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;
@@ -3774,7 +3774,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso
    CU_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;
    }
 
@@ -3783,7 +3783,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso
       CU_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;
       }
    }
@@ -3797,7 +3797,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;
    }
 
@@ -3809,7 +3809,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso
    CU_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;
    }
 
@@ -3818,7 +3818,7 @@ uint8_t BuildSrsRsrcAddModList(struct SRS_Config__srs_ResourceToAddModList *reso
       CU_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;
       }
    }
@@ -3835,7 +3835,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 \
@@ -3878,7 +3878,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)
@@ -3894,7 +3894,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;
    }
 
@@ -3932,7 +3932,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp)
    CU_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;
    }
 
@@ -3941,7 +3941,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp)
    CU_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;
    }
 
@@ -3957,7 +3957,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp)
    CU_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;
    }
 
@@ -3966,7 +3966,7 @@ uint8_t BuildInitialUlBWP(BWP_UplinkDedicated_t *ulBwp)
    CU_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;
    }
 
@@ -4003,7 +4003,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch
    CU_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;
    }
 
@@ -4014,7 +4014,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch
    CU_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;
    }
 
@@ -4022,7 +4022,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch
    CU_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;
@@ -4031,7 +4031,7 @@ uint8_t BuildPuschSrvCellCfg(struct UplinkConfig__pusch_ServingCellConfig *pusch
    CU_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;
@@ -4059,7 +4059,7 @@ uint8_t BuildUlCfg(UplinkConfig_t *ulCfg)
    CU_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;
    }
 
@@ -4074,7 +4074,7 @@ uint8_t BuildUlCfg(UplinkConfig_t *ulCfg)
    CU_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;
@@ -4084,7 +4084,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;
    }
 
@@ -4120,7 +4120,7 @@ uint8_t BuildPdschSrvCellCfg(struct ServingCellConfig__pdsch_ServingCellConfig *
    CU_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;
    }
 
@@ -4130,7 +4130,7 @@ uint8_t BuildPdschSrvCellCfg(struct ServingCellConfig__pdsch_ServingCellConfig *
    CU_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;
@@ -4184,13 +4184,13 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg)
    CU_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;
@@ -4200,7 +4200,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg)
    CU_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;
@@ -4211,7 +4211,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg)
    CU_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;
@@ -4220,13 +4220,13 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg)
    CU_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;
@@ -4236,13 +4236,13 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg)
    CU_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;
    }
 
@@ -4251,7 +4251,7 @@ uint8_t BuildSpCellCfgDed(ServingCellConfig_t *srvCellCfg)
    CU_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;
       }
 
@@ -4294,7 +4294,7 @@ uint8_t BuildSpCellCfg(SpCellConfig_t *spCellCfg)
    CU_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;
@@ -4305,7 +4305,7 @@ uint8_t BuildSpCellCfg(SpCellConfig_t *spCellCfg)
    CU_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;
@@ -4314,12 +4314,12 @@ uint8_t BuildSpCellCfg(SpCellConfig_t *spCellCfg)
    CU_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;
@@ -4349,7 +4349,7 @@ uint8_t BuildPhyCellGrpCfg(PhysicalCellGroupConfig_t *phyCellGrpCfg)
    CU_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;
@@ -4391,7 +4391,7 @@ uint8_t BuildTagConfig(struct TAG_Config *tagConfig)
    CU_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;
    }
 
@@ -4404,7 +4404,7 @@ uint8_t BuildTagConfig(struct TAG_Config *tagConfig)
    CU_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;
    }
 
@@ -4414,7 +4414,7 @@ uint8_t BuildTagConfig(struct TAG_Config *tagConfig)
       CU_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;
       }
    }
@@ -4450,7 +4450,7 @@ uint8_t BuildPhrConfig(struct MAC_CellGroupConfig__phr_Config *phrConfig)
    CU_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;
    }
 
@@ -4516,7 +4516,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;
    }
 
@@ -4529,7 +4529,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque
    CU_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;
    }
 
@@ -4539,7 +4539,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque
       CU_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;
       }
    }
@@ -4551,7 +4551,7 @@ uint8_t BuildSchedulingReqConfig(struct SchedulingRequestConfig *schedulingReque
    CU_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;
@@ -4583,13 +4583,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg)
    CU_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;
    }
 
@@ -4597,13 +4597,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg)
    CU_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;
    }
 
@@ -4611,13 +4611,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg)
    CU_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;
    }
 
@@ -4625,13 +4625,13 @@ uint8_t BuildMacCellGrpCfg(MAC_CellGroupConfig_t *macCellGrpCfg)
    CU_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;
    }
 
@@ -5117,7 +5117,7 @@ uint8_t BuildRlcConfig(struct RLC_Config *rlcConfig)
    CU_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;
    }
 
@@ -5126,7 +5126,7 @@ uint8_t BuildRlcConfig(struct RLC_Config *rlcConfig)
    CU_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;
@@ -5140,7 +5140,7 @@ uint8_t BuildRlcConfig(struct RLC_Config *rlcConfig)
    CU_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;
@@ -5173,7 +5173,7 @@ uint8_t BuildMacLCConfig(struct LogicalChannelConfig *macLcConfig)
    CU_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;
    }
 
@@ -5189,7 +5189,7 @@ uint8_t BuildMacLCConfig(struct LogicalChannelConfig *macLcConfig)
    CU_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;
@@ -5198,7 +5198,7 @@ uint8_t BuildMacLCConfig(struct LogicalChannelConfig *macLcConfig)
    CU_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;
@@ -5237,7 +5237,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod
    CU_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;
    }
 
@@ -5247,7 +5247,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod
       CU_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;
       }
    }
@@ -5258,7 +5258,7 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod
    CU_ALLOC(rlcBearerList->list.array[idx]->servedRadioBearer, 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;
    }
 
@@ -5270,13 +5270,13 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod
    CU_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;
    }
 
@@ -5284,13 +5284,13 @@ uint8_t BuildRlcBearerToAddModList(struct CellGroupConfigRrc__rlc_BearerToAddMod
    CU_ALLOC(rlcBearerList->list.array[idx]->mac_LogicalChannelConfig, 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;
    }
 
@@ -5527,12 +5527,12 @@ uint8_t fillCellGrpCfg(CellGroupConfig_t *cellGrp)
       CU_ALLOC(cellGrpCfg.rlc_BearerToAddModList, sizeof(struct CellGroupConfigRrc__rlc_BearerToAddModList));
       if(!cellGrpCfg.rlc_BearerToAddModList)
       {
-        DU_LOG("\nF1AP : Memory allocation failure in CellGrpConfig");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation failure in CellGrpConfig");
         break;
       }
       if(BuildRlcBearerToAddModList(cellGrpCfg.rlc_BearerToAddModList) != ROK)
       {
-        DU_LOG("\nF1AP : fillCellGrpCfg failed");
+        DU_LOG("\nERROR  -->  F1AP : fillCellGrpCfg failed");
         break;
       }
 
@@ -5541,12 +5541,12 @@ uint8_t fillCellGrpCfg(CellGroupConfig_t *cellGrp)
       CU_ALLOC(cellGrpCfg.mac_CellGroupConfig, sizeof(MAC_CellGroupConfig_t));
       if(!cellGrpCfg.mac_CellGroupConfig)
       {
-        DU_LOG("\nF1AP : Memory allocation failure in fillCellGrpCfg");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation failure in fillCellGrpCfg");
         break;
       }
       if(BuildMacCellGrpCfg(cellGrpCfg.mac_CellGroupConfig) != ROK)
       {
-        DU_LOG("\nF1AP : BuildMacCellGrpCfg failed");
+        DU_LOG("\nERROR  -->  F1AP : BuildMacCellGrpCfg failed");
         break;
       }
 
@@ -5555,12 +5555,12 @@ uint8_t fillCellGrpCfg(CellGroupConfig_t *cellGrp)
       CU_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");
         break;
       }
       if(BuildPhyCellGrpCfg(cellGrpCfg.physicalCellGroupConfig) != ROK)
       {
-        DU_LOG("\nF1AP : BuildPhyCellGrpCfg failed");
+        DU_LOG("\nERROR  -->  F1AP : BuildPhyCellGrpCfg failed");
         break;
       }
 
@@ -5568,12 +5568,12 @@ uint8_t fillCellGrpCfg(CellGroupConfig_t *cellGrp)
       CU_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");
         break;
       }
       if(BuildSpCellCfg(cellGrpCfg.spCellConfig) != ROK)
       {
-        DU_LOG("\nF1AP : BuildSpCellCfg failed");
+        DU_LOG("\nERROR  -->  F1AP : BuildSpCellCfg failed");
         break;
       }
 
@@ -5589,16 +5589,16 @@ uint8_t fillCellGrpCfg(CellGroupConfig_t *cellGrp)
       /* 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");
         break;
       }
       else
       {
-        DU_LOG("\n F1AP : Created APER encoded buffer for DuToCuRrcContainer\n");
+        DU_LOG("\nDEBUG  -->  F1AP : Created APER encodedbuffer for DuToCuRrcContainer\n");
         for(int i=0; i< encBufSize; i++)
         {
-           printf("%x",encBuf[i]);
+           DU_LOG("%x",encBuf[i]);
         }
       }
 
@@ -5606,7 +5606,7 @@ uint8_t fillCellGrpCfg(CellGroupConfig_t *cellGrp)
       CU_ALLOC(cellGrp->buf, cellGrp->size);
       if(!cellGrp->buf)
       {
-        DU_LOG("\nF1AP : Memory allocation failed in BuildDuToCuRrcContainer");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildDuToCuRrcContainer");
         break;
       }
       memcpy(cellGrp->buf, encBuf, cellGrp->size);
@@ -5741,7 +5741,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
    CU_ALLOC(featureSets->featureSetsDownlinkPerCC, sizeof(struct FeatureSets__featureSetsDownlinkPerCC));
    if(!featureSets->featureSetsDownlinkPerCC)
    {
-      DU_LOG("\nMemory allocation failed in fillFeatureSets");
+      DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
       return RFAILED;
    }
 
@@ -5751,7 +5751,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
    CU_ALLOC(featureSets->featureSetsDownlinkPerCC->list.array, featureSets->featureSetsDownlinkPerCC->list.size);
    if(!featureSets->featureSetsDownlinkPerCC->list.array)
    {
-      DU_LOG("\nMemory allocation failed in fillFeatureSets");
+      DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
       return RFAILED;
    }
 
@@ -5760,7 +5760,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
       CU_ALLOC(featureSets->featureSetsDownlinkPerCC->list.array[idx], sizeof(struct FeatureSetDownlinkPerCC));
       if(!featureSets->featureSetsDownlinkPerCC->list.array[idx])
       {
-        DU_LOG("\nMemory allocation failed in fillFeatureSets");
+        DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
         return RFAILED;
       }
    }
@@ -5775,7 +5775,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
    CU_ALLOC(featureSets->featureSetsDownlinkPerCC->list.array[idx]->supportedModulationOrderDL, sizeof(ModulationOrder_t));
    if(!featureSets->featureSetsDownlinkPerCC->list.array[idx]->supportedModulationOrderDL)
    {
-      DU_LOG("\nMemory allocation failed in fillFeatureSets");
+      DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
       return RFAILED;
    }
    *(featureSets->featureSetsDownlinkPerCC->list.array[idx]->supportedModulationOrderDL) = ModulationOrder_qam64;
@@ -5784,7 +5784,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
    CU_ALLOC(featureSets->featureSetsUplinkPerCC, sizeof(struct FeatureSets__featureSetsUplinkPerCC));
    if(!featureSets->featureSetsUplinkPerCC)
    {
-      DU_LOG("\nMemory allocation failed in fillFeatureSets");
+      DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
       return RFAILED;
    }
 
@@ -5794,7 +5794,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
    CU_ALLOC(featureSets->featureSetsUplinkPerCC->list.array, featureSets->featureSetsUplinkPerCC->list.size);
    if(!featureSets->featureSetsUplinkPerCC->list.array)
    {
-      DU_LOG("\nMemory allocation failed in fillFeatureSets");
+      DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
       return RFAILED;
    }
 
@@ -5803,7 +5803,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
       CU_ALLOC(featureSets->featureSetsUplinkPerCC->list.array[idx], sizeof(struct FeatureSetUplinkPerCC));
       if(!featureSets->featureSetsUplinkPerCC->list.array[idx])
       {
-         DU_LOG("\nMemory allocation failed in fillFeatureSets");
+         DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
          return RFAILED;
       }
    }
@@ -5819,7 +5819,7 @@ uint8_t fillFeatureSets(FeatureSets_t *featureSets)
    CU_ALLOC(featureSets->featureSetsUplinkPerCC->list.array[idx]->supportedModulationOrderUL, sizeof(ModulationOrder_t));
    if(!featureSets->featureSetsUplinkPerCC->list.array[idx]->supportedModulationOrderUL)
    {
-      DU_LOG("\nMemory allocation failed in fillFeatureSets");
+      DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillFeatureSets");
       return RFAILED;
    }
    *(featureSets->featureSetsUplinkPerCC->list.array[idx]->supportedModulationOrderUL) = ModulationOrder_qam16;
@@ -5889,7 +5889,7 @@ uint8_t fillUeCapRatCont(OCTET_STRING_t *ueCapRatContBuf)
       CU_ALLOC(ueNrCap.rf_Parameters.supportedBandListNR.list.array, ueNrCap.rf_Parameters.supportedBandListNR.list.size);
       if(!ueNrCap.rf_Parameters.supportedBandListNR.list.array)
       {
-         DU_LOG("\nMemory allocation failed in fillUeCapRatCont");
+         DU_LOG("\nERROR  --> F1AP : Memory allocation failed in fillUeCapRatCont");
          ret = RFAILED;
          break;
       }
@@ -5921,14 +5921,14 @@ uint8_t fillUeCapRatCont(OCTET_STRING_t *ueCapRatContBuf)
       CU_ALLOC(ueNrCap.featureSets, sizeof(struct FeatureSets));
       if(!ueNrCap.featureSets)
       {
-         DU_LOG("\nMemory allocation failed in fillUeCapRatCont");
+         DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in fillUeCapRatCont");
         ret = RFAILED;
         break;
       }
 
       if(fillFeatureSets(ueNrCap.featureSets) != ROK)
       {
-         DU_LOG("\nfillDLFeatureSets() failed ");
+         DU_LOG("\nERROR  -->  fillDLFeatureSets() failed ");
          ret = RFAILED;
          break;
       }
@@ -5946,16 +5946,16 @@ uint8_t fillUeCapRatCont(OCTET_STRING_t *ueCapRatContBuf)
       /* Encode results */
       if(encRetVal.encoded == ENCODE_FAIL)
       {
-         DU_LOG( "\n F1AP : Could not encode UE Capability RAT Container (at %s)\n",\
+         DU_LOG( "\nERROR  -->  F1AP : Could not encode UE Capability RAT Container (at %s)\n",\
             encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
          break;
       }
       else
       {
-         DU_LOG("\n F1AP : Created APER encoded buffer for UE Capability RAT Container\n");
+         DU_LOG("\nDEBUG  -->  F1AP : Created APER encodedbuffer for UE Capability RAT Container\n");
          for(int i=0; i< encBufSize; i++)
          {
-            printf("%x",encBuf[i]);
+            DU_LOG("%x",encBuf[i]);
          }
       }
 
@@ -5963,7 +5963,7 @@ uint8_t fillUeCapRatCont(OCTET_STRING_t *ueCapRatContBuf)
       CU_ALLOC(ueCapRatContBuf->buf, ueCapRatContBuf->size);
       if(!ueCapRatContBuf->buf)
       {
-         DU_LOG("\nF1AP : Memory allocation failed in fillUeCapabilityContainer");
+         DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in fillUeCapabilityContainer");
          break;
       }
       memcpy(ueCapRatContBuf->buf, encBuf, ueCapRatContBuf->size);
@@ -6006,7 +6006,7 @@ uint8_t fillUeCapRatContList(UE_CapabilityRAT_ContainerList_t *ueCapablityListBu
        CU_ALLOC(ueCapablityList.list.array, ueCapablityList.list.size);
        if(!ueCapablityList.list.array)
        {
-          DU_LOG("\nMemory allocation failed in fillUeCapRatContList");
+          DU_LOG("\nERROR  -->  Memory allocation failed in fillUeCapRatContList");
          ret = RFAILED;
          break;
        }
@@ -6016,7 +6016,7 @@ uint8_t fillUeCapRatContList(UE_CapabilityRAT_ContainerList_t *ueCapablityListBu
           CU_ALLOC(ueCapablityList.list.array[idx], sizeof(UE_CapabilityRAT_Container_t));
           if(ueCapablityList.list.array[idx] == NULLP)
           {
-            DU_LOG("\nMemory allocation failed in fillUeCapRatContList");
+            DU_LOG("\nERROR  -->  Memory allocation failed in fillUeCapRatContList");
              ret = RFAILED;
             break;
           }
@@ -6035,16 +6035,16 @@ uint8_t fillUeCapRatContList(UE_CapabilityRAT_ContainerList_t *ueCapablityListBu
        /* Encode results */
        if(encRetVal.encoded == ENCODE_FAIL)
        {
-          DU_LOG( "\n F1AP : Could not encode UE Capability RAT Container (at %s)\n",\
+          DU_LOG( "\nERROR  -->  F1AP : Could not encode UE Capability RAT Container (at %s)\n",\
              encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
           break;
        }
        else
        {
-          DU_LOG("\n F1AP : Created APER encoded buffer for UE Capability RAT Container\n");
+          DU_LOG("\nDEBUG  -->  F1AP : Created APER encodedbuffer for UE Capability RAT Container\n");
           for(int i=0; i< encBufSize; i++)
           {
-             printf("%x",encBuf[i]);
+             DU_LOG("%x",encBuf[i]);
           }
        }
     
@@ -6052,7 +6052,7 @@ uint8_t fillUeCapRatContList(UE_CapabilityRAT_ContainerList_t *ueCapablityListBu
        CU_ALLOC(ueCapablityListBuf->buf, ueCapablityListBuf->size);
        if(!ueCapablityListBuf->buf)
        {
-          DU_LOG("\nF1AP : Memory allocation failed in fillUeCapabilityContainer");
+          DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in fillUeCapabilityContainer");
           break;
        }
        memcpy(ueCapablityListBuf->buf, encBuf, ueCapablityListBuf->size);
@@ -6089,7 +6089,7 @@ uint8_t fillCuToDuContainer(CUtoDURRCInformation_t *rrcMsg)
    CU_ALLOC(rrcMsg->uE_CapabilityRAT_ContainerList, sizeof(UE_CapabilityRAT_ContainerList_t));
    if(!rrcMsg->uE_CapabilityRAT_ContainerList)
    {
-      DU_LOG(" F1AP : Memory allocation for CUtoDURRCInformation_ExtIEs failed");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation for CUtoDURRCInformation_ExtIEs failed");
       return RFAILED;
    }
    ret = fillUeCapRatContList(rrcMsg->uE_CapabilityRAT_ContainerList);
@@ -6106,7 +6106,7 @@ uint8_t fillCuToDuContainer(CUtoDURRCInformation_t *rrcMsg)
 
       if(rrcMsg->iE_Extensions->list.array == NULLP)
       {
-        DU_LOG(" F1AP : Memory allocation for CUtoDURRCInformation_ExtIEs failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for CUtoDURRCInformation_ExtIEs failed");
         ret = RFAILED;
       }
 
@@ -6175,7 +6175,7 @@ void FreeCuToDuInfo(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[idx]->id);
                     break;
               }
@@ -6227,12 +6227,12 @@ uint8_t BuildAndSendUeContextSetupReq(uint8_t cuUeF1apId, uint8_t duUeF1apId, \
    uint8_t ret1;
    while(true)
    {
-      DU_LOG("\n F1AP : Building UE Context Setup Request\n");
+      DU_LOG("\nINFO  -->  F1AP : Building UE Context Setup Request\n");
 
       CU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t));
       if(f1apMsg == NULLP)
       {
-        DU_LOG(" F1AP : Memory allocation for F1AP-PDU failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for F1AP-PDU failed");
         break;
       }
 
@@ -6240,7 +6240,7 @@ uint8_t BuildAndSendUeContextSetupReq(uint8_t cuUeF1apId, uint8_t duUeF1apId, \
       CU_ALLOC(f1apMsg->choice.initiatingMessage, sizeof(InitiatingMessage_t));
       if(f1apMsg->choice.initiatingMessage == NULLP)
       {
-        DU_LOG(" F1AP : Memory allocation for  F1AP-PDU failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for     F1AP-PDU failed");
         break;
       }
 
@@ -6262,7 +6262,7 @@ uint8_t BuildAndSendUeContextSetupReq(uint8_t cuUeF1apId, uint8_t duUeF1apId, \
 
       if(ueSetReq->protocolIEs.list.array == NULLP)
       {
-        DU_LOG(" F1AP : Memory allocation for UE Context SetupRequest failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for UE Context SetupRequest failed");
         break;
       }
 
@@ -6388,7 +6388,7 @@ uint8_t BuildAndSendUeContextSetupReq(uint8_t cuUeF1apId, uint8_t duUeF1apId, \
            ueSetReq->protocolIEs.list.array[idx]->value.choice.RRCContainer.size);
       if(!ueSetReq->protocolIEs.list.array[idx]->value.choice.RRCContainer.buf)
       {
-        DU_LOG(" F1AP : Memory allocation for BuildAndSendUeContextSetupReq failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for BuildAndSendUeContextSetupReq failed");
         break;
       }
       memset(ueSetReq->protocolIEs.list.array[idx]->value.choice.RRCContainer.buf, 0, bufLen);
@@ -6418,7 +6418,7 @@ uint8_t BuildAndSendUeContextSetupReq(uint8_t cuUeF1apId, uint8_t duUeF1apId, \
            ueSetReq->protocolIEs.list.array[idx]->value.choice.BitRate.size);
       if(!ueSetReq->protocolIEs.list.array[idx]->value.choice.BitRate.buf)
       {
-        DU_LOG(" F1AP : Failed to allocate memory for Bit Rate in BuildAndSendUeContextSetupReq()");
+        DU_LOG("\nERROR  -->  F1AP : Failed to allocate memory for Bit Rate in BuildAndSendUeContextSetupReq()");
         break;
       }
       memset(ueSetReq->protocolIEs.list.array[idx]->value.choice.BitRate.buf, 0, bufLen);
@@ -6434,23 +6434,23 @@ uint8_t BuildAndSendUeContextSetupReq(uint8_t cuUeF1apId, uint8_t duUeF1apId, \
       /* 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");
         break;
       }
       else
       {
-        DU_LOG("\n F1AP : Created APER encoded buffer for UE Context Setup Request\n");
+        DU_LOG("\nDEBUG  -->  F1AP : Created APER encodedbuffer for UE Context Setup Request\n");
         for(int i=0; i< encBufSize; i++)
         {
-           printf("%x",encBuf[i]);
+           DU_LOG("%x",encBuf[i]);
         }
       }
 
       /* Sending  msg  */
       if(SendF1APMsg(CU_APP_MEM_REG,CU_POOL)   !=      ROK)
       {
-        DU_LOG("\n F1AP : Sending UE Context Setup Request Failed");
+        DU_LOG("\nERROR  -->  F1AP : Sending UE Context Setup Request Failed");
         break;
       }
       ret = ROK;
@@ -6511,7 +6511,7 @@ uint8_t procUlRrcMsg(F1AP_PDU_t *f1apMsg)
               CU_ALLOC(rrcContainer, rrcContLen)
                  if(!rrcContainer)
                  {
-                    DU_LOG("\nCU_STUB: Failed to allocated memory in procUlRrcMsg");
+                    DU_LOG("\nERROR  -->  F1AP : Failed to allocated memory in procUlRrcMsg");
                     return RFAILED;
                  }
               memcpy(rrcContainer, ulRrcMsg->protocolIEs.list.array[idx]->value.choice.RRCContainer.buf,\
@@ -6520,7 +6520,7 @@ uint8_t procUlRrcMsg(F1AP_PDU_t *f1apMsg)
            }
 
         default:
-           DU_LOG("\n Invalid Event %ld", ulRrcMsg->protocolIEs.list.array[idx]->id);
+           DU_LOG("\nERROR  -->  F1AP : Invalid Event %ld", ulRrcMsg->protocolIEs.list.array[idx]->id);
            break;
       }
    }
@@ -6530,12 +6530,12 @@ uint8_t procUlRrcMsg(F1AP_PDU_t *f1apMsg)
       rrcMsgType = setDlRRCMsgType();
       if(rrcMsgType == REGISTRATION_ACCEPT)
       {
-        DU_LOG("\nF1AP: Sending DL RRC MSG for RRC Registration Accept"); 
+        DU_LOG("\nINFO  -->  F1AP: Sending DL RRC MSG for RRC Registration Accept"); 
         ret = BuildAndSendDLRRCMessageTransfer(srbId, rrcMsgType);
       }
       if(rrcMsgType == UE_CONTEXT_SETUP_REQ)
       {
-        DU_LOG("\nF1AP: Sending Ue Context Setup Req"); 
+        DU_LOG("\nINFO  -->  F1AP: Sending Ue Context Setup Req"); 
         ret = BuildAndSendUeContextSetupReq(cuUeF1apId, duUeF1apId,\
               rrcContLen, rrcContainer);
       }
@@ -6546,7 +6546,7 @@ uint8_t procUlRrcMsg(F1AP_PDU_t *f1apMsg)
         rrcMsgType = setDlRRCMsgType();
         if(rrcMsgType == RRC_RECONFIG)
         {
-           DU_LOG("\nF1AP: Sending DL RRC MSG for RRC Reconfig");
+           DU_LOG("\nINFO  -->  F1AP: Sending DL RRC MSG for RRC Reconfig");
            BuildAndSendDLRRCMessageTransfer(srbId, rrcMsgType);
         }
       }
@@ -6621,14 +6621,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 */
       CU_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;
       }
 
@@ -6637,7 +6637,7 @@ uint8_t BuildAndSendF1ResetAck()
       CU_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;
       }
 
@@ -6654,7 +6654,7 @@ uint8_t BuildAndSendF1ResetAck()
       CU_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;
       }
 
@@ -6683,22 +6683,22 @@ 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("\nDEBUG  -->  F1AP : Created APER encodedbuffer for F1ResetAck \n");
         for(int i=0; i< encBufSize; i++)
         {
-           printf("%x",encBuf[i]);
+           DU_LOG("%x",encBuf[i]);
         }
       }
       /* Sending msg */
       if(SendF1APMsg(CU_APP_MEM_REG, CU_POOL) != ROK)
       {
-        DU_LOG("\nF1AP : Sending F1 Reset Response failed");
+        DU_LOG("\nERROR  -->  F1AP : Sending F1 Reset Response failed");
         break;
       }
 
@@ -6769,7 +6769,7 @@ uint8_t BuildUlTnlInfoforDrb2(ULUPTNLInformation_ToBeSetup_List_t *ulInfo)
    CU_ALLOC(ulInfo->list.array,ulInfo->list.size);
    if(ulInfo->list.array == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
       return RFAILED;
    }
    for(arrIdx=0; arrIdx<ulCnt; arrIdx++)
@@ -6777,7 +6777,7 @@ uint8_t BuildUlTnlInfoforDrb2(ULUPTNLInformation_ToBeSetup_List_t *ulInfo)
       CU_ALLOC(ulInfo->list.array[arrIdx],sizeof(ULUPTNLInformation_ToBeSetup_Item_t));
       if(ulInfo->list.array[arrIdx] == NULLP)
       {
-         DU_LOG("\nF1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
+         DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
         return RFAILED;
       }
    }
@@ -6791,7 +6791,7 @@ uint8_t BuildUlTnlInfoforDrb2(ULUPTNLInformation_ToBeSetup_List_t *ulInfo)
         sizeof(GTPTunnel_t));
    if(ulInfo->list.array[arrIdx]->uLUPTNLInformation.choice.gTPTunnel == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
       return RFAILED;
    }
    ulInfo->list.array[arrIdx]->uLUPTNLInformation.choice.gTPTunnel->\
@@ -6802,7 +6802,7 @@ uint8_t BuildUlTnlInfoforDrb2(ULUPTNLInformation_ToBeSetup_List_t *ulInfo)
    if(ulInfo->list.array[arrIdx]->uLUPTNLInformation.choice.gTPTunnel->\
         transportLayerAddress.buf == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
       return RFAILED;
    }
    
@@ -6826,7 +6826,7 @@ uint8_t BuildUlTnlInfoforDrb2(ULUPTNLInformation_ToBeSetup_List_t *ulInfo)
    if(ulInfo->list.array[arrIdx]->uLUPTNLInformation.choice.gTPTunnel->gTP_TEID.buf\
         == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildUlTnlInfoforDrb2");
       return RFAILED;
    }
    ulInfo->list.array[arrIdx]->uLUPTNLInformation.choice.gTPTunnel->\
@@ -6961,7 +6961,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
         CU_ALLOC(drbItem->qoSInformation.choice.eUTRANQoS, sizeof(EUTRANQoS_t));
         if(drbItem->qoSInformation.choice.eUTRANQoS)
         {  
-           DU_LOG("\nF1AP : Memory allocation failed in FillDrb2Item");
+           DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in FillDrb2Item");
            return RFAILED;
         }
         drbItem->qoSInformation.choice.eUTRANQoS->qCI = QCI;
@@ -6981,7 +6981,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
         CU_ALLOC(drbItem->qoSInformation.choice.choice_extension,sizeof(QoSInformation_ExtIEs_t));
         if(drbItem->qoSInformation.choice.choice_extension == NULLP)
         {
-           DU_LOG("\nF1AP : Memory allocation failed in FillDrb2Item"); 
+           DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in FillDrb2Item"); 
            return RFAILED;
         }
 
@@ -6991,7 +6991,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
         ret =  BuildQOSInfo(&drbItem->qoSInformation.choice.choice_extension->value.choice.DRB_Information.dRB_QoS);
         if(ret != ROK)
         {
-           DU_LOG("\nF1AP : BuildQOSInfo failed");
+           DU_LOG("\nERROR  -->  F1AP : BuildQOSInfo failed");
            return RFAILED;
         }
         
@@ -7000,7 +7000,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
               choice_extension->value.choice.DRB_Information.sNSSAI);
         if(ret != ROK)
         {
-           DU_LOG("\nF1AP : BuildSNSSAI failed");
+           DU_LOG("\nERROR  -->  F1AP : BuildSNSSAI failed");
            return RFAILED;
         }
         
@@ -7009,7 +7009,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
               choice_extension->value.choice.DRB_Information.flows_Mapped_To_DRB_List);
         if(ret != ROK)
         {
-           DU_LOG("\nF1AP : BuildFlowsMap failed");
+           DU_LOG("\nERROR  -->  F1AP : BuildFlowsMap failed");
            return RFAILED;
         }
       }
@@ -7019,7 +7019,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
    ret = BuildUlTnlInfoforDrb2(&drbItem->uLUPTNLInformation_ToBeSetup_List);
    if(ret != ROK)
    {
-      DU_LOG("\nF1AP : BuildUlTnlInfoforDrb2 failed");
+      DU_LOG("\nERROR  -->  F1AP : BuildUlTnlInfoforDrb2 failed");
       return RFAILED;
    }
 
@@ -7030,7 +7030,7 @@ uint8_t FillDrb2Item(DRBs_ToBeSetupMod_Item_t *drbItem)
    CU_ALLOC(drbItem->uLConfiguration,sizeof(ULConfiguration_t));
    if(drbItem->uLConfiguration == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation failed in FillDrb2Item");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in FillDrb2Item");
       return RFAILED;
    }
    drbItem->uLConfiguration->uLUEConfiguration = ULUEConfiguration_no_data;
@@ -7061,7 +7061,7 @@ uint8_t FillDrbItemList(struct DRBs_ToBeSetupMod_ItemIEs *drbItemIe)
 
    if(FillDrb2Item(&(drbItemIe->value.choice.DRBs_ToBeSetupMod_Item)) != ROK)
    {
-      DU_LOG("\nF1AP : FillDrb2Item failed"); 
+      DU_LOG("\nERROR  -->  F1AP : FillDrb2Item failed"); 
       return RFAILED;
    }
    return ROK;
@@ -7136,7 +7136,7 @@ uint8_t BuildDrbToBeSetupModList(DRBs_ToBeSetupMod_List_t *drbSet)
    CU_ALLOC(drbSet->list.array, drbSet->list.size);
    if(drbSet->list.array == NULLP)
    {
-      DU_LOG("\nF1AP : Memory allocation failed in BuildDrbToBeSetupModList");
+      DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildDrbToBeSetupModList");
       return  RFAILED;
    }
    for(arrIdx=0; arrIdx<drbCnt; arrIdx++)
@@ -7144,7 +7144,7 @@ uint8_t BuildDrbToBeSetupModList(DRBs_ToBeSetupMod_List_t *drbSet)
       CU_ALLOC(drbSet->list.array[arrIdx], sizeof(DRBs_ToBeSetupMod_ItemIEs_t));
       if(drbSet->list.array[arrIdx] == NULLP)
       {
-         DU_LOG("\nF1AP : Memory allocation failed in BuildDrbToBeSetupModList");
+         DU_LOG("\nERROR  -->  F1AP : Memory allocation failed in BuildDrbToBeSetupModList");
         return  RFAILED;
       }
    }
@@ -7153,7 +7153,7 @@ uint8_t BuildDrbToBeSetupModList(DRBs_ToBeSetupMod_List_t *drbSet)
    ret = FillDrbItemList(drbSet->list.array[arrIdx]);
    if(ret != ROK)
    {
-      DU_LOG("\nF1AP : FillDrbItemList failed");
+      DU_LOG("\nERROR  -->  F1AP : FillDrbItemList failed");
    }
 
    return ret;
@@ -7241,14 +7241,14 @@ uint8_t BuildAndSendUeContextModificationReq()
    UEContextModificationRequest_t *ueContextModifyReq = NULLP;
 
    asn_enc_rval_t         encRetVal;
-   DU_LOG("\nF1AP : Building Ue context modification request\n");
+   DU_LOG("\nINFO  -->  F1AP : Building Ue context modification request\n");
 
    while(1)
    {
       CU_ALLOC(f1apMsg, sizeof(F1AP_PDU_t));
       if(f1apMsg == NULLP)
       {
-        DU_LOG("\nF1AP : Memory allocation for F1AP-PDU failed Ue context modification");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for F1AP-PDU failed Ue context modification");
         break;
       }
 
@@ -7257,7 +7257,7 @@ uint8_t BuildAndSendUeContextModificationReq()
       CU_ALLOC(f1apMsg->choice.initiatingMessage, sizeof(InitiatingMessage_t));
       if(f1apMsg->choice.initiatingMessage == NULLP)
       {
-        DU_LOG("\nF1AP : Memory allocation for F1AP-PDU failed Ue context modification");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for F1AP-PDU failed Ue context modification");
         break;
       }
       f1apMsg->choice.initiatingMessage->procedureCode = ProcedureCode_id_UEContextModification;
@@ -7274,7 +7274,7 @@ uint8_t BuildAndSendUeContextModificationReq()
       CU_ALLOC(ueContextModifyReq->protocolIEs.list.array, ueContextModifyReq->protocolIEs.list.size);
       if(ueContextModifyReq->protocolIEs.list.array == NULLP)
       { 
-        DU_LOG("\nF1AP : Memory allocation for UE context modifcation Request failed");
+        DU_LOG("\nERROR  -->  F1AP : Memory allocation for UE context modifcation Request failed");
         break;
       }
 
@@ -7283,7 +7283,7 @@ uint8_t BuildAndSendUeContextModificationReq()
         CU_ALLOC(ueContextModifyReq->protocolIEs.list.array[ieIdx], sizeof(UEContextModificationRequest_t));
         if(ueContextModifyReq->protocolIEs.list.array[ieIdx] == NULLP)
         {
-           DU_LOG("\nF1AP : Memory allocation for UE context modifcation Request failed");
+           DU_LOG("\nERROR  -->  F1AP : Memory allocation for UE context modifcation Request failed");
            break;
         }
       }
@@ -7325,22 +7325,22 @@ uint8_t BuildAndSendUeContextModificationReq()
       /* Encode results */
       if(encRetVal.encoded == ENCODE_FAIL)
       {
-        DU_LOG("\nF1AP : Could not encode ueContextModifyReq structure (at %s)\n",\
+        DU_LOG("\nERROR  -->  F1AP : Could not encode ueContextModifyReq structure (at %s)\n",\
               encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
         break;
       }
       else
       {
-        DU_LOG("\nF1AP : Created APER encoded buffer for ueContextModifyReq\n");
+        DU_LOG("\nDEBUG  -->  F1AP : Created APER encodedbuffer for ueContextModifyReq\n");
         for(ieIdx=0; ieIdx< encBufSize; ieIdx++)
         {
-           printf("%x",encBuf[ieIdx]);
+           DU_LOG("%x",encBuf[ieIdx]);
         }
       }
 
       if(SendF1APMsg(CU_APP_MEM_REG, CU_POOL) != ROK)
       {
-        DU_LOG("\nF1AP : Sending Ue context modification request  failed");
+        DU_LOG("\nERROR  -->  F1AP : Sending Ue context modification request  failed");
         break;
       }
 
@@ -7378,7 +7378,7 @@ void F1APMsgHdlr(Buffer *mBuf)
    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 */
@@ -7387,19 +7387,19 @@ 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, &copyCnt) != 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 : ");
+   DU_LOG("\nDEBUG  -->  F1AP : Received flat buffer to be decoded : ");
    for(i=0; i< recvBufLen; i++)
    {
-      printf("%x",recvBuf[i]);
+      DU_LOG("%x",recvBuf[i]);
    }
 
    /* Decoding flat buffer into F1AP messsage */
@@ -7411,10 +7411,10 @@ 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");
+   DU_LOG("\n");
    xer_fprint(stdout, &asn_DEF_F1AP_PDU, f1apMsg);
 
    switch(f1apMsg->present)
@@ -7425,47 +7425,48 @@ void F1APMsgHdlr(Buffer *mBuf)
            {
               case InitiatingMessage__value_PR_Reset:
                  {
-                    DU_LOG("\nF1AP : F1 reset request received ");
+                    DU_LOG("\nINFO  -->  F1AP : F1 reset request received ");
                     BuildAndSendF1ResetAck();
                     break;
                  }
 
               case InitiatingMessage__value_PR_F1SetupRequest:
                  {
-                    DU_LOG("\nF1AP : F1 setup request received");
+                    DU_LOG("\nINFO  -->  F1AP : F1 setup request received");
                     BuildAndSendF1SetupRsp();
                     break;
                  }
 
               case InitiatingMessage__value_PR_GNBDUConfigurationUpdate:
                  {
-                    DU_LOG("\nF1AP : GNB-DU config update received");
+                    DU_LOG("\nINFO  -->  F1AP : GNB-DU config update received");
                     BuildAndSendDUUpdateAck();
-                    DU_LOG("\nF1AP : Sending F1 reset request");
+                    DU_LOG("\nINFO  -->  F1AP : Sending F1 reset request");
                     BuildAndSendF1ResetReq();
                     break;
                  }
               case InitiatingMessage__value_PR_InitialULRRCMessageTransfer:
                  {
-                    DU_LOG("\nF1AP : Received InitialULRRCMessageTransfer");
+                    DU_LOG("\nINFO  -->  F1AP : Received InitialULRRCMessageTransfer");
                     procInitULRRCMsg(f1apMsg);
                     break;
                  }
               case InitiatingMessage__value_PR_ULRRCMessageTransfer:
                  {
-                    DU_LOG("\nF1AP : Received ULRRCMessageTransfer");
+                    DU_LOG("\nINFO  -->  F1AP : Received ULRRCMessageTransfer");
                     procUlRrcMsg(f1apMsg);
                     break;
                  }
 
               case InitiatingMessage__value_PR_RRCDeliveryReport:
                  {
-                    DU_LOG("\nF1AP : Received RRC delivery report");
+                    DU_LOG("\nINFO  -->  F1AP : Received RRC delivery report");
                     break;
                  }
               default:
                  {
-                    DU_LOG("\nF1AP : Invalid type of intiating message [%d]",f1apMsg->choice.initiatingMessage->value.present);
+                    DU_LOG("\nERROR  -->  F1AP : Invalid type of intiating message [%d]",\
+                    f1apMsg->choice.initiatingMessage->value.present);
                     return;
                  }
            }/* End of switch(initiatingMessage) */
@@ -7478,18 +7479,18 @@ void F1APMsgHdlr(Buffer *mBuf)
            {
               case SuccessfulOutcome__value_PR_ResetAcknowledge:
                  {
-                    DU_LOG("\nF1Reset Acknowledgement is received successfully ");
+                    DU_LOG("\nINFO  -->  F1Reset Acknowledgement is received successfully ");
                     break;
                  }
               case SuccessfulOutcome__value_PR_UEContextSetupResponse:
                  {
-                    DU_LOG("\nF1AP : UE ContextSetupResponse received");
+                    DU_LOG("\nINFO  -->  F1AP : UE ContextSetupResponse received");
                     f1apMsgDb.dlRrcMsgCount++; /* keeping DL RRC Msg Count */
                     break;
                  }
               default:
                  {
-                    DU_LOG("\nF1AP : Invalid type of successful outcome message [%d]",\
+                    DU_LOG("\nERROR  -->  F1AP : Invalid type of successful outcome message [%d]",\
                           f1apMsg->choice.successfulOutcome->value.present);
                     return;
                  }
@@ -7498,7 +7499,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;
         }
    }/* End of switch(f1apMsg->present) */
index d1c1b1d..ebaade2 100644 (file)
@@ -84,7 +84,7 @@ void sctpNtfyInd(CmInetSctpNotification *ntfy)
 
 void init_log()
 {
-       openlog("CU_STUB",LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);
+    openlog("CU_STUB",LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);
 }
 /*******************************************************************
  *
@@ -112,7 +112,7 @@ uint8_t tst()
    pthread_attr_t attr;
 
    init_log();   
-   DU_LOG("\nStarting CU_STUB\n");
+   DU_LOG("\nINFO   -->  CU_STUB : Starting CU_STUB\n");
 
    /* Start thread to receive console input */
    pthread_attr_init(&attr);
@@ -122,7 +122,7 @@ uint8_t tst()
    retVal = pthread_create(&conThrdId, &attr, cuConsoleHandler, NULLP);
    if(retVal != 0)
    {
-      DU_LOG("\nCU_STUB: Thread creation failed. Cause %d", retVal);
+      DU_LOG("\nERROR  -->  CU_STUB :  Thread creation failed. Cause %d", retVal);
    }
    pthread_attr_destroy(&attr);
 
@@ -164,7 +164,7 @@ void readCuCfg()
 {
    uint32_t ipv4_du, ipv4_cu;
 
-   DU_LOG("\nReading CU configurations");
+   DU_LOG("\nDEBUG  -->  CU_STUB : Reading CU configurations");
 
 #ifdef O1_ENABLE
    if( getStartupConfig(&g_cfg) != ROK )
@@ -246,7 +246,7 @@ void *cuConsoleHandler(void *args)
       if((ch = getchar()) == 'd')
       {
          /* Start Pumping data from CU to DU */
-         DU_LOG("\nEGTP: Sending DL User Data");
+         DU_LOG("\nDEBUG  -->  EGTP: Sending DL User Data");
          cuEgtpDatReq();      
       } 
    }
index 47276dd..2a0e79c 100644 (file)
@@ -47,7 +47,7 @@ EgtpGlobalCb egtpCb;
  ***************************************************************************/
 S16 egtpActvInit()
 {
-  DU_LOG("\n\nEGTP : Initializing");
+  DU_LOG("\n\nDEBUG  -->  EGTP : Initializing");
   memset (&egtpCb, 0, sizeof(EgtpGlobalCb));
   protType = CM_INET_PROTO_UDP;
   return ROK;
@@ -81,14 +81,14 @@ uint8_t egtpInitReq()
    ret = cuEgtpCfgReq();
    if(ret != ROK)
    {
-      DU_LOG("\nEGTP : Configuration failed");
+      DU_LOG("\nERROR  -->  EGTP : Configuration failed");
       return (ret);
    }
 
    ret = cuEgtpSrvOpenReq();
    if(ret != ROK)
    {
-       DU_LOG("\nEGTP : Transport server open request failed");
+       DU_LOG("\nERROR  -->  EGTP : Transport server open request failed");
        return (ret);
    }
 
@@ -98,7 +98,7 @@ uint8_t egtpInitReq()
    ret = cuEgtpTnlMgmtReq(tnlEvt);
    if(ret != ROK)
    {
-      DU_LOG("\n EGTP : Tunnel management request failed");
+      DU_LOG("\nERROR  -->  EGTP : Tunnel management request failed");
       return RFAILED;
    }
 
@@ -138,12 +138,12 @@ S16 cuEgtpCfgReq()
 
    if(ret != ROK)
    {
-      DU_LOG("\nEGTP : TeId hash list initialization failed");
+      DU_LOG("\nERROR  -->  EGTP : TeId hash list initialization failed");
       return RFAILED;
    }
    else
    {
-      DU_LOG("\nEGTP : Configuration successful");
+      DU_LOG("\nINFO  -->  EGTP : Configuration successful");
    }
 
    return ROK;
@@ -171,38 +171,39 @@ S16 cuEgtpSrvOpenReq(Pst *pst)
 
    uint8_t ret;
 
-   DU_LOG("\nEGTP : Received open server request");
+   DU_LOG("\nINFO  -->  EGTP : Received open server request");
  
    sockType = CM_INET_DGRAM;
    if((ret = (cmInetSocket(sockType, &(egtpCb.recvTptSrvr.sockFd), protType))) != ROK)
    {
-      DU_LOG("\nEGTP : Failed to open UDP socket");
+      DU_LOG("\nERROR  -->  EGTP : Failed to open UDP socket");
       return RFAILED;
    }
 
    ret = cmInetBind(&(egtpCb.recvTptSrvr.sockFd), &(egtpCb.recvTptSrvr.addr));
    if(ret != ROK)
    {
-      DU_LOG("\nEGTP : Failed to bind socket");
+      DU_LOG("\nERROR  -->  EGTP : Failed to bind socket");
       return RFAILED;
    }
 
    if(ret = (cmInetSocket(sockType, &(egtpCb.dstCb.sendTptSrvr.sockFd), protType)) != ROK)
    {  
-      DU_LOG("\nEGTP : Failed to open UDP socket");
+      DU_LOG("\nERROR  -->  EGTP : Failed to open UDP socket");
       return RFAILED;
    }
       
    ret = cmInetBind(&(egtpCb.dstCb.sendTptSrvr.sockFd), &(egtpCb.dstCb.sendTptSrvr.addr));
    if(ret != ROK)
    {  
-      DU_LOG("\nEGTP : Failed to bind socket");
+      DU_LOG("\nERROR  -->  EGTP : Failed to bind socket");
       return RFAILED;
    }
        
    /* TODO: set socket options */
 
-   DU_LOG("\nEGTP : Receiver socket[%d] and Sender socket[%d] open", egtpCb.recvTptSrvr.sockFd.fd, egtpCb.dstCb.sendTptSrvr.sockFd.fd);
+   DU_LOG("\nINFO  -->  EGTP : Receiver socket[%d] and Sender socket[%d] open", egtpCb.recvTptSrvr.sockFd.fd,\
+   egtpCb.dstCb.sendTptSrvr.sockFd.fd);
    return ROK;
 } /* cuEgtpSrvOpenReq */
 
@@ -228,7 +229,7 @@ S16 cuEgtpTnlMgmtReq(EgtpTnlEvt tnlEvt)
 {
    S8 ret;
 
-   DU_LOG("\nEGTP : Received tunnel management request");
+   DU_LOG("\nINFO  -->  EGTP : Received tunnel management request");
    switch(tnlEvt.action)
    {
       case EGTP_TNL_MGMT_ADD:
@@ -248,7 +249,7 @@ S16 cuEgtpTnlMgmtReq(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 = RFAILED;
       }
    }
@@ -278,13 +279,13 @@ S16 cuEgtpTnlAdd(EgtpTnlEvt tnlEvt)
    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);
 
    CU_ALLOC(teidCb, (Size)sizeof(EgtpTeIdCb));
 
    if(teidCb == NULLP)
    {
-      DU_LOG("\nEGTP : Memory allocation failed");
+      DU_LOG("\nERROR  -->  EGTP : Memory allocation failed");
       return RFAILED;
    }
 
@@ -296,7 +297,7 @@ S16 cuEgtpTnlAdd(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");
       CU_FREE(teidCb, (Size)sizeof(EgtpTeIdCb));
       return RFAILED;
    }
@@ -338,12 +339,12 @@ S16 cuEgtpTnlMod(EgtpTnlEvt tnlEvt)
    S16   ret;
    EgtpTeIdCb     *teidCb = NULLP;
 
-   printf("\nTunnel modification : LocalTeid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid);
+   DU_LOG("\nDEBUG  -->  CU_STUB : 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("\nDEBUG --> CU_STUBTunnel id not found");
       return RFAILED;
    }  
    
@@ -372,12 +373,12 @@ S16 cuEgtpTnlDel(EgtpTnlEvt tnlEvt)
 {
    EgtpTeIdCb     *teidCb = NULLP;
 
-   DU_LOG("\nEGTP : Tunnel deletion : Local Teid[%d] Remote Teid[%d]", tnlEvt.lclTeid, tnlEvt.remTeid);
+   DU_LOG("\nDEBUG  -->  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 RFAILED;
    } 
 
@@ -617,7 +618,7 @@ S16 cuEgtpDecodeHdr(Buffer *mBuf)
       ODU_REM_PRE_MSG(&extHdrType, mBuf);
    }
 
-   DU_LOG("\nEGTP : Message Buffer after decoding header ");
+   DU_LOG("\nDEBUG  -->  EGTP : Message Buffer after decoding header ");
    ODU_PRINT_MSG(mBuf, 0, 0);
 
    return ROK;
@@ -638,7 +639,7 @@ S16 cuEgtpDatReq()
    /* Send Message to peer */
    while(cnt < 200)
    {
-      DU_LOG("\nEGTP : Sending message[%d]", cnt+1);
+      DU_LOG("\nDEBUG  -->  EGTP : Sending message[%d]", cnt+1);
       cuEgtpSendMsg(egtpMsg.msg);
       cnt++;
    }
@@ -660,14 +661,14 @@ S16 BuildAppMsg(EgtpMsg  *egtpMsg)
    {
       if(ODU_ADD_POST_MSG_MULT((Data *)data, datSize, mBuf) != ROK)
       {
-         DU_LOG("\nEGTP : ODU_ADD_POST_MSG_MULT failed");
+         DU_LOG("\nERROR  -->  EGTP : ODU_ADD_POST_MSG_MULT failed");
          ODU_PUT_MSG_BUF(mBuf);
          return RFAILED;
       }
    }
    else
    {
-       DU_LOG("\nEGTP : Failed to allocate memory");
+       DU_LOG("\nERROR  -->  EGTP : Failed to allocate memory");
        return RFAILED;
    }
  
@@ -763,7 +764,7 @@ S16 BuildEgtpMsg(EgtpMsg *egtpMsg)
    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);
    }
 
@@ -810,7 +811,7 @@ S16 BuildEgtpMsg(EgtpMsg *egtpMsg)
 
    ODU_ADD_PRE_MSG_MULT(&teidCb->preEncodedHdr.hdr[hdrLen], (EGTP_MAX_HDR_LEN - hdrLen), egtpMsg->msg);
 
-   DU_LOG("\nEGTP : Sending message buffer");
+   DU_LOG("\nDEBUG  -->  EGTP : Sending message buffer");
    ODU_PRINT_MSG(egtpMsg->msg, 0, 0);
 
    return ROK;
@@ -832,11 +833,11 @@ S16 cuEgtpSendMsg(Buffer *mBuf)
    ret = cmInetSendMsg(&(egtpCb.dstCb.sendTptSrvr.sockFd), &dstAddr, &info, mBuf, &txLen, CM_INET_NO_FLAG);
    if(ret != ROK && ret != RWOULDBLOCK)
    {
-      DU_LOG("\nEGTP : Message send failure");
+      DU_LOG("\nERROR  -->  EGTP : Message send failure");
       return RFAILED;
    }
    
-   DU_LOG("\nEGTP : Message Sent");
+   DU_LOG("\nDEBUG  -->  EGTP : Message Sent");
  
    return ROK;
 }
index e4c2669..452e318 100644 (file)
@@ -47,7 +47,7 @@ CuSctpDestCb f1Params;
  ***************************************************************************/
 S16 sctpActvInit()
 {
-   DU_LOG("\n\nSCTP : Initializing");
+   DU_LOG("\n\nDEBUG  -->  SCTP : Initializing");
    connUp = FALSE;
    assocId = 0;
    nonblocking = FALSE;
@@ -189,19 +189,19 @@ S16 sctpStartReq()
 
    if((ret = cmInetSocket(socket_type, &f1Params.lstnSockFd, IPPROTO_SCTP) != ROK))
    {
-      DU_LOG("\nSCTP : Socket[%d] coudnt open for listening", f1Params.lstnSockFd.fd);
+      DU_LOG("\nERROR  -->  SCTP : Socket[%d] coudnt open for listening", f1Params.lstnSockFd.fd);
    } 
    else if((ret = cmInetSctpBindx(&f1Params.lstnSockFd, &f1Params.localAddrLst, f1Params.srcPort)) != ROK)
    {
-      DU_LOG("\nSCTP: Binding failed at CU");
+      DU_LOG("\nERROR  -->  SCTP: Binding failed at CU");
    }
    else if((ret = sctpAccept(&f1Params.lstnSockFd, &f1Params.peerAddr, &f1Params.sockFd)) != ROK)
    {
-      DU_LOG("\nSCTP: Unable to accept the connection at CU");
+      DU_LOG("\nERROR  -->  SCTP: Unable to accept the connection at CU");
    }
    else if(sctpSockPoll() != ROK)
    {
-      DU_LOG("\nSCTP: Polling failed to start at CU");
+      DU_LOG("\nERROR  -->  SCTP: Polling failed to start at CU");
    }
    return (ret);
 }
@@ -267,12 +267,12 @@ S16 sctpAccept(CmInetFd *lstnSock_Fd, CmInetAddr *peerAddr, CmInetFd *sock_Fd)
    ret = cmInetListen(lstnSock_Fd, 1);
    if (ret != ROK)
    {
-      DU_LOG("\nSCTP : Listening on socket failed");
+      DU_LOG("\nERROR  -->  SCTP : Listening on socket failed");
       cmInetClose(lstnSock_Fd);
       return RFAILED;
    }
    
-   DU_LOG("\nSCTP : Connecting");
+   DU_LOG("\nINFO  -->  SCTP : Connecting");
 
    while(!connUp)
    {
@@ -283,7 +283,7 @@ S16 sctpAccept(CmInetFd *lstnSock_Fd, CmInetAddr *peerAddr, CmInetFd *sock_Fd)
       }
       else if(ret != ROK)
       {
-         DU_LOG("\nSCTP : Failed to accept connection");
+         DU_LOG("\nERROR  -->  SCTP : Failed to accept connection");
          return RFAILED;
       }
       else
@@ -293,7 +293,7 @@ S16 sctpAccept(CmInetFd *lstnSock_Fd, CmInetAddr *peerAddr, CmInetFd *sock_Fd)
          break;
       }
    }
-   DU_LOG("\nSCTP : Connection established");
+   DU_LOG("\nINFO  -->  SCTP : Connection established");
 
    return ROK;
 }
@@ -320,57 +320,57 @@ S16 sctpNtfyHdlr(CmInetSctpNotification *ntfy)
    switch(ntfy->header.nType)
    {
       case CM_INET_SCTP_ASSOC_CHANGE :
-         DU_LOG("\nSCTP : Assoc change notification received");
+         DU_LOG("\nINFO  -->  SCTP : Assoc change notification received");
          switch(ntfy->u.assocChange.state)
          {
             case CM_INET_SCTP_COMM_UP:
-               DU_LOG("Event : COMMUNICATION UP");
+               DU_LOG("DEBUG  -->  Event : COMMUNICATION UP");
                connUp = TRUE;
                break;
             case CM_INET_SCTP_COMM_LOST:
-               DU_LOG("Event : COMMUNICATION LOST");
+               DU_LOG("DEBUG  -->  Event : COMMUNICATION LOST");
                connUp = FALSE;
                break;
             case CM_INET_SCTP_RESTART:
-               DU_LOG("Event : SCTP RESTART");
+               DU_LOG("DEBUG  -->  Event : SCTP RESTART");
                connUp = FALSE;
                break;
             case CM_INET_SCTP_SHUTDOWN_COMP: /* association gracefully shutdown */
-               DU_LOG("Event : SHUTDOWN COMPLETE");
+               DU_LOG("DEBUG  -->  Event : SHUTDOWN COMPLETE");
                connUp = FALSE;
                break;
             case CM_INET_SCTP_CANT_STR_ASSOC:
-               DU_LOG("Event : CANT START ASSOC");
+               DU_LOG("DEBUG  -->  Event : CANT START ASSOC");
                connUp = FALSE;
                break;
             default:
-               DU_LOG("\nInvalid event");
+               DU_LOG("\nERROR  -->  Invalid event");
                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");
          connUp = FALSE;
          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 notification type\n");
+         DU_LOG("\nERROR  -->  SCTP : Invalid notification type\n");
          break;
    }
 
@@ -430,7 +430,7 @@ S16 sctpSockPoll()
    {
       if((ret = processPolling(&f1PollParams, &f1Params.sockFd, timeoutPtr, &memInfo)) != ROK)
       {
-         DU_LOG("\nSCTP : Failed to RecvMsg for F1 at CU\n");
+         DU_LOG("\nERROR  -->  SCTP : Failed to RecvMsg for F1 at CU\n");
       }
 
       /* Receiving EGTP data */
@@ -438,7 +438,7 @@ S16 sctpSockPoll()
       ret = cmInetRecvMsg(&(egtpCb.recvTptSrvr.sockFd), &egtpFromAddr, &memInfo, &egtpBuf, &egtpBufLen, CM_INET_NO_FLAG);
       if(ret == ROK && egtpBuf != NULLP)
       {
-         DU_LOG("\nEGTP : Received message \n");
+         DU_LOG("\nINFO  -->  EGTP : Received message \n");
          ODU_PRINT_MSG(egtpBuf, 0 ,0);
          cuEgtpHdlRecvMsg(egtpBuf);
 
@@ -490,7 +490,7 @@ S16 processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, uint32_t *t
             ret = sctpNtfyHdlr(&pollParams->ntfy);
             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(connUp & (pollParams->port == f1Params.destPort))
@@ -536,7 +536,7 @@ S16 sctpSend(Buffer *mBuf)
 
    if(ret != ROK && ret != RWOULDBLOCK)
    {
-      DU_LOG("\nSCTP : Send message failed");
+      DU_LOG("\nERROR  -->  SCTP : Send message failed");
       return RFAILED;
    }
 
index 52abb12..a344340 100644 (file)
@@ -97,35 +97,28 @@ void FillSlotConfig()
    uint8_t slot = 0;
    uint8_t symbol =0;
    
-   memset(duCfgParam.macCellCfg.tddCfg.slotCfg, 0, sizeof(duCfgParam.macCellCfg.tddCfg.slotCfg[0][0]*\
-   MAXIMUM_TDD_PERIODICITY*MAX_SYMB_PER_SLOT));
+   memset(duCfgParam.macCellCfg.tddCfg.slotCfg, 0, sizeof(duCfgParam.macCellCfg.tddCfg.slotCfg[slot][symbol]* \
+                          MAX_TDD_PERIODICITY_SLOTS*MAX_SYMB_PER_SLOT));
    
-   //Filling the DL Slots
-   for(slot  =0; slot < NUM_DL_SLOTS; slot++)
+   //Filling the DL Slots and initializing flexi slot
+   for(slot = 0; slot <= NUM_DL_SLOTS; slot++)
    {
       for(symbol =0; symbol < MAX_SYMB_PER_SLOT; symbol++)
       {
         duCfgParam.macCellCfg.tddCfg.slotCfg[slot][symbol] = DL_SLOT;
       }
    }
-   
-   //Filling the Flexi Slot
-   for(symbol =0; symbol < NUM_DL_SYMBOLS; symbol++)
-   {
-      duCfgParam.macCellCfg.tddCfg.slotCfg[GUARD_SLOT_IDX][symbol] = DL_SLOT;
-   }
-   duCfgParam.macCellCfg.tddCfg.slotCfg[GUARD_SLOT_IDX][symbol] = GUARD_SLOT;
-   symbol++;
-   duCfgParam.macCellCfg.tddCfg.slotCfg[GUARD_SLOT_IDX][symbol] = UL_SLOT;
-
-   //Filling the UL Slot
-   for(slot  = GUARD_SLOT_IDX + 1; slot < MAXIMUM_TDD_PERIODICITY; slot++)
+  
+   //Filling UL Slots
+   for(slot = NUM_DL_SLOTS+1; slot <= NUM_DL_SLOTS+NUM_UL_SLOTS; slot++)
    {
-      for(symbol =0; symbol < MAX_SYMB_PER_SLOT; symbol++)
-      {
+      for(symbol = 0; symbol < MAX_SYMB_PER_SLOT; symbol++)
         duCfgParam.macCellCfg.tddCfg.slotCfg[slot][symbol] = UL_SLOT;
-      }
-   }
+   } 
+   //Updating Flexi Slot
+   slot = NUM_DL_SLOTS;
+   duCfgParam.macCellCfg.tddCfg.slotCfg[slot][12] = FLEXI_SLOT;
+   duCfgParam.macCellCfg.tddCfg.slotCfg[slot][13] = UL_SLOT;
 
 }
 #endif
index c0c0b2e..daf5e05 100644 (file)
 #define NR_PCI 1
 #define NR_CELL_ID 1
 #define NR_NUMEROLOGY 0
+
 #define DU_NAME "ORAN_OAM_DU"
 #define CELL_TYPE SMALL
 #define DUPLEX_MODE DUP_MODE_FDD
+
+#ifdef NR_TDD
+#define DUPLEX_MODE DUP_MODE_TDD
+#endif
+
 #define DU_TAC 1
 #define PLMN_MCC0 3
 #define PLMN_MCC1 1
index cf584c6..20b3948 100644 (file)
@@ -60,14 +60,14 @@ S16 SendE2APMsg(Region region, Pool pool)
  
          if(sctpSend(mBuf) != 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;
       }
@@ -75,7 +75,7 @@ S16 SendE2APMsg(Region region, Pool pool)
    }
    else
    {
-      DU_LOG("\nE2AP : Failed to allocate memory");
+      DU_LOG("\nERROR  -->  E2AP : Failed to allocate memory");
       return RFAILED;
    }
  
@@ -143,19 +143,19 @@ S16 BuildAndSendE2SetupRsp()
    uint8_t            elementCnt;
 
  
-   DU_LOG("\nE2AP : Building E2 Setup Response\n");
+   DU_LOG("\nINFO   -->  E2AP : Building E2 Setup Response\n");
 
    RIC_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");
       return RFAILED;
    }
    e2apMsg->present =  E2AP_PDU_PR_successfulOutcome;
    RIC_ALLOC(e2apMsg->choice.successfulOutcome, sizeof(SuccessfulOutcomeE2_t));
    if(e2apMsg->choice.successfulOutcome == NULLP)
    {
-      DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed");
+      DU_LOG("\nERROR  -->  E2AP : Memory allocation for E2AP-PDU failed");
       RIC_FREE(e2apMsg, sizeof(E2AP_PDU_t));
       return RFAILED;  
    }
@@ -174,7 +174,7 @@ S16 BuildAndSendE2SetupRsp()
               e2SetupRsp->protocolIEs.list.size);
    if(e2SetupRsp->protocolIEs.list.array == NULLP)
    {
-      DU_LOG("\nE2AP : Memory allocation for E2ResponseIEs failed");
+      DU_LOG("\nERROR  -->  E2AP : Memory allocation for E2ResponseIEs failed");
       RIC_FREE(e2apMsg->choice.successfulOutcome, sizeof(SuccessfulOutcomeE2_t));
       RIC_FREE(e2apMsg, sizeof(E2AP_PDU_t));
       return RFAILED;
@@ -211,23 +211,23 @@ S16 BuildAndSendE2SetupRsp()
    /* Check encode results */
    if(encRetVal.encoded == ENCODE_FAIL)
    {
-          DU_LOG("\nE2AP : Could not encode E2SetupResponse structure (at %s)\n",\
+          DU_LOG("\nERROR  -->  E2AP : Could not encode E2SetupResponse structure (at %s)\n",\
                           encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
           return RFAILED;   
    } 
    else 
    {
-          DU_LOG("\nE2AP : Created APER encoded buffer for E2SetupResponse\n");
+          DU_LOG("\nDEBUG  -->  E2AP : Created APER encoded buffer for E2SetupResponse\n");
           for(int i=0; i< encBufSize; i++)
           {
-                  printf("%x",encBuf[i]);
+                  DU_LOG("%x",encBuf[i]);
           } 
    }
 
 
    if(SendE2APMsg(RIC_APP_MEM_REG, RIC_POOL) != ROK)
    {
-      DU_LOG("\nE2AP : Sending E2 Setup Response failed");      
+      DU_LOG("\nERROR  -->  E2AP : Sending E2 Setup Response failed");      
       return RFAILED;
    }
 
@@ -352,7 +352,7 @@ S16 BuildRicSubsDetails(RICsubscriptionDetails_t *subsDetails)
                 subsDetails->ricAction_ToBeSetup_List.list.size);
       if(subsDetails->ricAction_ToBeSetup_List.list.array  == NULLP)
       {
-         DU_LOG("\nE2AP : Memory allocation for RICactionToBeSetup Items failed");
+         DU_LOG("\nERROR  -->  E2AP : Memory allocation for RICactionToBeSetup Items failed");
          return RFAILED;
       } 
       RIC_ALLOC(subsDetails->ricAction_ToBeSetup_List.list.array[0],\
@@ -389,12 +389,12 @@ S16 BuildAndSendRicSubscriptionReq()
    asn_enc_rval_t  encRetVal;        /* Encoder return value */
    ricSubsStatus = TRUE;
 
-   DU_LOG("\nE2AP : Building RIC Subscription Request\n");
+   DU_LOG("\nINFO   -->  E2AP : Building RIC Subscription Request\n");
 
    RIC_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");
       return RFAILED;
    }
 
@@ -402,7 +402,7 @@ S16 BuildAndSendRicSubscriptionReq()
    RIC_ALLOC(e2apRicMsg->choice.initiatingMessage, sizeof(InitiatingMessageE2_t));
    if(e2apRicMsg->choice.initiatingMessage == NULLP)
    {
-      DU_LOG("\nE2AP : Memory allocation for E2AP-PDU failed");
+      DU_LOG("\nERROR  -->  E2AP : Memory allocation for E2AP-PDU failed");
       RIC_FREE(e2apRicMsg, sizeof(E2AP_PDU_t));
       return RFAILED;
    }
@@ -422,7 +422,7 @@ S16 BuildAndSendRicSubscriptionReq()
               ricSubscriptionReq->protocolIEs.list.size);
    if(ricSubscriptionReq->protocolIEs.list.array == NULLP)
    {
-      DU_LOG("\nE2AP : Memory allocation for RICSubscriptionRequestIEs failed");
+      DU_LOG("\nERROR  -->  E2AP : Memory allocation for RICSubscriptionRequestIEs failed");
       RIC_FREE(e2apRicMsg->choice.initiatingMessage, sizeof(InitiatingMessageE2_t));
       RIC_FREE(e2apRicMsg, (Size)sizeof(E2AP_PDU_t));
       return RFAILED;
@@ -486,16 +486,16 @@ S16 BuildAndSendRicSubscriptionReq()
                encBuf);
    if(encRetVal.encoded == ENCODE_FAIL)
    {
-      DU_LOG("\nE2AP : Could not encode RicSubscriptionRequest structure (at %s)\n",\
+      DU_LOG("\nERROR  -->  E2AP : Could not encode RicSubscriptionRequest structure (at %s)\n",\
       encRetVal.failed_type ? encRetVal.failed_type->name : "unknown");
       return RFAILED;
    }
    else
    {
-      DU_LOG("\nE2AP : Created APER encoded buffer for RicSubscriptionRequest\n");
+      DU_LOG("\nDEBUG  -->  E2AP : Created APER encoded buffer for RicSubscriptionRequest\n");
       for(int i=0; i< encBufSize; i++)
       {
-          printf("%x",encBuf[i]);
+          DU_LOG("%x",encBuf[i]);
       } 
    }
 
@@ -503,7 +503,7 @@ S16 BuildAndSendRicSubscriptionReq()
    /* Sending msg */
    if(SendE2APMsg(RIC_APP_MEM_REG, RIC_POOL) != ROK)
    {
-      DU_LOG("\nE2AP : Sending RIC subscription Request failed");
+      DU_LOG("\nERROR  -->  E2AP : Sending RIC subscription Request failed");
       return RFAILED;
    }
 
@@ -538,7 +538,7 @@ void E2APMsgHdlr(Buffer *mBuf)
    asn_dec_rval_t  rval; /* Decoder return value */
    E2AP_PDU_t      e2apasnmsg ;
  
-   DU_LOG("\nE2AP : Received E2AP message buffer");
+   DU_LOG("\nINFO  -->  E2AP : Received E2AP message buffer");
    ODU_PRINT_MSG(mBuf, 0,0);
  
    /* Copy mBuf into char array to decode it */
@@ -547,19 +547,19 @@ 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, &copyCnt) != 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 : ");
+   DU_LOG("\nDEBUG  -->  E2AP : Received flat buffer to be decoded : ");
    for(i=0; i< recvBufLen; i++)
    {
-        printf("%x",recvBuf[i]);
+        DU_LOG("%x",recvBuf[i]);
    }
 
    /* Decoding flat buffer into E2AP messsage */
@@ -571,10 +571,10 @@ 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");
+   DU_LOG("\n");
    xer_fprint(stdout, &asn_DEF_E2AP_PDU, e2apMsg);
 
    switch(e2apMsg->present)
@@ -585,18 +585,18 @@ void E2APMsgHdlr(Buffer *mBuf)
          {
             case InitiatingMessageE2__value_PR_E2setupRequest:
             {
-               DU_LOG("\nE2AP : E2 setup request received");
+               DU_LOG("\nINFO  -->  E2AP : E2 setup request received");
                BuildAndSendE2SetupRsp();
               break;
             }
             case InitiatingMessageE2__value_PR_RICindication:
             {
-               DU_LOG("\nE2AP : RIC Indication Acknowledged");
+               DU_LOG("\nINFO  -->  E2AP : RIC Indication Acknowledged");
               break;
             }
             default:
             {
-               DU_LOG("\nE2AP : Invalid type of intiating message [%d]",e2apMsg->choice.initiatingMessage->value.present);
+               DU_LOG("\nERROR  -->  E2AP : Invalid type of intiating message [%d]",e2apMsg->choice.initiatingMessage->value.present);
                return;
             }
          }/* End of switch(initiatingMessage) */
@@ -608,12 +608,12 @@ void E2APMsgHdlr(Buffer *mBuf)
          {
             case SuccessfulOutcomeE2__value_PR_RICsubscriptionResponse:  
             {
-               DU_LOG("\nE2AP : RICsubscriptionResponse Msg Acknowledged");
+               DU_LOG("\nINFO  -->  E2AP : RICsubscriptionResponse Msg Acknowledged");
                break;
             }
             default:
             {
-               DU_LOG("\nE2AP : Invalid type of successfulOutcome message [%d]",e2apMsg->choice.successfulOutcome->value.present);
+               DU_LOG("\nERROR  -->  E2AP : Invalid type of successfulOutcome message [%d]",e2apMsg->choice.successfulOutcome->value.present);
                return;
             }
             break;
@@ -622,7 +622,7 @@ void E2APMsgHdlr(Buffer *mBuf)
       }
       default:
       {
-         DU_LOG("\nE2AP : Invalid type message type ");
+         DU_LOG("\nERROR  -->  E2AP : Invalid type message type ");
          return;
       }
  
index 3f8947a..7bfad92 100644 (file)
@@ -103,7 +103,7 @@ uint8_t tst()
 {
    init_log();   
  
-   DU_LOG("\nStarting RIC_STUB");
+   DU_LOG("\nINFO  --> RIC : Starting RIC_STUB");
    /* Read RIC configurations */
    readRicCfg();
 
@@ -134,7 +134,7 @@ void readRicCfg()
 {
    uint32_t ipv4_du, ipv4_ric;
 
-   DU_LOG("\nReading RIC configurations");
+   DU_LOG("\nINFO  --> RIC : Reading RIC configurations");
 
 #ifdef O1_ENABLE
    if( getStartupConfig(&g_cfg) != ROK )
index 53e4d0c..679c43e 100644 (file)
@@ -137,19 +137,19 @@ S16 sctpStartReq()
 
    if((ret = cmInetSocket(socket_type, &ricParams.lstnSockFd, IPPROTO_SCTP) != ROK))
    {
-      DU_LOG("\nSCTP : Socket[%d] coudnt open for listening", ricParams.lstnSockFd.fd);
+      DU_LOG("\nERROR  -->  SCTP : Socket[%d] coudnt open for listening", ricParams.lstnSockFd.fd);
    } 
    else if((ret = cmInetSctpBindx(&ricParams.lstnSockFd, &ricParams.localAddrLst, ricParams.srcPort)) != ROK)
    {
-      DU_LOG("\nSCTP: Binding failed at RIC");
+      DU_LOG("\nERROR  -->  SCTP: Binding failed at RIC");
    }
    else if((ret = sctpAccept(&ricParams.lstnSockFd, &ricParams.peerAddr, &ricParams.sockFd)) != ROK)
    {
-      DU_LOG("\nSCTP: Unable to accept the connection at RIC");
+      DU_LOG("\nERROR  -->  SCTP: Unable to accept the connection at RIC");
    }
    else if(sctpSockPoll() != ROK)
    {
-      DU_LOG("\nSCTP: Polling failed to start at RIC");
+      DU_LOG("\nERROR  -->  SCTP: Polling failed to start at RIC");
    }
    return (ret);
 }
@@ -215,12 +215,12 @@ S16 sctpAccept(CmInetFd *lstnSock_Fd, CmInetAddr *peerAddr, CmInetFd *sock_Fd)
    ret = cmInetListen(lstnSock_Fd, 1);
    if (ret != ROK)
    {
-      DU_LOG("\nSCTP : Listening on socket failed");
+      DU_LOG("\nERROR   -->  SCTP : Listening on socket failed");
       cmInetClose(lstnSock_Fd);
       return RFAILED;
    }
    
-   DU_LOG("\nSCTP : Connecting");
+   DU_LOG("\nINFO   -->  SCTP : Connecting");
 
    while(!connUp)
    {
@@ -231,7 +231,7 @@ S16 sctpAccept(CmInetFd *lstnSock_Fd, CmInetAddr *peerAddr, CmInetFd *sock_Fd)
       }
       else if(ret != ROK)
       {
-         DU_LOG("\nSCTP : Failed to accept connection");
+         DU_LOG("\nERROR  -->  SCTP : Failed to accept connection");
          return RFAILED;
       }
       else
@@ -241,7 +241,7 @@ S16 sctpAccept(CmInetFd *lstnSock_Fd, CmInetAddr *peerAddr, CmInetFd *sock_Fd)
          break;
       }
    }
-   DU_LOG("\nSCTP : Connection established");
+   DU_LOG("\nINFO   -->  SCTP : Connection established");
 
    return ROK;
 }
@@ -268,57 +268,57 @@ S16 sctpNtfyHdlr(CmInetSctpNotification *ntfy)
    switch(ntfy->header.nType)
    {
       case CM_INET_SCTP_ASSOC_CHANGE :
-         DU_LOG("\nSCTP : Assoc change notification received");
+         DU_LOG("\nINFO   -->  SCTP : Assoc change notification received");
          switch(ntfy->u.assocChange.state)
          {
             case CM_INET_SCTP_COMM_UP:
-               DU_LOG("Event : COMMUNICATION UP");
+               DU_LOG("\nINFO   -->  Event : COMMUNICATION UP");
                connUp = TRUE;
                break;
             case CM_INET_SCTP_COMM_LOST:
-               DU_LOG("Event : COMMUNICATION LOST");
+               DU_LOG("\nINFO   -->  Event : COMMUNICATION LOST");
                connUp = FALSE;
                break;
             case CM_INET_SCTP_RESTART:
-               DU_LOG("Event : SCTP RESTART");
+               DU_LOG("\nINFO   -->  Event : SCTP RESTART");
                connUp = FALSE;
                break;
             case CM_INET_SCTP_SHUTDOWN_COMP: /* association gracefully shutdown */
-               DU_LOG("Event : SHUTDOWN COMPLETE");
+               DU_LOG("\nINFO   -->  Event : SHUTDOWN COMPLETE");
                connUp = FALSE;
                break;
             case CM_INET_SCTP_CANT_STR_ASSOC:
-               DU_LOG("Event : CANT START ASSOC");
+               DU_LOG("\nINFO   -->  Event : CANT START ASSOC");
                connUp = FALSE;
                break;
             default:
-               DU_LOG("\nInvalid event");
+               DU_LOG("\nERROR   -->  Invalid event");
                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");
          connUp = FALSE;
          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 notification type\n");
+         DU_LOG("\nERROR   -->  SCTP : Invalid notification type\n");
          break;
    }
 
@@ -369,12 +369,12 @@ S16 sctpSockPoll()
 
    CM_INET_FD_ZERO(&e2PollParams.readFd);
 
-   DU_LOG("\nSCTP : Polling started at RIC\n");
+   DU_LOG("\nINFO  -->  SCTP : Polling started at RIC\n");
    while(1)
    {
       if((ret = processPolling(&e2PollParams, &ricParams.sockFd, timeoutPtr, &memInfo)) != ROK)
       {
-         DU_LOG("\nSCTP : Failed to RecvMsg for E2 at RIC \n");
+         DU_LOG("\nERROR  -->  SCTP : Failed to RecvMsg for E2 at RIC \n");
       }
    };
    return (ret);
@@ -424,7 +424,7 @@ S16 processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, uint32_t *t
             ret = sctpNtfyHdlr(&pollParams->ntfy);
             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(connUp & (pollParams->port == ricParams.destPort))
@@ -470,7 +470,7 @@ S16 sctpSend(Buffer *mBuf)
 
    if(ret != ROK && ret != RWOULDBLOCK)
    {
-      DU_LOG("\nSCTP : Send message failed");
+      DU_LOG("\nERROR  -->  SCTP : Send message failed");
       return RFAILED;
    }