diff --git a/fs/procfs/fs_procfsmeminfo.c b/fs/procfs/fs_procfsmeminfo.c index 852e4a60b2..eddd718731 100644 --- a/fs/procfs/fs_procfsmeminfo.c +++ b/fs/procfs/fs_procfsmeminfo.c @@ -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",