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/examples/nsh | |
parent | 6d00b3a3f845a49b3755a5fd02db194b60f3295b (diff) | |
download | px4-nuttx-edb29aa64e325bc41f0feb8a8a784bdad483a0a6.tar.gz px4-nuttx-edb29aa64e325bc41f0feb8a8a784bdad483a0a6.tar.bz2 px4-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/examples/nsh')
-rw-r--r-- | apps/examples/nsh/nsh_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/examples/nsh/nsh_main.c b/apps/examples/nsh/nsh_main.c index 7bd34615e..a6ce3442b 100644 --- a/apps/examples/nsh/nsh_main.c +++ b/apps/examples/nsh/nsh_main.c @@ -174,7 +174,12 @@ int nsh_main(int argc, char *argv[]) * is wrong. */ +#if CONFIG_NFILE_DESCRIPTORS > 0 fprintf(stderr, "ERROR: nsh_consolemain() returned: %d\n", ret); +#else + printf("ERROR: nsh_consolemain() returned: %d\n", ret); +#endif + exitval = 1; #endif |