X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fphy_stub_ex_ms.c;h=387326c178fb19c68acd6f49eb075a621b963b20;hb=6178d5e32f0c57e198de80afc23b92c635e4f6df;hp=4bbdbe1e272a0bf586c2bc3e86e6f6a32026376c;hpb=f191979f3454e08cc049af12d6323819730260ef;p=o-du%2Fl2.git diff --git a/src/phy_stub/phy_stub_ex_ms.c b/src/phy_stub/phy_stub_ex_ms.c index 4bbdbe1e2..387326c17 100644 --- a/src/phy_stub/phy_stub_ex_ms.c +++ b/src/phy_stub/phy_stub_ex_ms.c @@ -49,7 +49,50 @@ uint8_t phyStubActvInit(Ent ent, Inst inst, Region reg, Reason reason) return ROK; } +/************************************************************************** +* @brief Function prints the src dest and msg reached to egtp. +* +* @details +* +* Function : callFlowPhyStubActvTsk +* +* Functionality: +* Function prints the src dest and msg reached to egtp. +* +* @param[in] Pst *pst, Post structure of the primitive. +* +* @return void +* +***************************************************************************/ + +void callFlowPhyStubActvTsk(Pst *pst) +{ + char sourceTask[50]; + char destTask[50]="PHY"; + char message[100]; + switch(pst->srcEnt) + { + case ENTPHYSTUB: + { + strcpy(sourceTask,"PHY"); + switch(pst->event) + { + case EVT_PHY_START_SLOT_IND: + { + strcpy(message,"EVT_PHY_START_SLOT_IND"); + break; + } + default: + { + strcpy(message,"Invalid Event"); + break; + } + } + } + } + DU_LOG("\nCall Flow: %s -> %s : %s\n", sourceTask, destTask, message); +} /******************************************************************* * * @brief Receives messages for Phy stub slot indication generator task @@ -69,6 +112,11 @@ uint8_t phyStubActvInit(Ent ent, Inst inst, Region reg, Reason reason) uint8_t phyStubActvTsk(Pst *pst, Buffer *mBuf) { DU_LOG("\nPHY_STUB: Received Event [%d]", pst->event); + +#ifdef CALL_FLOW_DEBUG_LOG + callFlowPhyStubActvTsk(pst); +#endif + switch(pst->srcEnt) { case ENTPHYSTUB: