From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v3 4/8] eal: change specific log levels at startup Date: Tue, 18 Apr 2017 10:02:22 +0200 Message-ID: <20170418100222.417c286a@glumotte.dev.6wind.com> References: <20170329155323.4760-1-olivier.matz@6wind.com> <20170404164040.24132-1-olivier.matz@6wind.com> <20170404164040.24132-5-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, david.marchand@6wind.com, bruce.richardson@intel.com, thomas.monjalon@6wind.com, keith.wiles@intel.com, stephen@networkplumber.org, "Tan, Jianfeng" To: Ferruh Yigit Return-path: Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by dpdk.org (Postfix) with ESMTP id 270BC2C5 for ; Tue, 18 Apr 2017 10:01:56 +0200 (CEST) Received: by mail-wr0-f177.google.com with SMTP id l28so96440319wre.0 for ; Tue, 18 Apr 2017 01:01:56 -0700 (PDT) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Jianfeng, Ferruh, Thank you for spotting these issues. I'm on it, I will send a patch to fix them asap. Olivier On Fri, 14 Apr 2017 16:32:57 +0100, Ferruh Yigit wrote: > Hi Olivier, > > On 4/4/2017 5:40 PM, Olivier Matz wrote: > > Example of use: > > ./app/test-pmd --log-level='pmd\.i40e.*,8' > > > > This enables debug logs for all dynamic logs whose type starts with > > 'pmd.i40e'. > > > > Signed-off-by: Olivier Matz > > <...> > > > index f0ded185b..d98d56d2f 100644 > > --- a/lib/librte_eal/linuxapp/eal/eal.c > > +++ b/lib/librte_eal/linuxapp/eal/eal.c > > @@ -776,10 +776,8 @@ rte_eal_init(int argc, char **argv) > > > > thread_id = pthread_self(); > > > > - eal_log_level_parse(argc, argv); > > - > > /* set log level as early as possible */ > > - rte_set_log_level(internal_config.log_level); > > Removing this line prevents using RTE_LOG_LEVEL config option. > > When there is no command line argument provided, I think it makes sense > to use config option. Currently config option is set to INFO level but > app shows DEBUG level logs, this is confusing. > > > + eal_log_level_parse(argc, argv); > > > > if (rte_eal_cpu_init() < 0) { > > rte_eal_init_alert("Cannot detect lcores."); > > >