From patchwork Fri Jul 26 20:12:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John Daley (johndale)" X-Patchwork-Id: 57199 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C3B6E1C4E8; Fri, 26 Jul 2019 22:13:16 +0200 (CEST) Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by dpdk.org (Postfix) with ESMTP id DC1B61C4C4 for ; Fri, 26 Jul 2019 22:13:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1268; q=dns/txt; s=iport; t=1564171994; x=1565381594; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lqKOkLM9elaP0jsve8OZ1tN1iSluKnjY91AWGzWTbrM=; b=ePj7RUX6069u0Hf2Joowh6gD88WC5teLvbubA9fdJPEAGQnUGZ7o50s7 bvaEBi+KNob63ezBoMJrFwamr7dvGZrSd0SaX0XgHkbHdrCHkRFCeBQOE CG0lNt2cF0+sg9dnNb/VkSQenZO77pQ6k3e/ioIr9sfw6LW7d6L7tS8DH s=; X-IronPort-AV: E=Sophos;i="5.64,312,1559520000"; d="scan'208";a="605136715" Received: from alln-core-5.cisco.com ([173.36.13.138]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Jul 2019 20:13:13 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-5.cisco.com (8.15.2/8.15.2) with ESMTP id x6QKDDjn004583; Fri, 26 Jul 2019 20:13:13 GMT Received: by cisco.com (Postfix, from userid 392789) id 71E1B20F2003; Fri, 26 Jul 2019 13:13:13 -0700 (PDT) From: John Daley To: ferruh.yigit@intel.com Cc: hyonkim@cisco.com, dev@dpdk.org, John Daley Date: Fri, 26 Jul 2019 13:12:46 -0700 Message-Id: <20190726201246.26234-1-johndale@cisco.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190725024619.26040-1-johndale@cisco.com> References: <20190725024619.26040-1-johndale@cisco.com> MIME-Version: 1.0 X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: alln-core-5.cisco.com Subject: [dpdk-dev] [PATCH v2] net/enic: retain previous message logging 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Prior to the fix, RTE_LOGTYPE_INFO messages were displayed by default. After the fix, only NOTICE level and higher were displayed by default and INFO level were not. There are INFO level vNIC config related messages which customers and tech support currently depend on for debugging and so on and to suddenly hide these messages is not a good idea. This patch changes the default log level to RTE_LOG_INFO for enic so messages are printed as before the fix. Fixes: bbd8ecc05434 ("net/enic: remove PMD log type references") Signed-off-by: John Daley --- v2: Change default log level to 'RTE_LOG_INFO' instead of changing the 'dev_info' messages to 'dev_notice' drivers/net/enic/enic_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 6051689a6..0ade57370 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -73,7 +73,7 @@ RTE_INIT(enicpmd_init_log) { enic_pmd_logtype = rte_log_register("pmd.net.enic"); if (enic_pmd_logtype >= 0) - rte_log_set_level(enic_pmd_logtype, RTE_LOG_NOTICE); + rte_log_set_level(enic_pmd_logtype, RTE_LOG_INFO); } static int