74,21 → 74,21 |
|
int networking_phone; |
|
printf( "\nTask %d - " NAME, task_get_id()); |
printf( "\nTask %d - %s", task_get_id(), NAME ); |
// run self tests |
ERROR_PROPAGATE( self_test()); |
// start networking service |
if( ! spawn( "/srv/net" )){ |
printf( "\n" NAME " - Could not spawn networking" ); |
printf( "\nCould not spawn networking" ); |
return EINVAL; |
} |
// start networking |
networking_phone = connect_to_service( SERVICE_NETWORKING ); |
if( ERROR_OCCURRED( ipc_call_sync_0_0( networking_phone, NET_NET_STARTUP ))){ |
printf( "\n" NAME " - ERROR %d\n", ERROR_CODE ); |
printf( "\nERROR %d\n", ERROR_CODE ); |
return ERROR_CODE; |
} |
printf( "\n" NAME " - OK\n" ); |
printf( "\nOK\n" ); |
|
return EOK; |
} |