Print asn1c encoding logs using OAI logging system

This commit is contained in:
laurent
2022-08-11 14:00:43 +02:00
committed by Robert Schmidt
parent 7f910a2e36
commit eba7dc5c76
14 changed files with 71 additions and 155 deletions
-21
View File
@@ -31,27 +31,6 @@
#include "x2ap_common.h"
#include "X2AP_X2AP-PDU.h"
int asn_debug = 0;
int asn1_xer_print = 0;
#if defined(EMIT_ASN_DEBUG_EXTERN)
inline void ASN_DEBUG(const char *fmt, ...)
{
if (asn_debug) {
int adi = asn_debug_indent;
va_list ap;
va_start(ap, fmt);
fprintf(stderr, "[ASN1]");
while(adi--) fprintf(stderr, " ");
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
va_end(ap);
}
}
#endif
ssize_t x2ap_generate_initiating_message(
uint8_t **buffer,
uint32_t *length,