Skip to content

Commit

Permalink
[config] disable uptime logging when multi-instance enabled (openthre…
Browse files Browse the repository at this point in the history
…ad#10659)

This commit soften enabling log uptime in simulation and posix platform
so that it won't be enabled when multiple instance is also enabled.
  • Loading branch information
bukepo authored Sep 3, 2024
1 parent 928074c commit 2493658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
#endif

#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_UPTIME
#define OPENTHREAD_CONFIG_LOG_PREPEND_UPTIME 1
#define OPENTHREAD_CONFIG_LOG_PREPEND_UPTIME !OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
#endif

#ifndef OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES
Expand Down
2 changes: 1 addition & 1 deletion src/posix/platform/openthread-core-posix-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
#endif

#ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE
#define OPENTHREAD_CONFIG_UPTIME_ENABLE 1
#define OPENTHREAD_CONFIG_UPTIME_ENABLE !OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
#endif

#ifndef OPENTHREAD_CONFIG_LOG_PREPEND_UPTIME
Expand Down

0 comments on commit 2493658

Please sign in to comment.