summaryrefslogtreecommitdiff
path: root/apps/examples/nsh/nsh_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nsh/nsh_main.c')
-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