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 23B6D43B7D; Thu, 29 Feb 2024 22:34:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29DBB432FE; Thu, 29 Feb 2024 22:32:49 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4396442FC3 for ; Thu, 29 Feb 2024 22:32:09 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 0879220B74D4; Thu, 29 Feb 2024 13:32:07 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0879220B74D4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709242328; bh=iDcY2KYmUxeSS6gjMoyms8RVF2XGemeKfoYWf+bqEPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pzqz7TRXLmAreeagcTToaFpRcIs7xKh03mvSPqHAjU2mcTKY2WQAlCF32jbs7GrZL vuwEOPT2ZSjX2gLbTa2t/p4tqxvT6Fmch52WXZmnbi6v9VRilDE+9ov2lfGYOZ9pn6 le16xjdk4Eb0hzmF7j4/j1HYpSsQbG8+XKd6Wxu0= From: Tyler Retzlaff To: 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, Tyler Retzlaff Subject: [PATCH v5 20/22] member: stop using variadic argument pack extension Date: Thu, 29 Feb 2024 13:32:03 -0800 Message-Id: <1709242325-17218-21-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1709242325-17218-1-git-send-email-roretzla@linux.microsoft.com> References: <1707774557-16012-1-git-send-email-roretzla@linux.microsoft.com> <1709242325-17218-1-git-send-email-roretzla@linux.microsoft.com> 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 Use RTE_LOG_LINE_PREFIX instead of RTE_LOG_LINE in macro expansions which allow a prefix and arguments to be inserted into the log line without the need to use the ## args variadic argument pack extension. Signed-off-by: Tyler Retzlaff --- lib/member/member.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/member/member.h b/lib/member/member.h index cf600c4..d71c26b 100644 --- a/lib/member/member.h +++ b/lib/member/member.h @@ -8,7 +8,6 @@ #define RTE_LOGTYPE_MEMBER librte_member_logtype #define MEMBER_LOG(level, ...) \ - RTE_LOG_LINE(level, MEMBER, \ - RTE_FMT("%s(): " RTE_FMT_HEAD(__VA_ARGS__ ,), \ - __func__, RTE_FMT_TAIL(__VA_ARGS__ ,))) + RTE_LOG_LINE_PREFIX(level, MEMBER, \ + "%s(): ", __func__, __VA_ARGS__) -- 1.8.3.1