From a2fbc8cb2e51821331f3ba8d920dddf8ab0fb96d Mon Sep 17 00:00:00 2001 From: Mark Wenning Date: Mon, 6 Jun 2011 14:07:51 -0500 Subject: Initialization Service (Flow Control) - save off changes before switch branch - rename to get rid of '_' in filenames. - split into separate files - adding errorlogs, saved off so CC guru could work - fix problem in vfs_main where we would crash if there is no _start in launched task. - refactor - fix problems with coding guidelines - add testcases for startTask and reportError - add fixes from code review Change-Id: I2ae34cb6097c466d4f6d0e41b4b32c2eba47e9df Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/145 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/usr/example/example.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/usr/example/example.C') diff --git a/src/usr/example/example.C b/src/usr/example/example.C index 632eb6882..290d8abc4 100644 --- a/src/usr/example/example.C +++ b/src/usr/example/example.C @@ -12,9 +12,12 @@ trace_desc_t *g_trac_test = NULL; TRAC_INIT(&g_trac_test, "EXAMPLE", 4096); extern "C" -void _start(void*) +void _start(void *ptr) { - printk("Executing example module.\n"); + /** + * @todo fix printk to accept (NULL) + */ + printk( "Executing Example module, arg=%s\n", ( (ptr==NULL) ? "(NULL)" : (char*)ptr ) ); task_end(); } -- cgit v1.2.3