From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id B7C675A9A for ; Fri, 10 Jul 2015 01:01:02 +0200 (CEST) Received: by pdbep18 with SMTP id ep18so172652444pdb.1 for ; Thu, 09 Jul 2015 16:01:02 -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=dfb6JFxi6y4begQXPwNZMBrjJxXGrpo1yqhDnZkheNA=; b=QEZTsx9YMDS7jR5P9jvlLuW/OyNYVXsk0nxyh/xIPoWtR1zr19QVpf5P/qTQUdNapz /JjEeYOkCIZcJJpuUsNesO4E7R7BpqVtZtTRg5YqLwm+ICIWQp6TpJbs7dVJvYM7w9ff Qz29YGCb1TvzWvdjxaTpkr8id4X8kMmgzyVmAyX9Qm3dq+q5sZbxjIFaCwJMKPA7SDPr +gb2sES8A2VX0W2VC11Xz5Oj782S8qtCEpuRP7BSZMWM4Sh2Ec2J5xEPAM0t8wf7n23f pQbV3Q9Z9hNw3wiAC6KURzZGATJuEZ9qrhSMFBGIVsXzTIooQzRr1yq8u31wuXxYc9dk bZtw== X-Gm-Message-State: ALoCoQl6uwv4QH3FqAyfodKTdTu0vzJHKjarHYniZgXqtznlXK+afCenM8DQDqgoQFvhCCB4WD0j X-Received: by 10.68.240.7 with SMTP id vw7mr35796484pbc.135.1436482862066; Thu, 09 Jul 2015 16:01:02 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id hl6sm7146976pdb.28.2015.07.09.16.01.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 16:01:01 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 9 Jul 2015 16:01:05 -0700 Message-Id: <1436482868-7400-4-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436482868-7400-1-git-send-email-stephen@networkplumber.org> References: <1436482868-7400-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH v3 3/6] ixgbe: allow pruning log during build 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: Thu, 09 Jul 2015 23:01:03 -0000 From: Stephen Hemminger The ixgbe driver was not following DPDK convention and was leaving loggin always in even if LOG_LEVEL was configured to disable debug logs. Signed-off-by: Stephen Hemminger --- drivers/net/ixgbe/ixgbe_logs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_logs.h b/drivers/net/ixgbe/ixgbe_logs.h index 572e030..53ba42d 100644 --- a/drivers/net/ixgbe/ixgbe_logs.h +++ b/drivers/net/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