mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user