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:
Guido Casati
2025-02-11 13:10:21 +01:00
parent 2146f29c44
commit 1ef24796f9
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -10,3 +10,7 @@ target_include_directories(e1ap PUBLIC ${CMAKE_CURRENT_DIR})
if(ENABLE_TESTS)
add_subdirectory(tests)
endif()
if(ENABLE_TESTS)
target_compile_definitions(e1ap PRIVATE E1AP_LOG_ERRORS)
endif()
+1 -1
View File
@@ -28,7 +28,7 @@
#include "openair3/UTILS/conversions.h"
#include "e1ap_messages_types.h"
#ifdef ENABLE_TESTS
#ifdef E1AP_LOG_ERRORS
#define PRINT_ERROR(...) fprintf(stderr, ##__VA_ARGS__);
#else
#define PRINT_ERROR(...) // Do nothing