From 658dd948632ea9642391d272579f70fd32bfc599 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Mon, 26 Feb 2024 14:52:47 -0300 Subject: [PATCH] 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",