remove dead code and replace unmanaged asn1_xer_print global variable by the appropriate existing debug flag
This commit is contained in:
committed by
Robert Schmidt
parent
2dae7b0db4
commit
4a3ebb3033
@@ -47,7 +47,7 @@ ssize_t m3ap_generate_initiating_message(
|
||||
pdu.choice.initiatingMessage.criticality = criticality;
|
||||
ANY_fromType_aper((ANY_t *)&pdu.choice.initiatingMessage.value, td, sptr);
|
||||
|
||||
if (asn1_xer_print) {
|
||||
if (LOG_DEBUGFLAG(DEBUG_ASN1)) {
|
||||
xer_fprint(stdout, &asn_DEF_M3AP_M3AP_PDU, (void *)&pdu);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ ssize_t m3ap_generate_unsuccessfull_outcome(
|
||||
pdu.choice.successfulOutcome.criticality = criticality;
|
||||
ANY_fromType_aper((ANY_t *)&pdu.choice.successfulOutcome.value, td, sptr);
|
||||
|
||||
if (asn1_xer_print) {
|
||||
if (LOG_DEBUGFLAG(DEBUG_ASN1)) {
|
||||
xer_fprint(stdout, &asn_DEF_M3AP_M3AP_PDU, (void *)&pdu);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,8 +48,6 @@
|
||||
# define M3AP_PORT 36444
|
||||
#endif
|
||||
|
||||
extern int asn1_xer_print;
|
||||
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "m3ap_default_values.h"
|
||||
#define M3AP_INFO(x, args...) LOG_I(M3AP, x, ##args)
|
||||
|
||||
@@ -188,7 +188,7 @@ int m3ap_decode_pdu(M3AP_M3AP_PDU_t *pdu, const uint8_t *const buffer, uint32_t
|
||||
length,
|
||||
0,
|
||||
0);
|
||||
if (asn1_xer_print) {
|
||||
if (LOG_DEBUGFLAG(DEBUG_ASN1)) {
|
||||
xer_fprint(stdout, &asn_DEF_M3AP_M3AP_PDU, pdu);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ int m3ap_encode_pdu(M3AP_M3AP_PDU_t *pdu, uint8_t **buffer, uint32_t *len)
|
||||
DevAssert(buffer != NULL);
|
||||
DevAssert(len != NULL);
|
||||
|
||||
if (asn1_xer_print) {
|
||||
if (LOG_DEBUGFLAG(DEBUG_ASN1)) {
|
||||
xer_fprint(stdout, &asn_DEF_M3AP_M3AP_PDU, (void *)pdu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user