From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 18C0D5587 for ; Tue, 18 Apr 2017 16:22:25 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 86E832668D; Tue, 18 Apr 2017 16:22:14 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org Cc: ferruh.yigit@intel.com, jianfeng.tan@intel.com, thomas@monjalon.net Date: Tue, 18 Apr 2017 16:22:20 +0200 Message-Id: <20170418142225.6308-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 1/6] eal: fix default log level X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 14:22:25 -0000 The initialization of the default log level (from configuration) was removed by mistake in a previous commit. The global log level was wrongly set to debug when no --log-level argument was passed. Restore this initialization. Before: $ ./build/app/test RTE>>dump_log_types global log level is debug ... After: $ ./build/app/test RTE>>dump_log_types global log level is info ... Fixes: 845afe51e428 ("eal: change specific log levels at startup") Reported-by: Ferruh Yigit Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal.c | 1 + lib/librte_eal/linuxapp/eal/eal.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 3b66da6cd..db154db9a 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -324,6 +324,7 @@ eal_log_level_parse(int argc, char **argv) optreset = 1; eal_reset_internal_config(&internal_config); + rte_log_set_global_level(internal_config.log_level); while ((opt = getopt_long(argc, argvopt, eal_short_options, eal_long_options, &option_index)) != EOF) { diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index f3fbeb9c7..b2758799c 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -493,6 +493,7 @@ eal_log_level_parse(int argc, char **argv) optind = 1; eal_reset_internal_config(&internal_config); + rte_log_set_global_level(internal_config.log_level); while ((opt = getopt_long(argc, argvopt, eal_short_options, eal_long_options, &option_index)) != EOF) { -- 2.11.0