lib_stdoutstream:need return write size

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2024-09-05 16:56:40 +08:00
committed by GUIDINGLI
parent b4def16ac3
commit ae126a8065
+1 -1
View File
@@ -86,7 +86,7 @@ static int stdoutstream_puts(FAR struct lib_outstream_s *self,
do do
{ {
result = fwrite(buffer, len, 1, stream->handle); result = fwrite(buffer, 1, len, stream->handle);
if (result >= 0) if (result >= 0)
{ {
self->nput += result; self->nput += result;