X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_ram.c;h=ed7e0025c56d481fb9c26816a6ba6f943e483300;hb=2bd852089c3226f721d83b30f816b90f803237f6;hp=2d42b578905bbe9852bb61ac6b100e564a4ef48b;hpb=514d4c21e79d37636005186dd9ac5510742b7618;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_ram.c b/src/5gnrsch/rg_sch_ram.c index 2d42b5789..ed7e0025c 100755 --- a/src/5gnrsch/rg_sch_ram.c +++ b/src/5gnrsch/rg_sch_ram.c @@ -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" @@ -49,8 +46,6 @@ static int RLOG_FILE_ID=171; #include "rg_sch_err.h" /* Scheduler error defines */ #include "rg_sch.h" /* Scheduler defines */ #include "rg_sch_cmn.h" -#include "rl_interface.h" -#include "rl_common.h" /* header/extern include files (.x) */ @@ -218,9 +213,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 +242,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 +305,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 +324,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 +338,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 +522,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 +737,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 +776,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 +784,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 +859,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 +1166,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 */