summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-01 11:52:35 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-01 11:52:35 -0600
commitedb29aa64e325bc41f0feb8a8a784bdad483a0a6 (patch)
treedb4afdc6e389e6a5ee4acce476f230c4672f2698 /apps/examples
parent6d00b3a3f845a49b3755a5fd02db194b60f3295b (diff)
downloadnuttx-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/examples')
-rw-r--r--apps/examples/nsh/nsh_main.c5
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