From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by dpdk.org (Postfix) with ESMTP id 2F60F682E for ; Tue, 26 Aug 2014 16:05:38 +0200 (CEST) Received: by mail-we0-f172.google.com with SMTP id x48so14913369wes.31 for ; Tue, 26 Aug 2014 07:09:38 -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:subject:date:message-id:in-reply-to :references; bh=q3EbfYkXPyOx5weKf9un68vSmVavozrIfyqdGT65tkY=; b=jo8bNoH7X26/c69uIFe0icm8f7sDq69PzzhmPaVtB3mGWZnHLyIOxmDcVST5XtpRgg mrK29Forx/jAkzaG9j6EHRawQoVzpVsezUw6TCiRWOUEevpFcOtKOnv+Y98E4lZkiqIb ss7oYBi5SPI+MDc2ksVImN7J60cFGzBi+ZeS6bmgnrZhruFgxU0TDiWexVrvNwApYabd olVevRFERxDnYTLYZP9OxXd+j1620PtmtuUImmwM5/15OzyG5V1AlJgvWyHPASKe4CmS H+qxdGW1WzxJ71vZXqTEtGQiUt7adgLqgdAzFTbW1yKBCHdDKHiK/WwTnsA7f61KTYcI ZMiQ== X-Gm-Message-State: ALoCoQltyjO4sOJviA88lDfTf8RwFY6yDq5xQjyxRR3kGFkOvo9xT1lmlZvu73QPmLOB8B/vNIuC X-Received: by 10.194.161.200 with SMTP id xu8mr19134631wjb.67.1409062178234; Tue, 26 Aug 2014 07:09:38 -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 cy9sm12543569wib.18.2014.08.26.07.09.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:09:37 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Tue, 26 Aug 2014 16:09:16 +0200 Message-Id: <1409062162-19575-7-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409062162-19575-1-git-send-email-david.marchand@6wind.com> References: <1409062162-19575-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 06/11] i40e: 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: Tue, 26 Aug 2014 14:05:38 -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 --- lib/librte_pmd_i40e/i40e_logs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e_logs.h b/lib/librte_pmd_i40e/i40e_logs.h index b78e2a1..1430a32 100644 --- a/lib/librte_pmd_i40e/i40e_logs.h +++ b/lib/librte_pmd_i40e/i40e_logs.h @@ -34,12 +34,13 @@ #ifndef _I40E_LOGS_H_ #define _I40E_LOGS_H_ -#ifdef RTE_LIBRTE_I40E_DEBUG_INIT #define PMD_INIT_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args) + rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \ + "PMD: %s(): " fmt, __func__, ##args) + +#ifdef RTE_LIBRTE_I40E_DEBUG_INIT #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>\n") #else -#define PMD_INIT_LOG(level, fmt, args...) do { } while(0) #define PMD_INIT_FUNC_TRACE() do { } while(0) #endif -- 1.7.10.4