procfs: Change variable name to ease debugging

This commit is contained in:
Tiago Medicci Serrano 2024-02-26 14:52:47 -03:00 committed by Xiang Xiao
parent e287ed9090
commit 658dd94863
1 changed files with 5 additions and 5 deletions

View File

@ -336,7 +336,7 @@ static ssize_t meminfo_read(FAR struct file *filep, FAR char *buffer,
#ifdef CONFIG_MM_PGALLOC
if (buflen > 0)
{
struct pginfo_s pginfo;
struct pginfo_s pg_info;
unsigned long total;
unsigned long available;
unsigned long allocated;
@ -347,12 +347,12 @@ static ssize_t meminfo_read(FAR struct file *filep, FAR char *buffer,
/* Show page allocator information */
mm_pginfo(&pginfo);
mm_pginfo(&pg_info);
total = (unsigned long)pginfo.ntotal << MM_PGSHIFT;
available = (unsigned long)pginfo.nfree << MM_PGSHIFT;
total = (unsigned long)pg_info.ntotal << MM_PGSHIFT;
available = (unsigned long)pg_info.nfree << MM_PGSHIFT;
allocated = total - available;
max = (unsigned long)pginfo.mxfree << MM_PGSHIFT;
max = (unsigned long)pg_info.mxfree << MM_PGSHIFT;
linesize = procfs_snprintf(procfile->line, MEMINFO_LINELEN,
"%12s:%11lu%11lu%11lu%11lu\n",