Changes in uspace/srv/net/netstart/netstart.c [4011fa0:d9fae235] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netstart/netstart.c
r4011fa0 rd9fae235 44 44 #include <stdio.h> 45 45 #include <task.h> 46 #include <str_error.h> 46 47 #include <ipc/ipc.h> 47 48 #include <ipc/services.h> … … 71 72 argv[1] = NULL; 72 73 73 if (task_spawn(path, argv) == 0) { 74 fprintf(stderr, "%s: Error spawning %s\n", NAME, path); 74 int err; 75 if (task_spawn(path, argv, &err) == 0) { 76 fprintf(stderr, "%s: Error spawning %s (%s)\n", NAME, path, 77 str_error(err)); 75 78 return false; 76 79 } … … 79 82 } 80 83 81 /** Network startup entry point.82 *83 * @param[in] argc The number of command line parameters.84 * @param[in] argv The command line parameters.85 *86 * @returns EOK on success.87 * @returns EINVAL if the net module cannot be started.88 * @returns Other error codes as defined for the self_test() function.89 * @returns Other error codes as defined for the NET_NET_STARTUP message.90 *91 */92 84 int main(int argc, char *argv[]) 93 85 { … … 105 97 int net_phone = connect_to_service(SERVICE_NETWORKING); 106 98 if (ERROR_OCCURRED(ipc_call_sync_0_0(net_phone, NET_NET_STARTUP))) { 107 fprintf(stderr, "%s: Networkingerror %d\n", NAME, ERROR_CODE);99 fprintf(stderr, "%s: Startup error %d\n", NAME, ERROR_CODE); 108 100 return ERROR_CODE; 109 101 }
Note:
See TracChangeset
for help on using the changeset viewer.