From ac11a91d32bf12d62840754cb2bd818f1b930aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Bida?= Date: Sat, 23 Nov 2024 03:05:46 +0100 Subject: [PATCH] [logging] align define guards on `RegisterLogModule` and `LogAt`. (#10958) Commit aligns define guards on `LogAt` macto and `RegisterLogModule` to match. Previuosly `OT_SHOULD_LOG` was getting default value set as platform defined and log level was buy default set to none which caused misalignment. --- src/core/common/log.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/common/log.hpp b/src/core/common/log.hpp index 3ee91a9c8..9819c3d36 100644 --- a/src/core/common/log.hpp +++ b/src/core/common/log.hpp @@ -77,7 +77,7 @@ constexpr uint8_t kMaxLogModuleNameLength = 14; ///< Maximum module name length constexpr uint16_t kMaxLogStringSize = OPENTHREAD_CONFIG_LOG_MAX_SIZE; ///< Max size of log string -#if OT_SHOULD_LOG && (OPENTHREAD_CONFIG_LOG_LEVEL != OT_LOG_LEVEL_NONE) +#if OT_SHOULD_LOG /** * Registers log module name. *