Fix DLCC logging
Osmo-CC logging appears again in the log.
This commit is contained in:
@@ -45,6 +45,8 @@ enum {
|
|||||||
DJITTER,
|
DJITTER,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define DLCC_DEFINED
|
||||||
|
|
||||||
extern struct log_info_cat log_categories[];
|
extern struct log_info_cat log_categories[];
|
||||||
extern size_t log_categories_size;
|
extern size_t log_categories_size;
|
||||||
|
|
||||||
|
@@ -23,6 +23,9 @@
|
|||||||
#include <osmocom/core/utils.h>
|
#include <osmocom/core/utils.h>
|
||||||
#include <osmocom/core/application.h>
|
#include <osmocom/core/application.h>
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
|
#ifdef DLCC_DEFINED
|
||||||
|
#include <osmocom/cc/misc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
int loglevel = LOGL_INFO;
|
int loglevel = LOGL_INFO;
|
||||||
|
|
||||||
@@ -248,7 +251,7 @@ void logging_init(void)
|
|||||||
.num_cat = log_categories_size,
|
.num_cat = log_categories_size,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef DLCC
|
#ifdef DLCC_DEFINED
|
||||||
osmo_cc_set_log_cat(DLCC);
|
osmo_cc_set_log_cat(DLCC);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user