Skip to content

Commit e7a0ab0

Browse files
committed
[cli] make otPlatLogOutput weak to allow application override
Make `otPlatLogOutput()` `OT_TOOL_WEAK` in `cli_logging.cpp` so that applications can provide their own strong definition to customize instance-aware log output behaviour.
1 parent e336e7a commit e7a0ab0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/cli_logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#if OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_APP
4343

4444
#if OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE
45-
extern "C" void otPlatLogOutput(otInstance *aInstance, otLogLevel aLogLevel, const char *aLogLine)
45+
extern "C" OT_TOOL_WEAK void otPlatLogOutput(otInstance *aInstance, otLogLevel aLogLevel, const char *aLogLine)
4646
{
4747
OT_UNUSED_VARIABLE(aInstance);
4848
otPlatLog(aLogLevel, OT_LOG_REGION_CORE, "%s", aLogLine);

0 commit comments

Comments
 (0)