move declarations out from log.h to a better place

This commit is contained in:
Laurent THOMAS
2024-03-06 08:51:24 +01:00
parent 2129ee3c9c
commit d1002cc729
4 changed files with 11 additions and 12 deletions
+9
View File
@@ -48,6 +48,8 @@
#include <stdatomic.h>
#include "common/utils/LOG/log.h"
#define LOG_MEM_SIZE 100*1024*1024
// main log variables
// Fixme: a better place to be shure it is called
@@ -58,6 +60,13 @@ void read_cpu_hardware (void) __attribute__ ((constructor));
void read_cpu_hardware (void) {}
#endif
typedef struct {
char* buf_p;
int buf_index;
int enable_flag;
} log_mem_cnt_t;
static log_mem_cnt_t log_mem_d[2];
static int log_mem_flag = 0;
volatile int log_mem_side=0;