X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrrlc%2Fkw_udx_ul.c;h=34d7330d580f0e39da443e8d8f64e188a895c56e;hb=3330932565e15a749fd5dd5039cdea2862ca51cc;hp=2750aef62e0bed44b9aa056133ab545a250737bf;hpb=95fc4329bde1b6a06b00f94bd0eeab8bc5ba7295;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/kw_udx_ul.c b/src/5gnrrlc/kw_udx_ul.c index 2750aef62..34d7330d5 100755 --- a/src/5gnrrlc/kw_udx_ul.c +++ b/src/5gnrrlc/kw_udx_ul.c @@ -18,7 +18,7 @@ /********************************************************************** - Name: LTE RLC layer + Name: NR RLC layer Type: C include file @@ -27,9 +27,6 @@ File: kw_udx_ul.c **********************************************************************/ -static const char* RLOG_MODULE_NAME="UDX"; -static int RLOG_MODULE_ID=262144; -static int RLOG_FILE_ID=204; /** @file kw_udx_ul.c @brief UDX Uplink Module @@ -122,7 +119,7 @@ uint8_t status #if (ERRCLASS & ERRCLS_INT_PAR) if (tRlcCb->init.cfgDone != TRUE) { - RLOG0(L_FATAL, "General configuration not done"); + DU_LOG("\nERROR --> RLC_UL : General configuration not done"); RLC_SEND_SAPID_ALARM(tRlcCb,suId, LKW_EVENT_LI_BND_CFM, LCM_CAUSE_INV_STATE); @@ -131,7 +128,7 @@ uint8_t status if (suId < 0) { - RLOG0(L_ERROR, "Invalid suId"); + DU_LOG("\nERROR --> RLC_UL : Invalid suId"); RLC_SEND_SAPID_ALARM(tRlcCb,suId, LKW_EVENT_LI_BND_CFM, LCM_CAUSE_INV_SUID); @@ -149,9 +146,9 @@ uint8_t status { case RLC_SAP_BINDING: { - if(TRUE == rlcChkTmr(tRlcCb,(PTR)udxSap,RLC_EVT_WAIT_BNDCFM)) + if(TRUE == rlcChkTmr(tRlcCb,(PTR)udxSap,EVENT_RLC_WAIT_BNDCFM)) { - rlcStopTmr (tRlcCb,(PTR)udxSap, RLC_EVT_WAIT_BNDCFM); + rlcStopTmr (tRlcCb,(PTR)udxSap, EVENT_RLC_WAIT_BNDCFM); } udxSap->retryCnt = 0; @@ -225,7 +222,7 @@ RlcCfgCfmInfo *cfmInfo #if (ERRCLASS & ERRCLS_INT_PAR) if (suId < 0) { - RLOG0(L_ERROR, "Invalid suId"); + DU_LOG("\nERROR --> RLC_UL : Invalid suId"); RLC_SEND_SAPID_ALARM(tRlcCb,suId, LKW_EVENT_LI_BND_CFM, LCM_CAUSE_INV_SUID); RLC_FREE_SHRABL_BUF(pst->region, @@ -238,7 +235,7 @@ RlcCfgCfmInfo *cfmInfo if(ROK != rlcDbmFindUlTransaction(tRlcCb,cfmInfo->transId, &cfgTmpData)) { - RLOG0(L_ERROR, "Invalid transId"); + DU_LOG("\nERROR --> RLC_UL : Invalid transId"); RLC_FREE_SHRABL_BUF(pst->region, pst->pool, cfmInfo, @@ -259,7 +256,7 @@ RlcCfgCfmInfo *cfmInfo #if (ERRCLASS & ERRCLS_ADD_RES) if (cfgCfm == NULLP) { - RLOG0(L_FATAL, "Memory Allocation failed."); + DU_LOG("\nERROR --> RLC_UL : Memory Allocation failed."); RLC_FREE_SHRABL_BUF(pst->region, pst->pool, cfmInfo, @@ -331,14 +328,14 @@ CmStatus status #if (ERRCLASS & ERRCLS_INT_PAR) if (suId < 0) { - RLOG0(L_ERROR, "Invalid suId"); + DU_LOG("\nERROR --> RLC_UL : Invalid suId"); return RFAILED; } #endif /* ERRCLASS & ERRCLS_INT_PAR */ if(ROK != rlcDbmFindUlTransaction(tRlcCb, transId, &cfgTmpData)) { - RLOG0(L_ERROR, "Invalid transId"); + DU_LOG("\nERROR --> RLC_UL : Invalid transId"); return (RFAILED); } @@ -360,7 +357,7 @@ CmStatus status /* only newUeInfo needs to be freed here, ueInfo would be freed at the interface or by he receipient in case of tight coupling */ RLC_PST_FREE(pst->region, pst->pool, cfgTmpData->newUeInfo, sizeof(CkwUeInfo)); - RLC_FREE_WC(tRlcCb, cfgTmpData, sizeof (RlcUlCfgTmpData)); + RLC_FREE(tRlcCb, cfgTmpData, sizeof (RlcUlCfgTmpData)); return ROK; } @@ -396,13 +393,13 @@ CmLteRlcId *rlcId rlcDbmFetchUlRbCbByRbId(tRlcCb, rlcId, &rbCb); if (rbCb == NULLP) { - RLOG_ARG2(L_ERROR, DBG_UEID,rlcId->ueId, "CellId [%u]:RbId[%d] not found", + DU_LOG("\nERROR --> RLC_UL : CellId [%u]:RbId[%d] not found", rlcId->cellId,rlcId->rbId); return RFAILED; } /* Start staProhTmr */ - rlcStartTmr(tRlcCb,(PTR)rbCb, RLC_EVT_AMUL_STA_PROH_TMR); + rlcStartTmr(tRlcCb,(PTR)rbCb, EVENT_RLC_AMUL_STA_PROH_TMR); return (ROK); } @@ -482,7 +479,7 @@ RlcCfgCfmInfo *cfgCfm { RLC_CFG_FILL_CFG_CFM(entCfgCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK, CKW_CFG_REAS_INVALID_DIR); - RLOG_ARG2(L_ERROR,DBG_UEID,cfg->ueId,"RBID[%d] direction[%d] is invalid", + DU_LOG("\nDEBUG --> RLC_UL : RBID[%d] direction[%d] is invalid", entCfg->rbId,entCfg->dir); } break; @@ -553,7 +550,7 @@ RlcCfgCfmInfo *cfgCfm RLC_CFG_FILL_CFG_CFM(entCfgCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK, CKW_CFG_REAS_INVALID_CFG); - RLOG0(L_ERROR,"Invalid configuration type"); + DU_LOG("\nERROR --> RLC_UL : Invalid configuration type"); } } }