Skip to content

Commit

Permalink
[logging] Aling define guards on RegisterLogModule and LogAt.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Przemyslaw Bida committed Nov 22, 2024
1 parent 025d84b commit 8352bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/common/log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 8352bde

Please sign in to comment.