X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_lim.c;h=e426f8f9761668205d4ad9cc7cc28575cc91f39d;hb=de6a435729e3cad9d4a66329080b8206a64f452c;hp=9c92d9d81f651b4d8e7b6210101d3ed6a26bb365;hpb=514d4c21e79d37636005186dd9ac5510742b7618;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_lim.c b/src/5gnrmac/rg_lim.c index 9c92d9d81..e426f8f97 100755 --- a/src/5gnrmac/rg_lim.c +++ b/src/5gnrmac/rg_lim.c @@ -32,9 +32,6 @@ @brief It has APIs exposed by Lower Interface Modulue of MAC. It acts as an Interface handler for lower interface APIs. */ -static const char* RLOG_MODULE_NAME="MAC"; -static int RLOG_FILE_ID=182; -static int RLOG_MODULE_ID=4096; /* header include files -- defines (.h) */ #include "common_def.h" #include "rgu.h" /* RGU defines */ @@ -104,7 +101,7 @@ uint8_t status if (suId != tfuSap->sapCfg.suId) { - RLOG2(L_ERROR,"Incorrect SuId. Configured (%d) Recieved (%d)", + DU_LOG("\nERROR --> MAC : Incorrect SuId. Configured (%d) Recieved (%d)", tfuSap->sapCfg.suId, suId); return RFAILED; } @@ -133,13 +130,13 @@ static S16 rgLIMValidateSap(Inst inst,SuId suId) /* First lets check the suId */ if( suId != tfuSap->sapCfg.suId) { - RLOG2(L_ERROR,"Incorrect SuId. Configured (%d) Recieved (%d)", + DU_LOG("\nERROR --> MAC : Incorrect SuId. Configured (%d) Recieved (%d)", tfuSap->sapCfg.suId, suId); return RFAILED; } if (tfuSap->sapSta.sapState != LRG_BND) { - RLOG1(L_ERROR,"Lower SAP not enabled SuId (%d)", + DU_LOG("\nERROR --> MAC : Lower SAP not enabled SuId (%d)", tfuSap->sapCfg.suId); return RFAILED; } @@ -212,7 +209,7 @@ TfuDatIndInfo *datInd volatile uint32_t startTime=0; - // printf("5GTF:: DatindRcvd\n"); + // DU_LOG("5GTF:: DatindRcvd\n"); RG_IS_INST_VALID(pst->dstInst); inst = pst->dstInst - RG_INST_START; @@ -222,7 +219,7 @@ TfuDatIndInfo *datInd #ifndef NO_ERRCLS if ((ret = rgLIMValidateSap (inst,suId)) != ROK) { - RLOG_ARG0(L_ERROR,DBG_CELLID,datInd->cellId,"SAP Validation failed"); + DU_LOG("\nERROR --> MAC : SAP Validation failed"); rgLIMUtlFreeDatIndEvnt(datInd, TRUE); return (ret); } @@ -332,7 +329,7 @@ S16 rgLIMTfuDelDatReq(Inst inst,TfuDelDatReqInfo *delDatReq) #ifndef NO_ERRCLS if (tfuSap->sapSta.sapState != LRG_BND) { - RLOG_ARG1(L_ERROR,DBG_CELLID,delDatReq->cellId,"Lower SAP not bound (%d)", + DU_LOG("\nERROR --> MAC : Lower SAP not bound (%d)", tfuSap->sapSta.sapState); return RFAILED; } @@ -341,7 +338,7 @@ S16 rgLIMTfuDelDatReq(Inst inst,TfuDelDatReqInfo *delDatReq) if((ret = RgLiTfuDelDatReq (&tfuSap->sapCfg.sapPst, tfuSap->sapCfg.spId, delDatReq)) != ROK) { - RLOG_ARG0(L_ERROR,DBG_CELLID,delDatReq->cellId,"Call to RgLiTfuDelDatReq() failed"); + DU_LOG("\nERROR --> MAC : Call to RgLiTfuDelDatReq() failed"); } return (ret); } /* rgLIMTfuDatReq*/ @@ -369,7 +366,7 @@ S16 RgLiTfuNonRtInd(Pst *pst,SuId suId) #ifdef NO_ERRCLS if (rgLIMValidateSap (pst->dstInst - RG_INST_START, suId) != ROK) { - RGDBGERRNEW(pst->dstInst - RG_INST_START, (rgPBuf(pst->dstInst - RG_INST_START),"RgLiTfuNonRtInd() SAP Validation failed.\n")); + DU_LOG("\nERROR --> MAC : RgLiTfuNonRtInd() SAP Validation failed.\n"); return RFAILED; } #endif