add version signature in core files to be able to compare with the ELF one

This commit is contained in:
Laurent THOMAS
2024-03-08 16:29:54 +01:00
committed by Robert Schmidt
parent 782a850159
commit 1ab3b8dd8e
6 changed files with 19 additions and 20 deletions
+3 -4
View File
@@ -86,7 +86,6 @@ unsigned short config_frames[4] = {2,9,11,13};
#include "openair2/E2AP/RAN_FUNCTION/init_ran_func.h"
#endif
pthread_cond_t nfapi_sync_cond;
pthread_mutex_t nfapi_sync_mutex;
int nfapi_sync_var=-1; //!< protected by mutex \ref nfapi_sync_mutex
@@ -663,10 +662,10 @@ int main( int argc, char **argv ) {
}
}
#ifndef PACKAGE_VERSION
# define PACKAGE_VERSION "UNKNOWN-EXPERIMENTAL"
#define PACKAGE_VERSION "UNKNOWN-EXPERIMENTAL"
#endif
LOG_I(HW, "Version: %s\n", PACKAGE_VERSION);
// strdup to put the sring in the core file for post mortem identification
LOG_I(HW, "Version: %s\n", strdup(PACKAGE_VERSION));
// don't create if node doesn't connect to RRC/S1/GTP
const ngran_node_t node_type = get_node_type();