From 180f5824dcfe78d8253107dea221654c32fed4c1 Mon Sep 17 00:00:00 2001 From: Gary Palmer Date: Mon, 6 Jul 2020 20:26:11 -0700 Subject: [PATCH] [logging] fix benign typecast issue in otDump (#5198) Fixes a benign typecast issue found when using the IAR compiler. --- src/core/common/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)