[posix] add OT_TOOL_WEAK for otPlatLog (#7173)

This PR avoids link error of duplicate `otPlatLog` symbol.
This commit is contained in:
whd
2021-11-16 14:38:55 -08:00
committed by GitHub
parent 6aa730969a
commit 9dedd18696
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/platform/logging.h>
#if OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...)
OT_TOOL_WEAK void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...)
{
OT_UNUSED_VARIABLE(aLogRegion);