From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id DF30B37B2 for ; Fri, 14 Apr 2017 17:33:00 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP; 14 Apr 2017 08:32:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,199,1488873600"; d="scan'208";a="1155942557" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.122]) ([10.237.220.122]) by fmsmga002.fm.intel.com with ESMTP; 14 Apr 2017 08:32:58 -0700 To: Olivier Matz Cc: dev@dpdk.org, david.marchand@6wind.com, bruce.richardson@intel.com, thomas.monjalon@6wind.com, keith.wiles@intel.com, stephen@networkplumber.org References: <20170329155323.4760-1-olivier.matz@6wind.com> <20170404164040.24132-1-olivier.matz@6wind.com> <20170404164040.24132-5-olivier.matz@6wind.com> From: Ferruh Yigit Message-ID: Date: Fri, 14 Apr 2017 16:32:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <20170404164040.24132-5-olivier.matz@6wind.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v3 4/8] eal: change specific log levels at startup 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: Fri, 14 Apr 2017 15:33:01 -0000 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."); >