From 47f9ec9c4556f1a2110bc42156bab05b0d943076 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Tue, 11 Jan 2022 23:20:20 +0800 Subject: [PATCH] binfmt/coredump: remove the block fragmentation Hide the segmentation details to backend implementation Signed-off-by: chao.an --- binfmt/libelf/libelf_coredump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/binfmt/libelf/libelf_coredump.c b/binfmt/libelf/libelf_coredump.c index e8eb84bf95..2771d2f852 100644 --- a/binfmt/libelf/libelf_coredump.c +++ b/binfmt/libelf/libelf_coredump.c @@ -43,7 +43,6 @@ ****************************************************************************/ #define ELF_PAGESIZE 4096 -#define ELF_BLOCKSIZE 1024 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define ROUNDUP(x, y) ((x + (y - 1)) / (y)) * (y) @@ -82,8 +81,7 @@ static int elf_emit(FAR struct elf_dumpinfo_s *cinfo, while (total > 0) { - ret = cinfo->stream->puts(cinfo->stream, ptr, total > ELF_BLOCKSIZE ? - ELF_BLOCKSIZE : total); + ret = cinfo->stream->puts(cinfo->stream, ptr, total); if (ret < 0) { break;