More improvements to the minimal NSH when there is no file system and when print fieldwidths are suppressed

This commit is contained in:
Gregory Nutt
2013-10-01 11:52:35 -06:00
parent 749eb6a027
commit f6e948fa04
4 changed files with 38 additions and 4 deletions

View File

@@ -513,7 +513,11 @@ static inline void help_cmdlist(FAR struct nsh_vtbl_s *vtbl)
nsh_output(vtbl, " ");
for (j = 0, k = i; j < CMDS_PER_LINE && k < NUM_CMDS; j++, k += NUM_CMD_ROWS)
{
#ifdef CONFIG_NOPRINTF_FIELDWIDTH
nsh_output(vtbl, "%s\t", g_cmdmap[k].cmd);
#else
nsh_output(vtbl, "%-12s", g_cmdmap[k].cmd);
#endif
}
nsh_output(vtbl, "\n");