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 48F8E2A5B for ; Tue, 24 Jan 2017 17:21:29 +0100 (CET) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id BD31125654; Tue, 24 Jan 2017 17:21:24 +0100 (CET) From: Olivier Matz To: dev@dpdk.org, david.marchand@6wind.com Date: Tue, 24 Jan 2017 17:21:12 +0100 Message-Id: <1485274872-9377-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.8.1 Subject: [dpdk-dev] [PATCH] eal: fix wrong log 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: Tue, 24 Jan 2017 16:21:29 -0000 The log "Debug logs available - lower performance" should now only be displayed when dataplane debug logs are enabled. The issue occurs only if the default log level (CONFIG_RTE_LOG_LEVEL) is set to DEBUG in the configuration, which is not the case by default. Fixes: 5d8f0baf69ea ("log: do not drop debug logs at compile time") Signed-off-by: Olivier Matz --- lib/librte_eal/common/eal_common_log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c index e45d326..2197558 100644 --- a/lib/librte_eal/common/eal_common_log.c +++ b/lib/librte_eal/common/eal_common_log.c @@ -176,7 +176,8 @@ eal_log_set_default(FILE *default_log) { default_log_stream = default_log; -#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG - RTE_LOG(NOTICE, EAL, "Debug logs available - lower performance\n"); +#if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG + RTE_LOG(NOTICE, EAL, + "Debug dataplane logs available - lower performance\n"); #endif } -- 2.8.1