diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-30 20:13:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-30 20:13:50 +0000 |
commit | 79c7065433ae27932ad8b781d38b8f7832b01581 (patch) | |
tree | f770414832eeecb35adb70404b31d147afad7235 /apps/examples/pashello/pashello.c | |
parent | f9d19788072090be80b71ab0d0de14507a6e739b (diff) | |
download | nuttx-79c7065433ae27932ad8b781d38b8f7832b01581.tar.gz nuttx-79c7065433ae27932ad8b781d38b8f7832b01581.tar.bz2 nuttx-79c7065433ae27932ad8b781d38b8f7832b01581.zip |
Add configurable application entry point
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5070 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/pashello/pashello.c')
-rw-r--r-- | apps/examples/pashello/pashello.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/examples/pashello/pashello.c b/apps/examples/pashello/pashello.c index ae19c94f5..5e2fe8bf3 100644 --- a/apps/examples/pashello/pashello.c +++ b/apps/examples/pashello/pashello.c @@ -99,10 +99,10 @@ static void prun(FAR struct pexec_s *st) ****************************************************************************/ /**************************************************************************** - * user_start + * pashello_main ****************************************************************************/ -int user_start(int argc, FAR char *argv[]) +int pashello_main(int argc, FAR char *argv[]) { FAR struct pexec_s *st; @@ -115,11 +115,11 @@ int user_start(int argc, FAR char *argv[]) st = pload("/dev/hello", CONFIG_PASHELLO_VARSTACKSIZE, CONFIG_PASHELLO_STRSTACKSIZE); if (!st) { - fprintf(stderr, "user_start: ERROR: Could not load /dev/hello\n"); + fprintf(stderr, "pashello_main: ERROR: Could not load /dev/hello\n"); exit(1); } - printf("user_start: /dev/hello Loaded\n"); - printf("user_start: Interpreter started:\n"); + printf("pashello_main: /dev/hello Loaded\n"); + printf("pashello_main: Interpreter started:\n"); /* And start program execution */ @@ -127,7 +127,7 @@ int user_start(int argc, FAR char *argv[]) /* Clean up resources used by the interpreter */ - printf("user_start: Interpreter terminated"); + printf("pashello_main: Interpreter terminated"); pexec_release(st); return 0; } |