From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3C30EF94 for ; Tue, 18 Apr 2017 17:00:47 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2017 08:00:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,219,1488873600"; d="scan'208";a="91260573" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.59]) ([10.237.220.59]) by fmsmga006.fm.intel.com with ESMTP; 18 Apr 2017 08:00:46 -0700 To: Olivier Matz , dev@dpdk.org Cc: jianfeng.tan@intel.com, thomas@monjalon.net References: <20170418142225.6308-1-olivier.matz@6wind.com> <20170418142225.6308-3-olivier.matz@6wind.com> From: Ferruh Yigit Message-ID: Date: Tue, 18 Apr 2017 16:00:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <20170418142225.6308-3-olivier.matz@6wind.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 3/6] eal: remove log level from internal config 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 15:00:48 -0000 On 4/18/2017 3:22 PM, Olivier Matz wrote: > This field is only used in the initialization phase. Remove it since the > global log level can also be retrieved using a public API: > rte_log_get_global_level(). > > Signed-off-by: Olivier Matz <...> > diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c > index dd4d30ca7..7d13cc026 100644 > --- a/lib/librte_eal/common/eal_common_log.c > +++ b/lib/librte_eal/common/eal_common_log.c > @@ -244,6 +244,12 @@ RTE_INIT(rte_log_init); > static void > rte_log_init(void) > { > +#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG Why ">=" (I aware previous one is also like this :), setting global config option to RTE_LOG_DEBUG cause a INFO level log... > + rte_log_set_global_level(RTE_LOG_INFO); > +#else > + rte_log_set_global_level(RTE_LOG_LEVEL); > +#endif