X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_e2ap_msg_hdl.c;h=b01fcb2fb3aacd78554ab57fcdba32b25dc26606;hb=3eb33bcb19a8e47fcf8b58b417d6fa05919952cf;hp=c45ed3be82f11f0c2fc5b369fdf30094654530cb;hpb=a8172a8516a32c4141ad93247695ae044c945177;p=o-du%2Fl2.git diff --git a/src/du_app/du_e2ap_msg_hdl.c b/src/du_app/du_e2ap_msg_hdl.c index c45ed3be8..b01fcb2fb 100644 --- a/src/du_app/du_e2ap_msg_hdl.c +++ b/src/du_app/du_e2ap_msg_hdl.c @@ -476,10 +476,12 @@ uint8_t BuildAndSendE2SetupReq() else { DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for E2SetupRequest\n"); +#ifdef DEBUG_ASN_PRINT for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); } +#endif } if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { @@ -841,10 +843,12 @@ uint8_t BuildAndSendRicSubscriptionRsp() else { DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for RIC subscription response \n"); +#ifdef DEBUG_ASN_PRINT for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); } +#endif } if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) @@ -1367,10 +1371,12 @@ uint8_t BuildAndSendRicIndication() else { DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for RIC Indication Message \n"); +#ifdef DEBUG_ASN_PRINT for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); } +#endif } if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) @@ -1570,10 +1576,12 @@ uint8_t BuildAndSendE2NodeConfigUpdate() else { DU_LOG("\nDEBUG --> E2AP : Created APER encoded buffer for E2nodeConfigurationUpdate\n"); +#ifdef DEBUG_ASN_PRINT for(int i=0; i< encBufSize; i++) { printf("%x",encBuf[i]); } +#endif } if(SendE2APMsg(DU_APP_MEM_REGION, DU_POOL) != ROK) { @@ -1633,11 +1641,13 @@ void E2APMsgHdlr(Buffer *mBuf) return; } +#ifdef DEBUG_ASN_PRINT printf("\nDEBUG --> E2AP : Received flat buffer to be decoded : "); for(i=0; i< recvBufLen; i++) { printf("%x",recvBuf[i]); } +#endif /* Decoding flat buffer into E2AP messsage */ e2apMsg = &e2apasnmsg;