fs/procfs/fs_procfsmeminfo.c: Allow longer heap names

This commit is contained in:
YAMAMOTO Takashi 2021-02-12 14:32:58 +09:00 committed by David Sidrane
parent 929e438052
commit 73dde4b63b
1 changed files with 4 additions and 3 deletions

View File

@ -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,