procfs/meminfo: align page fields to columns

meminfo before:
```
      total       used       free    maxused    maxfree  nused  nfree name
    3129344      10824    3118520      11184    3118104     25      2 Kmem
   13631488    1114112   12517376   12517376 Page
```
and after:

```
      total       used       free    maxused    maxfree  nused  nfree name
    3129344      10824    3118520      11184    3118104     25      2 Kmem
   13631488    1114112   12517376              12517376               Page
```
Signed-off-by: Yanfeng Liu <p-liuyanfeng9@xiaomi.com>
This commit is contained in:
Yanfeng Liu 2025-01-22 14:11:48 +08:00 committed by Xiang Xiao
parent 944f6ceeec
commit 4e8bcf1ba4

View file

@ -367,8 +367,8 @@ static ssize_t meminfo_read(FAR struct file *filep, FAR char *buffer,
max = (unsigned long)pg_info.mxfree << MM_PGSHIFT;
linesize = procfs_snprintf(procfile->line, MEMINFO_LINELEN,
"%11lu%11lu%11lu%11lu %s\n",
total, allocated, available, max, "Page");
"%11lu%11lu%11lu%11s%11lu %18s\n", total,
allocated, available, "", max, "Page");
copysize = procfs_memcpy(procfile->line, linesize, buffer, buflen,
&offset);