From edb29aa64e325bc41f0feb8a8a784bdad483a0a6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 1 Oct 2013 11:52:35 -0600 Subject: More improvements to the minimal NSH when there is no file system and when print fieldwidths are suppressed --- apps/examples/nsh/nsh_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/examples') 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 -- cgit v1.2.3