You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/03/05 01:45:58 UTC
(nuttx) 04/05: procfs: Change variable name to ease debugging
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 658dd948632ea9642391d272579f70fd32bfc599
Author: Tiago Medicci Serrano <ti...@espressif.com>
AuthorDate: Mon Feb 26 14:52:47 2024 -0300
procfs: Change variable name to ease debugging
---
fs/procfs/fs_procfsmeminfo.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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",