Add compile definitions E1AP_LOG_ERRORS
* this is necessary to enable the error logs in the E1 libs * also, updated the define name in the E1AP lib
This commit is contained in:
@@ -10,3 +10,7 @@ target_include_directories(e1ap PUBLIC ${CMAKE_CURRENT_DIR})
|
|||||||
if(ENABLE_TESTS)
|
if(ENABLE_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_TESTS)
|
||||||
|
target_compile_definitions(e1ap PRIVATE E1AP_LOG_ERRORS)
|
||||||
|
endif()
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include "openair3/UTILS/conversions.h"
|
#include "openair3/UTILS/conversions.h"
|
||||||
#include "e1ap_messages_types.h"
|
#include "e1ap_messages_types.h"
|
||||||
|
|
||||||
#ifdef ENABLE_TESTS
|
#ifdef E1AP_LOG_ERRORS
|
||||||
#define PRINT_ERROR(...) fprintf(stderr, ##__VA_ARGS__);
|
#define PRINT_ERROR(...) fprintf(stderr, ##__VA_ARGS__);
|
||||||
#else
|
#else
|
||||||
#define PRINT_ERROR(...) // Do nothing
|
#define PRINT_ERROR(...) // Do nothing
|
||||||
|
|||||||
Reference in New Issue
Block a user