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

View File

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