From 2493658d6a087b787298e6bfc747230425e40b63 Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Wed, 4 Sep 2024 04:05:58 +0800 Subject: [PATCH] [config] disable uptime logging when multi-instance enabled (#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. --- .../platforms/simulation/openthread-core-simulation-config.h | 2 +- src/posix/platform/openthread-core-posix-config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platforms/simulation/openthread-core-simulation-config.h b/examples/platforms/simulation/openthread-core-simulation-config.h index 517b5b5b257..1b702788a0c 100644 --- a/examples/platforms/simulation/openthread-core-simulation-config.h +++ b/examples/platforms/simulation/openthread-core-simulation-config.h @@ -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 diff --git a/src/posix/platform/openthread-core-posix-config.h b/src/posix/platform/openthread-core-posix-config.h index a837ddc960e..cfe1bc0ab88 100644 --- a/src/posix/platform/openthread-core-posix-config.h +++ b/src/posix/platform/openthread-core-posix-config.h @@ -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