From 0ba9ae9fb7208158b141db2fc43ab4a4022ffa04 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 17 Jul 2022 20:42:32 +0300 Subject: [PATCH] Add brackets and else statement to KI_TRACE. --- include/trace_helpers.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/trace_helpers.h b/include/trace_helpers.h index 10e5e13632..04d6bddbec 100644 --- a/include/trace_helpers.h +++ b/include/trace_helpers.h @@ -268,6 +268,11 @@ private: #define KI_TRACE( aWhat, ... ) \ if( TRACE_MANAGER::Instance().IsTraceEnabled( aWhat ) ) \ - TRACE_MANAGER::Instance().Trace( aWhat, __VA_ARGS__ ) + { \ + TRACE_MANAGER::Instance().Trace( aWhat, __VA_ARGS__ ); \ + } \ + else \ + { \ + } #endif // _TRACE_HELPERS_H_