[PATCH 17/21] lib/pipeline: ensure code structure does not change
Andre Muezerie
andremue at linux.microsoft.com
Wed Dec 11 03:05:47 CET 2024
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 <andremue at linux.microsoft.com>
---
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
More information about the dev
mailing list