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:
parent
944f6ceeec
commit
4e8bcf1ba4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue