From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2329A43BE9; Tue, 27 Feb 2024 10:48:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E3D142E46; Tue, 27 Feb 2024 10:48:55 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 3E1DB402A7 for ; Tue, 27 Feb 2024 10:48:53 +0100 (CET) Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TkXdB5jG5z6H6pH; Tue, 27 Feb 2024 17:44:30 +0800 (CST) Received: from frapeml100008.china.huawei.com (unknown [7.182.85.131]) by mail.maildlp.com (Postfix) with ESMTPS id 1C3EC1400C9; Tue, 27 Feb 2024 17:48:52 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100008.china.huawei.com (7.182.85.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 27 Feb 2024 10:48:51 +0100 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.035; Tue, 27 Feb 2024 10:48:51 +0100 From: Konstantin Ananyev To: Tyler Retzlaff , "dev@dpdk.org" CC: Anatoly Burakov , Ashish Gupta , Chenbo Xia , "Cristian Dumitrescu" , David Hunt , Fan Zhang , Hemant Agrawal , Honnappa Nagarahalli , Jasvinder Singh , Jerin Jacob , Konstantin Ananyev , Maxime Coquelin , Reshma Pattan , "Sachin Saxena" , Sivaprasad Tummala , Srikanth Yalavarthi , Stephen Hemminger , Sunil Kumar Kori , "bruce.richardson@intel.com" , "mb@smartsharesystems.com" , "thomas@monjalon.net" Subject: RE: [PATCH v3 16/16] ip_frag: stop using variadic argument pack extension Thread-Topic: [PATCH v3 16/16] ip_frag: stop using variadic argument pack extension Thread-Index: AQHaaPFpSGdY60xOPUiUhs60hocLn7Ed8mMg Date: Tue, 27 Feb 2024 09:48:51 +0000 Message-ID: References: <1707774557-16012-1-git-send-email-roretzla@linux.microsoft.com> <1708978786-6740-1-git-send-email-roretzla@linux.microsoft.com> <1708978786-6740-17-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1708978786-6740-17-git-send-email-roretzla@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.206.138.42] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Subject: [PATCH v3 16/16] ip_frag: stop using variadic argument pack exte= nsion >=20 > Remove use of args... and just use __VA_ARGS__. The macros expanding > the argument pack do not require args extension to remove trailing comma. >=20 > Signed-off-by: Tyler Retzlaff > --- > lib/ip_frag/ip_frag_common.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/lib/ip_frag/ip_frag_common.h b/lib/ip_frag/ip_frag_common.h > index c766154..f66a963 100644 > --- a/lib/ip_frag/ip_frag_common.h > +++ b/lib/ip_frag/ip_frag_common.h > @@ -26,9 +26,9 @@ > RTE_LOG_LINE(level, IPFRAG, "" __VA_ARGS__) >=20 > #ifdef RTE_LIBRTE_IP_FRAG_DEBUG > -#define IP_FRAG_LOG(lvl, fmt, args...) RTE_LOG(lvl, IPFRAG, fmt, ##args) > +#define IP_FRAG_LOG(lvl, ...) RTE_LOG(lvl, IPFRAG, __VA_ARGS__) > #else > -#define IP_FRAG_LOG(lvl, fmt, args...) do {} while(0) > +#define IP_FRAG_LOG(lvl, fmt, ...) do {} while (0) > #endif /* IP_FRAG_DEBUG */ >=20 > #define IPV4_KEYLEN 1 > -- Acked-by: Konstantin Ananyev =20 > 1.8.3.1