diff --git a/src/core/common/logging.cpp b/src/core/common/logging.cpp index aa5b85da7..7d5136e25 100644 --- a/src/core/common/logging.cpp +++ b/src/core/common/logging.cpp @@ -123,7 +123,7 @@ void otDump(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aId, const cur += strlen(cur); } - snprintf(cur, sizeof(buf) - static_cast(cur - buf), "[%s len=%03u]", aId, static_cast(aLength)); + snprintf(cur, sizeof(buf) - static_cast(cur - buf), "[%s len=%03u]", aId, static_cast(aLength)); cur += strlen(cur); for (size_t i = 0; i < (width - idlen) / 2 - 4; i++)