mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +08:00
More improvements to the minimal NSH when there is no file system and when print fieldwidths are suppressed
This commit is contained in:
@@ -87,9 +87,15 @@ int cmd_free(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
(void)mallinfo(&mem);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NOPRINTF_FIELDWIDTH
|
||||
nsh_output(vtbl, "\ttotal\tused\tfree\tlargest\n");
|
||||
nsh_output(vtbl, "Mem:\t%d\t%d\t%d\t%d\n",
|
||||
mem.arena, mem.uordblks, mem.fordblks, mem.mxordblk);
|
||||
#else
|
||||
nsh_output(vtbl, " total used free largest\n");
|
||||
nsh_output(vtbl, "Mem: %11d%11d%11d%11d\n",
|
||||
mem.arena, mem.uordblks, mem.fordblks, mem.mxordblk);
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user