From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by dpdk.org (Postfix) with ESMTP id ACAE7B3A8 for ; Wed, 17 Sep 2014 15:41:27 +0200 (CEST) Received: by mail-we0-f171.google.com with SMTP id p10so1472562wes.2 for ; Wed, 17 Sep 2014 06:47:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DWDYIga5xhVRmuWa24lSfYEfsNnXFmhM0yYpkcDlEKw=; b=do8ba1CwUs9A/TdDSKKKLlMw+5fN6RAm6KZoahw0tPCIIwvouHoKTCD4Y8xsFAkKja N2nPOWqKivJo74fnvjvRE/58t99mKPfnP8JH3Ik8WQQQwww3DR6AwdKYyX03ZjaeS6t0 uJqRPoFwDXucpbPtRE+gSwl98Z822Slccq6/u1+ZZYsXFRtwNaLr392G1GVbRG2z9Y5U 6hdJX4O+SjhlMzLvCS2uhFR0Zv1i/9T0J6zHP7zDlOWBFqujTW3Jtu/F8HCtgH/Sdfl9 uABEYWGUJTnuQJI0XW2Vs6x6R/BIwnrunb+7A/BNR8tDpcY137MBCRMS7mYmRAschND9 PZ/A== X-Gm-Message-State: ALoCoQnYDVJLqcdQR0POlKytVh3IZ1CcdJiQxKU1oDp++jiVHbI9su95D0x7OzEw196eXS4miKa5 X-Received: by 10.194.58.41 with SMTP id n9mr2766183wjq.20.1410961628887; Wed, 17 Sep 2014 06:47:08 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id fa20sm5712872wic.1.2014.09.17.06.47.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 06:47:08 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Wed, 17 Sep 2014 15:46:37 +0200 Message-Id: <1410961612-8571-6-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1410961612-8571-1-git-send-email-david.marchand@6wind.com> References: <1410961612-8571-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v3 05/20] ixgbe: always log init messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 13:41:27 -0000 'init' messages should always be logged and filtered at runtime by rte_log. All the more so as these messages are not in the datapath. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- lib/librte_pmd_ixgbe/ixgbe_logs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_logs.h b/lib/librte_pmd_ixgbe/ixgbe_logs.h index 4685c18..572e030 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_logs.h +++ b/lib/librte_pmd_ixgbe/ixgbe_logs.h @@ -34,12 +34,13 @@ #ifndef _IXGBE_LOGS_H_ #define _IXGBE_LOGS_H_ -#ifdef RTE_LIBRTE_IXGBE_DEBUG_INIT #define PMD_INIT_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \ + "PMD: %s(): " fmt "\n", __func__, ##args) + +#ifdef RTE_LIBRTE_IXGBE_DEBUG_INIT #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") #else -#define PMD_INIT_LOG(level, fmt, args...) do { } while(0) #define PMD_INIT_FUNC_TRACE() do { } while(0) #endif -- 1.7.10.4