From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id 06D77B384 for ; Tue, 26 Aug 2014 16:05:43 +0200 (CEST) Received: by mail-wi0-f176.google.com with SMTP id bs8so4260250wib.15 for ; Tue, 26 Aug 2014 07:09:43 -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=qbthBVtDBgBzUbp/AKtda7ekRw33iAt1KbMyxwwQx9g=; b=NsP7Ekal24uz9D1pOwvGwGrWx1r1AFxdaHAPL5EjOVzkCQP/T4mHid0FKr30Hk7sFN QpDgXlcEn4e4El5JspR634XR54CKZMV143N9H9CiI2Kl6qgAskko/fw5pa3vUX8w1rPg gsYl8mslFM/IdErSaQrqLo496AXVMuX9DmMHKAROiGBVG95BflYQaVT63BU10v1aN8gc rTBgBJUsiZLeCocTr7405eTPi/d8cbP8Nfe0EbE3PPEWZklXF3Rlp9ZIgcda0JlGMlQ6 C8o3vGHiGn0ZK8kt9Yc5c6DxGmyjlAx5U+cPkxeQSccnLp4eXDy7k2V0Kkj+zGqLpHdp hN0A== X-Gm-Message-State: ALoCoQlWkMGUeDOtXNaDICFELVbZST9f7Q4ntufaEvQBrRy4TVCoHP0fzmLYmvL4Qqie4922SNFH X-Received: by 10.180.14.170 with SMTP id q10mr22120729wic.56.1409062183044; Tue, 26 Aug 2014 07:09:43 -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.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:09:42 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Tue, 26 Aug 2014 16:09:19 +0200 Message-Id: <1409062162-19575-10-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 09/11] e1000: 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:44 -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_e1000/e1000_logs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_e1000/e1000_logs.h b/lib/librte_pmd_e1000/e1000_logs.h index 02f5930..791705c 100644 --- a/lib/librte_pmd_e1000/e1000_logs.h +++ b/lib/librte_pmd_e1000/e1000_logs.h @@ -34,12 +34,13 @@ #ifndef _E1000_LOGS_H_ #define _E1000_LOGS_H_ -#ifdef RTE_LIBRTE_E1000_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_E1000_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