[cli-uart] fix va_end may not be called for va_copy (#7079)

This commit is contained in:
Simon Lin
2021-10-18 09:07:49 -07:00
committed by GitHub
parent 3f40cf78e6
commit fcadd11ffb
+2 -2
View File
@@ -343,9 +343,9 @@ static int CliUartOutput(void *aContext, const char *aFormat, va_list aArguments
}
else
{
// Flush did not succeed, so abort here.
// Flush did not succeed, so abandon buffered output.
otLogWarnPlat("Failed to output CLI: %s", otThreadErrorToString(error));
ExitNow();
break;
}
}
rval = vsnprintf(sTxBuffer, kTxBufferSize, aFormat, retryArguments);