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 m2ap_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_M2AP_M2AP_PDU, (void *)&pdu);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ ssize_t m2ap_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_M2AP_M2AP_PDU, (void *)&pdu);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,6 @@
|
||||
# define M2AP_PORT 36423
|
||||
#endif
|
||||
|
||||
extern int asn1_xer_print;
|
||||
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "m2ap_default_values.h"
|
||||
#define M2AP_INFO(x, args...) LOG_I(M2AP, x, ##args)
|
||||
|
||||
@@ -165,7 +165,7 @@ int m2ap_decode_pdu(M2AP_M2AP_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_M2AP_M2AP_PDU, pdu);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ int m2ap_encode_pdu(M2AP_M2AP_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_M2AP_M2AP_PDU, (void *)pdu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user