summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>2017-12-09 18:53:57 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-01-17 14:21:34 +0100
commit934a5ce960db3dcc0c00d011e5f0602347018560 (patch)
tree9b00844794a3ecbca61ca7c35511517ea7b50bd6
parentffb9fd1b0808e50ee5c9e27c95c5b2c30e06b2cf (diff)
downloaddpdk-934a5ce960db3dcc0c00d011e5f0602347018560.zip
dpdk-934a5ce960db3dcc0c00d011e5f0602347018560.tar.gz
dpdk-934a5ce960db3dcc0c00d011e5f0602347018560.tar.xz
log: update default log levels
Use global default loglevel to DEBUG(8) and dynamic default loglevel to INFO(7). Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com> Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
-rw-r--r--lib/librte_eal/common/eal_common_log.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c
index 5151508..5a3400e 100644
--- a/lib/librte_eal/common/eal_common_log.c
+++ b/lib/librte_eal/common/eal_common_log.c
@@ -152,7 +152,7 @@ __rte_log_register(const char *name, int id)
return -ENOMEM;
rte_logs.dynamic_types[id].name = dup_name;
- rte_logs.dynamic_types[id].loglevel = RTE_LOG_DEBUG;
+ rte_logs.dynamic_types[id].loglevel = RTE_LOG_INFO;
return id;
}
@@ -228,11 +228,7 @@ rte_log_init(void)
{
uint32_t i;
-#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG
- rte_log_set_global_level(RTE_LOG_INFO);
-#else
- rte_log_set_global_level(RTE_LOG_LEVEL);
-#endif
+ rte_log_set_global_level(RTE_LOG_DEBUG);
rte_logs.dynamic_types = calloc(RTE_LOGTYPE_FIRST_EXT_ID,
sizeof(struct rte_log_dynamic_type));