Changes in uspace/app/trace/trace.c [a53ed3a:1569a9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
ra53ed3a r1569a9b 93 93 display_mask_t display_mask; 94 94 95 static errno_t program_run_fibril(void *arg);96 static errno_t cev_fibril(void *arg);95 static int program_run_fibril(void *arg); 96 static int cev_fibril(void *arg); 97 97 98 98 static void program_run(void) … … 122 122 } 123 123 124 static errno_t program_run_fibril(void *arg)125 { 126 errno_t rc;124 static int program_run_fibril(void *arg) 125 { 126 int rc; 127 127 128 128 /* … … 131 131 */ 132 132 rc = loader_run(task_ldr); 133 if (rc != EOK) {133 if (rc != 0) { 134 134 printf("Error running program\n"); 135 135 exit(1); … … 143 143 144 144 145 static errno_t connect_task(task_id_t task_id)145 static int connect_task(task_id_t task_id) 146 146 { 147 147 async_sess_t *ksess = async_connect_kbox(task_id); … … 161 161 } 162 162 163 errno_t rc = udebug_begin(ksess);163 int rc = udebug_begin(ksess); 164 164 if (rc != EOK) { 165 165 printf("udebug_begin() -> %s\n", str_error_name(rc)); … … 177 177 } 178 178 179 static errno_t get_thread_list(void)180 { 181 errno_t rc;179 static int get_thread_list(void) 180 { 181 int rc; 182 182 size_t tb_copied; 183 183 size_t tb_needed; … … 225 225 if (sval >= -15 && sval <= 0) { 226 226 printf("%ld %s (%s)", sval, 227 str_error_name(( errno_t) sval),228 str_error(( errno_t) sval));227 str_error_name((int) sval), 228 str_error((int) sval)); 229 229 } else { 230 230 printf("%ld", sval); … … 234 234 if (sval >= -15 && sval < 0) { 235 235 printf("%ld %s (%s)", sval, 236 str_error_name(( errno_t) sval),237 str_error(( errno_t) sval));236 str_error_name((int) sval), 237 str_error((int) sval)); 238 238 } else { 239 239 printf("%ld", sval); … … 279 279 } 280 280 281 static void sc_ipc_call_async_fast(sysarg_t *sc_args, errno_t sc_rc)281 static void sc_ipc_call_async_fast(sysarg_t *sc_args, int sc_rc) 282 282 { 283 283 ipc_call_t call; … … 299 299 } 300 300 301 static void sc_ipc_call_async_slow(sysarg_t *sc_args, errno_t sc_rc)301 static void sc_ipc_call_async_slow(sysarg_t *sc_args, int sc_rc) 302 302 { 303 303 ipc_call_t call; 304 errno_t rc;304 int rc; 305 305 306 306 if (sc_rc != EOK) … … 318 318 { 319 319 ipc_call_t call; 320 errno_t rc;320 int rc; 321 321 322 322 if (sc_rc == 0) return; … … 333 333 { 334 334 sysarg_t sc_args[6]; 335 errno_t rc;335 int rc; 336 336 337 337 /* Read syscall arguments */ … … 361 361 sysarg_t sc_args[6]; 362 362 int rv_type; 363 errno_t rc;363 int rc; 364 364 365 365 /* Read syscall arguments */ … … 384 384 switch (sc_id) { 385 385 case SYS_IPC_CALL_ASYNC_FAST: 386 sc_ipc_call_async_fast(sc_args, (errno_t)sc_rc);386 sc_ipc_call_async_fast(sc_args, sc_rc); 387 387 break; 388 388 case SYS_IPC_CALL_ASYNC_SLOW: 389 sc_ipc_call_async_slow(sc_args, (errno_t)sc_rc);389 sc_ipc_call_async_slow(sc_args, sc_rc); 390 390 break; 391 391 case SYS_IPC_WAIT: … … 403 403 } 404 404 405 static errno_t trace_loop(void *thread_hash_arg)406 { 407 errno_t rc;405 static int trace_loop(void *thread_hash_arg) 406 { 407 int rc; 408 408 unsigned ev_type; 409 409 uintptr_t thread_hash; … … 498 498 { 499 499 loader_t *ldr; 500 errno_t rc;500 int rc; 501 501 502 502 /* Spawn a program loader */ … … 566 566 } 567 567 568 static errno_t cev_fibril(void *arg)568 static int cev_fibril(void *arg) 569 569 { 570 570 cons_event_t event; … … 598 598 bool done; 599 599 int i; 600 errno_t rc;600 int rc; 601 601 602 602 ipcp_init(); … … 844 844 int main(int argc, char *argv[]) 845 845 { 846 errno_t rc;846 int rc; 847 847 task_exit_t texit; 848 848 int retval;
Note:
See TracChangeset
for help on using the changeset viewer.