mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +08:00
lib_stdoutstream:need return write size
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -86,7 +86,7 @@ static int stdoutstream_puts(FAR struct lib_outstream_s *self,
|
||||
|
||||
do
|
||||
{
|
||||
result = fwrite(buffer, len, 1, stream->handle);
|
||||
result = fwrite(buffer, 1, len, stream->handle);
|
||||
if (result >= 0)
|
||||
{
|
||||
self->nput += result;
|
||||
|
||||
Reference in New Issue
Block a user