From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH v1 3/6] flow_classify: fix issue in exported header Date: Thu, 21 Dec 2017 13:59:59 +0100 Message-ID: <20171221122458.811-4-adrien.mazarguil@6wind.com> References: <20171221122458.811-1-adrien.mazarguil@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ferruh Yigit , Bernard Iremonger To: dev@dpdk.org Return-path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id EA2871B284 for ; Thu, 21 Dec 2017 14:00:12 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id 64so15618018wme.3 for ; Thu, 21 Dec 2017 05:00:12 -0800 (PST) Content-Disposition: inline In-Reply-To: <20171221122458.811-1-adrien.mazarguil@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Reported by check-includes.sh: [...]/rte_flow_classify.h:85:47: error: ISO C does not permit named variadic macros [-Werror=variadic-macros] #define RTE_FLOW_CLASSIFY_LOG(level, fmt, args...) \ ^ Fixes: be41ac2a330f ("flow_classify: introduce flow classify library") Cc: Ferruh Yigit Cc: Bernard Iremonger Signed-off-by: Adrien Mazarguil --- lib/librte_flow_classify/rte_flow_classify.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/librte_flow_classify/rte_flow_classify.h b/lib/librte_flow_classify/rte_flow_classify.h index 1211873a1..e14bc787e 100644 --- a/lib/librte_flow_classify/rte_flow_classify.h +++ b/lib/librte_flow_classify/rte_flow_classify.h @@ -70,6 +70,7 @@ * with rte_flow_classifier_free() */ +#include #include #include #include @@ -82,9 +83,12 @@ extern "C" { extern int librte_flow_classify_logtype; -#define RTE_FLOW_CLASSIFY_LOG(level, fmt, args...) \ -rte_log(RTE_LOG_ ## level, librte_flow_classify_logtype, "%s(): " fmt, \ - __func__, ## args) +#define RTE_FLOW_CLASSIFY_LOG(level, ...) \ + rte_log(RTE_LOG_ ## level, \ + librte_flow_classify_logtype, \ + RTE_FMT("%s(): " RTE_FMT_HEAD(__VA_ARGS__,), \ + __func__, \ + RTE_FMT_TAIL(__VA_ARGS__,))) /** Opaque data type for flow classifier */ struct rte_flow_classifier; -- 2.11.0