mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +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
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user