diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-19 17:29:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-19 17:29:36 +0000 |
commit | 7267882ebd0a6aa79cf88b7f42675804eaff1bcf (patch) | |
tree | 17febedd8989519aa07453bf731fb4c0ab20e347 /nuttx/examples | |
parent | 91d77b455375c2cb410ae981646f398de40175fc (diff) | |
download | px4-nuttx-7267882ebd0a6aa79cf88b7f42675804eaff1bcf.tar.gz px4-nuttx-7267882ebd0a6aa79cf88b7f42675804eaff1bcf.tar.bz2 px4-nuttx-7267882ebd0a6aa79cf88b7f42675804eaff1bcf.zip |
Additional changes for clean NSH build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3400 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/nsh/nsh_main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c index c973530cc..6f63308b4 100644 --- a/nuttx/examples/nsh/nsh_main.c +++ b/nuttx/examples/nsh/nsh_main.c @@ -41,7 +41,9 @@ #include <sys/stat.h> #include <stdint.h> +#include <stdio.h> #include <sched.h> +#include <errno.h> #include <apps/nsh.h> @@ -134,7 +136,11 @@ int user_start(int argc, char *argv[]) # endif if (ret < 0) { - fprintf(stderr, g_fmtcmdfailed, "user_start", "task_create", NSH_ERRNO); + /* The daemon is NOT running. Report the the error then fail... + * either with the serial console up or just exiting. + */ + + fprintf(stderr, "ERROR: Failed to start TELNET daemon: %d\n", errno); } /* If only the telnet front-end is selected, run it on this thread */ |