From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 6C709B375 for ; Tue, 26 Aug 2014 16:05:32 +0200 (CEST) Received: by mail-wi0-f179.google.com with SMTP id f8so4225905wiw.6 for ; Tue, 26 Aug 2014 07:09:32 -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=hCeh7cZ6rAkE5BSsYkaDcgpBrTb82WFkKBnZ8uDJMIs=; b=LdXtsZWhhZhfOkewSbK96K/hEvkZuI/6NJ+MI2lsB+0kF5pi/sCSTYmvkTgTUfeU9Z sem2J1EDq8aOqrTxa6C/adB8R7W8pwCmtxb/fOb61pPfdXhbEBMCfHoTImJltS8aJkzT CoayHL3JEYOY2CYuiEoZ1c1qCMjx9T4zMK3PSccijs5zr4RSGgKJi0HtLa9V0lAtkSOE DS6QaemOQTjOUpr/mFwcqiQKjBBlCKQW/cuxJvYeMTi12xE3J4wgRBukv+4DyeieSwc8 wp0J+XbdKNJaQX7BLEhFtfsJ0+/1AI5iVVSBhrAktmMRl+7HTWi3QxE4HRlMLGafRSap nM2g== X-Gm-Message-State: ALoCoQmivxr/sUi8IInOfcwjjCo24QI3FUTf/vCxSncQGrJXByq0Z/bLHfwoCo1M85XNluXg1O+i X-Received: by 10.180.74.42 with SMTP id q10mr22376822wiv.39.1409062172460; Tue, 26 Aug 2014 07:09:32 -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.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:09:31 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Tue, 26 Aug 2014 16:09:12 +0200 Message-Id: <1409062162-19575-3-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 02/11] 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: Tue, 26 Aug 2014 14:05:32 -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 22d8cfb..88fa7d5 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, __func__, ## args) + rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \ + "PMD: %s(): " fmt, __func__, ##args) + +#ifdef RTE_LIBRTE_IXGBE_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