From mboxrd@z Thu Jan 1 00:00:00 1970 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 0A4B31B28A for ; Thu, 21 Dec 2017 14:00:15 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id f9so15757727wmh.0 for ; Thu, 21 Dec 2017 05:00:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SxbpXcWLCfSYrGClOPyjw7KEo2rTaRqVxAIlXGWsIAc=; b=XpnSXGkqBTx8u1HG9maej8uV6ST/MyMf5fcnJsTnuV7/OCkPou8/rx7w/ZasucxVVZ Cb4T7yF944odW4drp+N7AVVouPhDh+zrGttkabNk9z5y1J+hu46reFiWYLiXB1InMFBQ FJk945rvveYYodVcSMRfL29NVgjbT7ECsZ43tXLdGaf1ni8vhU0mJD8CmDEitmKTSwd1 CbLu70oy8TwOaPXSNeXSdUqqyN0HS4M26kJn6Y2iKTtX5d5T1Tvxao1kAFLRZKlQCaKf 46uvek+gzt9xhAw3kyQ7bLmp1t6yCOs53QqOYQ7+9inSq+lQ4anuittwmDooepL3QX7g DEiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SxbpXcWLCfSYrGClOPyjw7KEo2rTaRqVxAIlXGWsIAc=; b=UXOA/YhOANVjn4/MMiM3kM0XtV3DYlTObCxFL4YTNFRF2lNNzLIQ2lDVhPDGJ9HSxw BrsXxBA2aOeJkWGOwHYwQrTvpqSHAWUQd2bbqM8J2NxBNcRys0Ropg7zUM6ukYxVvqJh e9Ghm3hpC41KAsCfgh7K84+S0na6MhktGDCnq2OSQX0ZkmaluScmzZWKm+DorWJmxKiG TSz6C3+m1lP+hzKUEH4ytymMgep65StllekKYQw3dQWarlxtOI48fFia7pNJvncq1WZQ hhb4E4z9xn0NTR9AUB2wWNfE199qJlC8LRDrYXaUtNSPq3QZQ8va5hS6sTTbiJY/I8a6 UNjw== X-Gm-Message-State: AKGB3mI30oEEOPrIfBxYKLqab3zedTuiJX0h7UDMD5+TCgAElLBNXpxL hNmCqc0cBQrXtzj8xPcBwLH3Niym X-Google-Smtp-Source: ACJfBovasdTPDLVg0GNDBm1aos7vsUX0qe7tlSFZDI2W+emN76EAYbM9eI0gemNuEWbj5Q3Z0BLVtg== X-Received: by 10.80.137.154 with SMTP id g26mr10012755edg.146.1513861214560; Thu, 21 Dec 2017 05:00:14 -0800 (PST) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id q55sm16950923eda.43.2017.12.21.05.00.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 05:00:13 -0800 (PST) Date: Thu, 21 Dec 2017 14:00:02 +0100 From: Adrien Mazarguil To: dev@dpdk.org Cc: Yipeng Wang Message-ID: <20171221122458.811-5-adrien.mazarguil@6wind.com> References: <20171221122458.811-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171221122458.811-1-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v1 4/6] member: fix issue in exported header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 13:00:15 -0000 Reported by check-includes.sh: [...]/rte_member.h:107:40: error: ISO C does not permit named variadic macros [-Werror=variadic-macros] #define RTE_MEMBER_LOG(level, fmt, args...) \ ^ Fixes: 857ed6c68cf2 ("member: implement main API") Cc: Yipeng Wang Signed-off-by: Adrien Mazarguil --- lib/librte_member/rte_member.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/librte_member/rte_member.h b/lib/librte_member/rte_member.h index 9b0c8f99c..fa0871122 100644 --- a/lib/librte_member/rte_member.h +++ b/lib/librte_member/rte_member.h @@ -80,6 +80,8 @@ extern "C" { #include +#include + /** The set ID type that stored internally in hash table based set summary. */ typedef uint16_t member_set_t; /** Invalid set ID used to mean no match found. */ @@ -104,9 +106,12 @@ typedef uint16_t member_set_t; extern int librte_member_logtype; -#define RTE_MEMBER_LOG(level, fmt, args...) \ -rte_log(RTE_LOG_ ## level, librte_member_logtype, "%s(): " fmt, \ - __func__, ## args) +#define RTE_MEMBER_LOG(level, ...) \ + rte_log(RTE_LOG_ ## level, \ + librte_member_logtype, \ + RTE_FMT("%s(): " RTE_FMT_HEAD(__VA_ARGS__,), \ + __func__, \ + RTE_FMT_TAIL(__VA_ARGS__,))) /** @internal setsummary structure. */ struct rte_member_setsum; -- 2.11.0