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 04AFE45E6F; Wed, 11 Dec 2024 03:08:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0B7B40A77; Wed, 11 Dec 2024 03:06:41 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E1B7740647 for ; Wed, 11 Dec 2024 03:06:17 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 9F095204722E; Tue, 10 Dec 2024 18:06:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9F095204722E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733882777; bh=2VAquX7AkZ8mpRFgE6SWu539/TFxGYCcPYm11sgd7Qo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WVRN+dM8BJy4LSBEWaP7pu7VMv6fFmXE3G6QS9pFNBqyFqBHTAgMURGG3KW0XjpNR wfHJ0GLBfxmybys5opLgdEIQX4fPB83kEZ6V1CkWqDP60syjnqmoy89Lo9tsX0EMLk ceqpgCug93VvRDugdIhzCMoWX+98qbDFk4ei0u/s= From: Andre Muezerie To: Anatoly Burakov , David Hunt , Sivaprasad Tummala Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 19/21] lib/power: ensure code structure does not change Date: Tue, 10 Dec 2024 18:05:49 -0800 Message-Id: <1733882751-29598-20-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/power/power_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/power/power_common.h b/lib/power/power_common.h index 3f56b1103d..83a30858fe 100644 --- a/lib/power/power_common.h +++ b/lib/power/power_common.h @@ -20,7 +20,7 @@ extern int rte_power_logtype; #define POWER_DEBUG_LOG(...) \ RTE_LOG_LINE_PREFIX(ERR, POWER, "%s: ", __func__, __VA_ARGS__) #else -#define POWER_DEBUG_LOG(...) +#define POWER_DEBUG_LOG(...) do { } while (0) #endif /* check if scaling driver matches one we want */ -- 2.47.0.vfs.0.3