From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by dpdk.org (Postfix) with ESMTP id 7A0ED5A4B for ; Fri, 15 May 2015 19:08:31 +0200 (CEST) Received: by pdeq5 with SMTP id q5so16983819pde.1 for ; Fri, 15 May 2015 10:08:30 -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=B8ScyLW6NAewruLMMFhHoYL36tKI/Um9lbuXx8nyyQ0=; b=QrheYQL63pb8NlQy7u8a7q+OJ+UFArcYuVMbd2Xw3EBSbdXut0D8CDe4CXyVOXKWpk 1c6hQT4ulF0LlgA4+tmhGhClO6fcUxGYNjh1JKJt2ARxSXbkCnSqwPY5TkUMbGGmNmpT ViTum3yiezKeIGv7e3yWq+DxZpK/G9ozGHmT6yw3ruWutmHOB8SxyhyvT9W0ezssuvQ7 OhDMZq9SLvcDA0DjS1duO/4jfgMV9NS6MLoKNftWyQ/sZM1RIs+Z+X6ZWAnI9n+STY1j khSgN/bAm3ecZJQ229c9bHrFYyiiY0IgNmNEQjHXMTlyIEPJKQAGFeBGS5X3Sd6zRVjW faOA== X-Gm-Message-State: ALoCoQmhXyoniydApZs9HkjBtgXKnFLSPtFyQT4h13R1E4ALteqIUoD6WfxFAA7PetgM+LhbDCoU X-Received: by 10.66.191.226 with SMTP id hb2mr20280081pac.72.1431709710820; Fri, 15 May 2015 10:08:30 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id sc1sm2415592pac.36.2015.05.15.10.08.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 May 2015 10:08:29 -0700 (PDT) From: Stephen Hemminger To: helin.zhang@intel.com Date: Fri, 15 May 2015 10:08:26 -0700 Message-Id: <1431709707-5281-5-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431709707-5281-1-git-send-email-stephen@networkplumber.org> References: <1431709707-5281-1-git-send-email-stephen@networkplumber.org> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 4/5] ixgbe: use RTE_LOG not rte_log 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: Fri, 15 May 2015 17:08:32 -0000 This driver should follow standard DPDK practice and use RTE_LOG macro which allows setting config option to remove the debug log messages. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_ixgbe/ixgbe_logs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_logs.h b/lib/librte_pmd_ixgbe/ixgbe_logs.h index 572e030..53ba42d 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_logs.h +++ b/lib/librte_pmd_ixgbe/ixgbe_logs.h @@ -35,8 +35,7 @@ #define _IXGBE_LOGS_H_ #define PMD_INIT_LOG(level, fmt, args...) \ - rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \ - "PMD: %s(): " fmt "\n", __func__, ##args) + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args) #ifdef RTE_LIBRTE_IXGBE_DEBUG_INIT #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") -- 2.1.4