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

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

commit 73dde4b63b1c1c18ebbe4be072d27c1ff91acfd0
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Fri Feb 12 14:32:58 2021 +0900

    fs/procfs/fs_procfsmeminfo.c: Allow longer heap names
---
 fs/procfs/fs_procfsmeminfo.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/fs/procfs/fs_procfsmeminfo.c b/fs/procfs/fs_procfsmeminfo.c
index 67d0724..bc10f78 100644
--- a/fs/procfs/fs_procfsmeminfo.c
+++ b/fs/procfs/fs_procfsmeminfo.c
@@ -54,7 +54,7 @@
  * to handle the longest line generated by this logic.
  */
 
-#define MEMINFO_LINELEN 54
+#define MEMINFO_LINELEN 62
 
 /****************************************************************************
  * Private Types
@@ -284,7 +284,8 @@ static ssize_t meminfo_read(FAR struct file *filep, FAR 
char *buffer,
 
   linesize  =
     snprintf(procfile->line, MEMINFO_LINELEN,
-             "             total       used       free    largest\n");
+             "                     "
+             "total       used       free    largest\n");
 
   copysize  = procfs_memcpy(procfile->line, linesize, buffer, buflen,
                             &offset);
@@ -307,7 +308,7 @@ static ssize_t meminfo_read(FAR struct file *filep, FAR 
char *buffer,
 
           entry->mallinfo(entry->user_data, &minfo);
           linesize   = snprintf(procfile->line, MEMINFO_LINELEN,
-                                "%4s:  %11lu%11lu%11lu%11lu\n",
+                                "%12s:  %11lu%11lu%11lu%11lu\n",
                                 entry->name,
                                 (unsigned long)minfo.arena,
                                 (unsigned long)minfo.uordblks,

Reply via email to