From 79c7065433ae27932ad8b781d38b8f7832b01581 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 30 Aug 2012 20:13:50 +0000 Subject: Add configurable application entry point git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5070 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/pashello/pashello.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/examples/pashello') 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; } -- cgit v1.2.3