[logging] fix benign typecast issue in otDump (#5198)

Fixes a benign typecast issue found when using the IAR compiler.
This commit is contained in:
Gary Palmer
2020-07-06 20:26:11 -07:00
committed by GitHub
parent 716e5f0726
commit 180f5824dc
+1 -1
View File
@@ -123,7 +123,7 @@ void otDump(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aId, const
cur += strlen(cur);
}
snprintf(cur, sizeof(buf) - static_cast<size_t>(cur - buf), "[%s len=%03u]", aId, static_cast<uint16_t>(aLength));
snprintf(cur, sizeof(buf) - static_cast<size_t>(cur - buf), "[%s len=%03u]", aId, static_cast<unsigned>(aLength));
cur += strlen(cur);
for (size_t i = 0; i < (width - idlen) / 2 - 4; i++)