mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Additional changes for clean NSH build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3400 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -41,7 +41,9 @@
|
|||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#include <apps/nsh.h>
|
#include <apps/nsh.h>
|
||||||
|
|
||||||
@@ -134,7 +136,11 @@ int user_start(int argc, char *argv[])
|
|||||||
# endif
|
# endif
|
||||||
if (ret < 0)
|
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 */
|
/* If only the telnet front-end is selected, run it on this thread */
|
||||||
|
|||||||
Reference in New Issue
Block a user