From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH v3 4/8] eal: change specific log levels at startup Date: Tue, 18 Apr 2017 19:15:51 +0800 Message-ID: <632c7fa5-153d-8a97-0810-a4ac8795046e@intel.com> References: <20170329155323.4760-1-olivier.matz@6wind.com> <20170404164040.24132-1-olivier.matz@6wind.com> <20170404164040.24132-5-olivier.matz@6wind.com> <88ff6283-4b3f-f3a7-0d44-9be8fe5441c1@intel.com> <20170418105047.266cd8a0@glumotte.dev.6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed 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, "De Lara Guarch, Pablo" To: Olivier MATZ Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3C24A2C5 for ; Tue, 18 Apr 2017 13:15:56 +0200 (CEST) In-Reply-To: <20170418105047.266cd8a0@glumotte.dev.6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/18/2017 4:50 PM, Olivier MATZ wrote: > Hi Jianfeng, > > On Fri, 14 Apr 2017 13:33:49 +0800, "Tan, Jianfeng" wrote: >> Hi Olivier, >> >> If I understand it correctly, this patch is to shift log level setting >> earlier. But we did not remove the one in eal_parse_common_option(). So >> we can see this parameter will be analyzed twice. Does it make sense to >> remove analysis of log level in eal_parse_common_option()? >> > The patch does not change the way the log level is parsed: it was > already parsed twice, because we want to know the log level as soon > as possible. Oh, yes, it's not introduced in this patch. How do you think if we move log parser out from eal_parse_common_option to avoid parsing log twice? > > But the patch introduces a bug, as seen by Ferruh: the default log > level is not set properly when no --log-level parameter is passed. > Before this one, there is another one on usage of regexec(), which I put it here: http://dpdk.org/ml/archives/dev/2017-April/064031.html. Thanks, Jianfeng