From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by dpdk.org (Postfix) with ESMTP id 958A85A9B for ; Fri, 10 Jul 2015 01:01:03 +0200 (CEST) Received: by pacgz10 with SMTP id gz10so84171093pac.3 for ; Thu, 09 Jul 2015 16:01:03 -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=JxsVqn6+Vv6b4bW5QviI+9eBsiOetwdKQSpZc6Yts04=; b=KoGymwQPuOxr94Uc3rWhMD8ZQUpa8mIWcJZRoj6VokT0ZC6h3C2lKyB+rnQ+Zd7Hdq 8EGlCLCz01AZ2j4jgYe+S88zs4leFDRBmx+5KgBzEfsE/QcXzZIcjrBhPgW09D4GWbru od2pQhONcdaE16v9oFwFKcf6qFHvMCUb29m4v0Gb1CPrsZuU/aX8XCAsBtSwpFuJNdqb BeUF0T2VsOq1BVSgrQNR030dqe60I/e2fEK/DoRwGXpLjFtuQzfP8EuZCfBmcE5Xcusx LFvryXpD/uDf91oLr2F9cgbn+wVHC+8j8ZzrWIkDb/IhmCG390EzwMLK+Pl8dx1LWY9C U06A== X-Gm-Message-State: ALoCoQlfhTgPnOkQ0eSghK1t5BRPnlOYznMaCg5KLop92EUYwADxaPndmco4W3/W5d7/Wb1jQfSv X-Received: by 10.68.57.172 with SMTP id j12mr35559137pbq.95.1436482863033; Thu, 09 Jul 2015 16:01:03 -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.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 16:01:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 9 Jul 2015 16:01:06 -0700 Message-Id: <1436482868-7400-5-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 4/6] e1000: 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:04 -0000 From: Stephen Hemminger Similar to ixgbe, allow log messages to be removed by using RTE_LOG_LEVEL during the build process. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/e1000_logs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/e1000/e1000_logs.h b/drivers/net/e1000/e1000_logs.h index 4a92804..81e7bf5 100644 --- a/drivers/net/e1000/e1000_logs.h +++ b/drivers/net/e1000/e1000_logs.h @@ -35,8 +35,7 @@ #define _E1000_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_E1000_DEBUG_INIT #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") -- 2.1.4