mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 21:48:12 +00:00
[log] add build option OT_LOG_MAX_SIZE to set the max log string size (#10948)
This commit is contained in:
@@ -101,7 +101,7 @@ void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat
|
||||
|
||||
if (sLogFile == NULL)
|
||||
{
|
||||
char logString[512];
|
||||
char logString[12 /* NodeId */ + OPENTHREAD_CONFIG_LOG_MAX_SIZE];
|
||||
int offset;
|
||||
|
||||
offset = snprintf(logString, sizeof(logString), "[%lu]", (unsigned long)gNodeId);
|
||||
|
||||
Reference in New Issue
Block a user