From 9488d4bc48e274bbd9e1e99004d4e4c9d500af69 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Tue, 16 Jun 2020 12:29:50 +0800 Subject: [PATCH] [settings] fix DUA logging (#5095) --- script/check-simulation-build-autotools | 1 + src/core/common/settings.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/script/check-simulation-build-autotools b/script/check-simulation-build-autotools index 7d54d7537..84a1439f8 100755 --- a/script/check-simulation-build-autotools +++ b/script/check-simulation-build-autotools @@ -85,6 +85,7 @@ build_all_features() local options_1_2=( "-DOPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1" + "-DOPENTHREAD_CONFIG_DUA_ENABLE=1" ) export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE" diff --git a/src/core/common/settings.cpp b/src/core/common/settings.cpp index 26934cf86..a19007f66 100644 --- a/src/core/common/settings.cpp +++ b/src/core/common/settings.cpp @@ -81,7 +81,7 @@ void SettingsBase::LogChildInfo(const char *aAction, const ChildInfo &aChildInfo #if OPENTHREAD_CONFIG_DUA_ENABLE void SettingsBase::LogDadInfo(const char *aAction, const DadInfo &aDadInfo) const { - otLogInfoCore("Non-volatile: %s DadInfo {DadCounter:%2d}", aAction, aDadInfo.mDadCounter); + otLogInfoCore("Non-volatile: %s DadInfo {DadCounter:%2d}", aAction, aDadInfo.GetDadCounter()); } #endif