You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/01/14 15:07:13 UTC

[incubator-nuttx] branch master updated: binfmt/coredump: remove the block fragmentation

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 47f9ec9  binfmt/coredump: remove the block fragmentation
47f9ec9 is described below

commit 47f9ec9c4556f1a2110bc42156bab05b0d943076
Author: chao.an <an...@xiaomi.com>
AuthorDate: Tue Jan 11 23:20:20 2022 +0800

    binfmt/coredump: remove the block fragmentation
    
    Hide the segmentation details to backend implementation
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 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 e8eb84b..2771d2f 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;