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 1158D45E6F; Wed, 11 Dec 2024 03:07:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5298C40A75; Wed, 11 Dec 2024 03:06:39 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id AFA5440613 for ; Wed, 11 Dec 2024 03:06:17 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 523702047232; Tue, 10 Dec 2024 18:06:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 523702047232 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733882777; bh=87nFlwXlXH/fxoF4wRPDYmH+yg6C1/B6kmrLyRoSDHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M02BBbdS3KfidWlxUuFY1K/79fWJXNNCH2IpvR3lY1JTw+HN6vC4Y14lINXvm/pAv PPuBrWYKWtYVhGFEm4Opx+/mcEkresLJTbx52njOreVs6E5pNp+EwGg2bji8L6HpPo Hj2C3NIWc43NZUnjeqcXAP92VCeqbvhBXEaBp6no= From: Andre Muezerie To: Cristian Dumitrescu Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 17/21] lib/pipeline: ensure code structure does not change Date: Tue, 10 Dec 2024 18:05:47 -0800 Message-Id: <1733882751-29598-18-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1733882751-29598-1-git-send-email-andremue@linux.microsoft.com> References: <1733882751-29598-1-git-send-email-andremue@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 Add "do { } while (0)" to macros used to remove logging calls, to ensure there's no code structure change when enabling/disabling logging. Signed-off-by: Andre Muezerie --- lib/pipeline/rte_swx_pipeline_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/rte_swx_pipeline_internal.h b/lib/pipeline/rte_swx_pipeline_internal.h index df864ea066..d6213bbe16 100644 --- a/lib/pipeline/rte_swx_pipeline_internal.h +++ b/lib/pipeline/rte_swx_pipeline_internal.h @@ -27,7 +27,7 @@ #if TRACE_LEVEL #define TRACE(...) printf(__VA_ARGS__) #else -#define TRACE(...) +#define TRACE(...) do { } while (0) #endif /* -- 2.47.0.vfs.0.3