X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_sys_info_hdl.c;h=b0ece73fe2f3c4f0ec3f264c2ba57994875ee733;hb=41eaaec52d3fe0d5c003e6c0676e9a18fc8ba37a;hp=a53e16215f4d10b5f29d5441ea2664f1418f6ddc;hpb=4e2a29b15e4d8412c1af8d0ba9777be95ecc3ebb;p=o-du%2Fl2.git diff --git a/src/du_app/du_sys_info_hdl.c b/src/du_app/du_sys_info_hdl.c index a53e16215..b0ece73fe 100644 --- a/src/du_app/du_sys_info_hdl.c +++ b/src/du_app/du_sys_info_hdl.c @@ -203,12 +203,14 @@ uint8_t BuildMibPdu() break; } +#ifdef DEBUG_ASN_PRINT /* Print encoded buffer */ for(int i=0; i< encBufSize; i++) { printf("%x\t",encBuf[i]); } printf("\n"); +#endif ret = ROK; break; @@ -297,12 +299,14 @@ uint8_t BuildMibMsg() break; } +#ifdef DEBUG_ASN_PRINT /* Print encoded buffer */ for(int i=0; i< encBufSize; i++) { printf("%x\t",encBuf[i]); } printf("\n"); +#endif /* Free allocated memory */ ret = ROK; @@ -2461,11 +2465,13 @@ uint8_t BuildSib1Msg() "unknown"); break; } +#ifdef DEBUG_ASN_PRINT for(int i=0; i< encBufSize; i++) { printf("%x\t",encBuf[i]); } printf("\n"); +#endif ret = ROK; break; @@ -2863,7 +2869,7 @@ void FreePuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCfg) /* P0 Nominal with grant */ DU_FREE(setup->p0_NominalWithGrant, sizeof(long)); - DU_ALLOC(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t)); + DU_FREE(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t)); } }/* BuildPuschCfgCommon */