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,
+2 -7
View File
@@ -18,10 +18,8 @@
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
*/
#if HAVE_CONFIG_H_
# include "config.h"
#endif
#ifndef X2AP_COMMON_H_
#define X2AP_COMMON_H_
#include "X2AP_ProtocolIE-Field.h"
#include "X2AP_X2AP-PDU.h"
@@ -35,9 +33,6 @@
#include "X2AP_asn_constant.h"
#include "intertask_interface.h"
#ifndef X2AP_COMMON_H_
#define X2AP_COMMON_H_
/** @defgroup _x2ap_impl_ X2AP Layer Reference Implementation
* @ingroup _ref_implementation_
* @{