From cdc1dd56604376e94e4dbd6f04b8293f1d3521d7 Mon Sep 17 00:00:00 2001 From: Nathan Lutchansky Date: Thu, 24 May 2018 04:56:55 -0400 Subject: [PATCH] [logging] fix build with OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL=1 (#2727) --- src/cli/cli_uart.cpp | 2 +- src/core/meshcop/energy_scan_client.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/cli_uart.cpp b/src/cli/cli_uart.cpp index 493d2d66e..60e41e833 100644 --- a/src/cli/cli_uart.cpp +++ b/src/cli/cli_uart.cpp @@ -201,7 +201,7 @@ otError Uart::ProcessCommand(void) #if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES /* TODO: how exactly do we get the instance here? */ #else - otLogInfoCli(&Instance::Get(), "execute command: %s", mRxBuffer); + otLogInfoCli(Instance::Get(), "execute command: %s", mRxBuffer); #endif #endif mInterpreter.ProcessLine(mRxBuffer, mRxLength, *this); diff --git a/src/core/meshcop/energy_scan_client.cpp b/src/core/meshcop/energy_scan_client.cpp index b50848f6f..7be32b1c5 100644 --- a/src/core/meshcop/energy_scan_client.cpp +++ b/src/core/meshcop/energy_scan_client.cpp @@ -41,6 +41,7 @@ #include "common/code_utils.hpp" #include "common/debug.hpp" #include "common/encoding.hpp" +#include "common/instance.hpp" #include "common/logging.hpp" #include "meshcop/meshcop.hpp" #include "meshcop/meshcop_tlvs.hpp"