mirror of
https://github.com/espressif/openthread.git
synced 2026-09-17 22:50:07 +00:00
[logging] simplify logging by removing DEFINE_AS_MACRO_ONLY (#7268)
This commit removes `OPENTHREAD_CONFIG_LOG_DEFINE_AS_MACRO_ONLY`. which helps simplify the logging implementation. This feature enabled all logging including the platform API to be defined as macros and was intended for certain restricted platforms. With the new logging model, OpenThread core itself will prepare the entire log line instead of platform layer, so this feature is no longer applicable or useful.
This commit is contained in:
@@ -106,10 +106,6 @@ build_all_features()
|
||||
reset_source
|
||||
make -f examples/Makefile-simulation THREAD_VERSION=1.1 FULL_LOGS=1
|
||||
|
||||
# Build Thread 1.1 with full features and full logs (Logs defined as macros)
|
||||
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_DEFINE_AS_MACRO_ONLY=1"
|
||||
make -f examples/Makefile-simulation THREAD_VERSION=1.1 FULL_LOGS=1
|
||||
|
||||
# Build Thread 1.2 with full features and logs
|
||||
export CPPFLAGS="${options[*]} ${options_1_2[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE"
|
||||
reset_source
|
||||
|
||||
Reference in New Issue
Block a user