X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_ram.c;h=225e448291e5865969748f4386923ab91fa0e2cb;hb=15cfc9c3834a5c77b0cfbbe8b6cb0c576db140e6;hp=e8e3473574581d9fed16f29e3bac91d5bad3abc7;hpb=762bc0a2a50222d74b01d9a88071bfaf5d90979b;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_ram.c b/src/5gnrmac/rg_ram.c index e8e347357..225e44829 100755 --- a/src/5gnrmac/rg_ram.c +++ b/src/5gnrmac/rg_ram.c @@ -32,10 +32,6 @@ @brief This file has APIs to handle the random access procedure functionality. */ -static const char* RLOG_MODULE_NAME="MAC"; -static int RLOG_FILE_ID=132; -static int RLOG_MODULE_ID=4096; - /* header include files (.h) */ #include "common_def.h" #include "rg_env.h" /* MAC Environment Defines */ @@ -115,13 +111,12 @@ RgUeCb* rgRAMCreateUeCb(RgCellCb *cell,CmLteRnti tmpCrnti,Bool insert,RgErrInfo Inst inst = cell->macInst - RG_INST_START; RgUeCb *ueCb = NULLP; - RLOG_ARG1(L_INFO,DBG_CELLID,cell->cellId,"CREATE UECB FOR CRNTI:%d", + DU_LOG("\nINFO --> MAC : CREATE UECB FOR CRNTI:%d", tmpCrnti); /* Allocate the Ue control block */ if (rgAllocSBuf(inst,(Data **)&ueCb, sizeof(*ueCb)) != ROK) { - RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, - "Memory allocation FAILED for CRNTI:%d",tmpCrnti); + DU_LOG("\nERROR --> MAC : Memory allocation FAILED for CRNTI:%d",tmpCrnti); err->errCause = RGERR_RAM_MEM_EXHAUST; return (NULLP); } @@ -255,7 +250,7 @@ S16 rgHndlRaResp(RgCellCb *cell,CmLteTimingInfo timingInfo,RgInfRarInfo *rarInfo } else { - RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"RARNTI:%d Creation of RAR" + DU_LOG("\nERROR --> MAC : RARNTI:%d Creation of RAR" "PDU for failed", rarInfo->raRntiInfo[idx1].raRnti); continue; }