Rev 4163 | Rev 4243 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4163 | Rev 4197 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | int main( int argc, char * argv[] ){ |
72 | int main( int argc, char * argv[] ){ |
73 | ERROR_DECLARE; |
73 | ERROR_DECLARE; |
74 | 74 | ||
75 | int networking_phone; |
75 | int networking_phone; |
76 | 76 | ||
77 | printf( "\nTask %d - " NAME, task_get_id()); |
77 | printf( "\nTask %d - %s", task_get_id(), NAME ); |
78 | // run self tests |
78 | // run self tests |
79 | ERROR_PROPAGATE( self_test()); |
79 | ERROR_PROPAGATE( self_test()); |
80 | // start networking service |
80 | // start networking service |
81 | if( ! spawn( "/srv/net" )){ |
81 | if( ! spawn( "/srv/net" )){ |
82 | printf( "\n" NAME " - Could not spawn networking" ); |
82 | printf( "\nCould not spawn networking" ); |
83 | return EINVAL; |
83 | return EINVAL; |
84 | } |
84 | } |
85 | // start networking |
85 | // start networking |
86 | networking_phone = connect_to_service( SERVICE_NETWORKING ); |
86 | networking_phone = connect_to_service( SERVICE_NETWORKING ); |
87 | if( ERROR_OCCURRED( ipc_call_sync_0_0( networking_phone, NET_NET_STARTUP ))){ |
87 | if( ERROR_OCCURRED( ipc_call_sync_0_0( networking_phone, NET_NET_STARTUP ))){ |
88 | printf( "\n" NAME " - ERROR %d\n", ERROR_CODE ); |
88 | printf( "\nERROR %d\n", ERROR_CODE ); |
89 | return ERROR_CODE; |
89 | return ERROR_CODE; |
90 | } |
90 | } |
91 | printf( "\n" NAME " - OK\n" ); |
91 | printf( "\nOK\n" ); |
92 | 92 | ||
93 | return EOK; |
93 | return EOK; |
94 | } |
94 | } |
95 | 95 | ||
96 | task_id_t spawn( char * fname ){ |
96 | task_id_t spawn( char * fname ){ |