X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Flegtp.c;h=8407e3812c2df91f2f4e097abd44c926bcfaaeb2;hb=cb811f8127971006aa5c345c71cb737e8be8dc10;hp=5eb17e6b853e176bab70021d7317e6665e70c08e;hpb=694adde1a08c393a8443fd5bbd4f036f5cf85403;p=o-du%2Fl2.git diff --git a/src/cm/legtp.c b/src/cm/legtp.c index 5eb17e6b8..8407e3812 100644 --- a/src/cm/legtp.c +++ b/src/cm/legtp.c @@ -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; } @@ -484,52 +484,34 @@ uint8_t unpackEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf) /******************************************************************* * - * @brief Packs Slot indication and sends to EGTP + * @brief Packs Polling requesting and sends to EGTP * * @details * - * Function : packEgtpSlotInd + * Function : packEgtpStartPollingReq * * Functionality: - * Packs slot indication and sends tp EGTP + * Packs polling request and sends to EGTP * * @params[in] Post structure * @return ROK - success * RFAILED - failure * *******************************************************************/ -uint8_t packEgtpSlotInd(Pst *pst) +uint8_t packEgtpStartPollingReq(Pst *pst) { Buffer *mBuf; 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; } ODU_POST_TASK(pst, mBuf); return ROK; - } -/******************************************************************* - * - * @brief Unpacks slot indication - * - * @details - * - * Function : unpackEgtpSlotInd - * - * Functionality: - * Unpacks slot indication - * - * @params[in] - * @return ROK - success - * RFAILED - failure - * -******************************************************************/ -uint8_t unpackEgtpSlotInd(EgtpSlotInd func, Pst *pst, Buffer *mBuf) -{ - return ((*func)()); -} +/********************************************************************** + End of file +**********************************************************************/