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"