stream: replace the stream function pointer with a macro

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2022-11-25 17:19:45 +08:00
committed by Xiang Xiao
parent 511070c300
commit 377bf97613
5 changed files with 33 additions and 33 deletions

View File

@@ -61,7 +61,7 @@
static int elf_flush(FAR struct elf_dumpinfo_s *cinfo)
{
return cinfo->stream->flush(cinfo->stream);
return lib_stream_flush(cinfo->stream);
}
/****************************************************************************
@@ -81,7 +81,7 @@ static int elf_emit(FAR struct elf_dumpinfo_s *cinfo,
while (total > 0)
{
ret = cinfo->stream->puts(cinfo->stream, ptr, total);
ret = lib_stream_puts(cinfo->stream, ptr, total);
if (ret < 0)
{
break;