X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_common_log.c;h=c5554badb24c55150214df7e6d866d727535bb2c;hb=1cdb89c177269a0756f82ae3eb057fe34e205f41;hp=8835c8fff8973ec330c8520268289f7fa16d3e2a;hpb=8b9dae0cc3f870c61610800427d28c439edff7a7;p=dpdk.git diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c index 8835c8fff8..c5554badb2 100644 --- a/lib/librte_eal/common/eal_common_log.c +++ b/lib/librte_eal/common/eal_common_log.c @@ -17,11 +17,21 @@ #include "eal_private.h" -/* global log structure */ -struct rte_logs rte_logs = { +struct rte_log_dynamic_type { + const char *name; + uint32_t loglevel; +}; + +/** The rte_log structure. */ +static struct rte_logs { + uint32_t type; /**< Bitfield with enabled logs. */ + uint32_t level; /**< Log level. */ + FILE *file; /**< Output file set by rte_openlog_stream, or NULL. */ + size_t dynamic_types_len; + struct rte_log_dynamic_type *dynamic_types; +} rte_logs = { .type = ~0, .level = RTE_LOG_DEBUG, - .file = NULL, }; struct rte_eal_opt_loglevel { @@ -53,11 +63,6 @@ struct log_cur_msg { uint32_t logtype; /**< log type - see rte_log.h */ }; -struct rte_log_dynamic_type { - const char *name; - uint32_t loglevel; -}; - /* per core log */ static RTE_DEFINE_PER_LCORE(struct log_cur_msg, log_cur_msg);