diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 11:52:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 11:52:35 -0600 |
commit | edb29aa64e325bc41f0feb8a8a784bdad483a0a6 (patch) | |
tree | db4afdc6e389e6a5ee4acce476f230c4672f2698 /apps/nshlib/nsh_mmcmds.c | |
parent | 6d00b3a3f845a49b3755a5fd02db194b60f3295b (diff) | |
download | nuttx-edb29aa64e325bc41f0feb8a8a784bdad483a0a6.tar.gz nuttx-edb29aa64e325bc41f0feb8a8a784bdad483a0a6.tar.bz2 nuttx-edb29aa64e325bc41f0feb8a8a784bdad483a0a6.zip |
More improvements to the minimal NSH when there is no file system and when print fieldwidths are suppressed
Diffstat (limited to 'apps/nshlib/nsh_mmcmds.c')
-rw-r--r-- | apps/nshlib/nsh_mmcmds.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_mmcmds.c b/apps/nshlib/nsh_mmcmds.c index 545ae60ad..58209ee7c 100644 --- a/apps/nshlib/nsh_mmcmds.c +++ b/apps/nshlib/nsh_mmcmds.c @@ -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; } |