From 73dde4b63b1c1c18ebbe4be072d27c1ff91acfd0 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 12 Feb 2021 14:32:58 +0900 Subject: [PATCH] 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 67d072401e..bc10f785ed 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,