From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id 99790B3A7 for ; Mon, 1 Sep 2014 12:20:25 +0200 (CEST) Received: by mail-wi0-f181.google.com with SMTP id e4so5833809wiv.2 for ; Mon, 01 Sep 2014 03:24:52 -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=eVjNcd5/ZY7Yym5Ap9fXY6VXCjX/62RdMgL1OcFyYF4=; b=Ilvc5wmkQQrZGspIqo7gbikA44JK7XYUNmfCqUuo5EY2ZE+YYRFcPheHZrsDa5Hzl0 fx/ZmMpH1CcH+PMSHCX1ZYNWyaLUdT1Ah2Zush4dfCJ96+JgexR+A4i+No4M3AYj5D5n ijCuyOV2jwDpCsmGyRSp207uQPIilPljev/FTPzNrTG1T1LKojzkQfdcHuGbnsovD4Hu tsihPJwKTweEzmY5OZqIzajzTlsOBsCsnJ6jv2KNitXu+KZ5ZG4Ks6FxkTVIRPwVIj8H TT0ClAwGYjxQ5NRQOOxRhs8K5qMgVInaqkiYCTd2Y5A49hyOVC96zQqTkY97NO5J7tZm 55TQ== X-Gm-Message-State: ALoCoQmw0Lrg9Wuk55wkPGCTX4Y0sFLlNyi6abg2HYWFYd3z+DNccce3n9znszvLDrehJ03kdHmi X-Received: by 10.180.109.169 with SMTP id ht9mr20743897wib.1.1409567092503; Mon, 01 Sep 2014 03:24:52 -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 lm18sm24287018wic.22.2014.09.01.03.24.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Sep 2014 03:24:51 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 1 Sep 2014 12:24:27 +0200 Message-Id: <1409567080-27083-5-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409567080-27083-1-git-send-email-david.marchand@6wind.com> References: <1409567080-27083-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v2 04/17] 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: Mon, 01 Sep 2014 10:20:25 -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_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