Changeset b7fd2a0 in mainline for uspace/app/trace/trace.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
r36f0738 rb7fd2a0 93 93 display_mask_t display_mask; 94 94 95 static int program_run_fibril(void *arg);96 static int cev_fibril(void *arg);95 static errno_t program_run_fibril(void *arg); 96 static errno_t cev_fibril(void *arg); 97 97 98 98 static void program_run(void) … … 122 122 } 123 123 124 static int program_run_fibril(void *arg)125 { 126 int rc;124 static errno_t program_run_fibril(void *arg) 125 { 126 errno_t rc; 127 127 128 128 /* … … 143 143 144 144 145 static int connect_task(task_id_t task_id)145 static errno_t 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 int rc = udebug_begin(ksess);163 errno_t 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 int get_thread_list(void)180 { 181 int rc;179 static errno_t get_thread_list(void) 180 { 181 errno_t 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(( int) sval),228 str_error(( int) sval));227 str_error_name((errno_t) sval), 228 str_error((errno_t) 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(( int) sval),237 str_error(( int) sval));236 str_error_name((errno_t) sval), 237 str_error((errno_t) 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, int sc_rc)281 static void sc_ipc_call_async_fast(sysarg_t *sc_args, errno_t 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, int sc_rc)301 static void sc_ipc_call_async_slow(sysarg_t *sc_args, errno_t sc_rc) 302 302 { 303 303 ipc_call_t call; 304 int rc;304 errno_t rc; 305 305 306 306 if (sc_rc != EOK) … … 318 318 { 319 319 ipc_call_t call; 320 int rc;320 errno_t rc; 321 321 322 322 if (sc_rc == 0) return; … … 333 333 { 334 334 sysarg_t sc_args[6]; 335 int rc;335 errno_t rc; 336 336 337 337 /* Read syscall arguments */ … … 361 361 sysarg_t sc_args[6]; 362 362 int rv_type; 363 int rc;363 errno_t 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, sc_rc);386 sc_ipc_call_async_fast(sc_args, (errno_t) sc_rc); 387 387 break; 388 388 case SYS_IPC_CALL_ASYNC_SLOW: 389 sc_ipc_call_async_slow(sc_args, sc_rc);389 sc_ipc_call_async_slow(sc_args, (errno_t) sc_rc); 390 390 break; 391 391 case SYS_IPC_WAIT: … … 403 403 } 404 404 405 static int trace_loop(void *thread_hash_arg)406 { 407 int rc;405 static errno_t trace_loop(void *thread_hash_arg) 406 { 407 errno_t rc; 408 408 unsigned ev_type; 409 409 uintptr_t thread_hash; … … 498 498 { 499 499 loader_t *ldr; 500 int rc;500 errno_t rc; 501 501 502 502 /* Spawn a program loader */ … … 566 566 } 567 567 568 static int cev_fibril(void *arg)568 static errno_t cev_fibril(void *arg) 569 569 { 570 570 cons_event_t event; … … 598 598 bool done; 599 599 int i; 600 int rc;600 errno_t rc; 601 601 602 602 ipcp_init(); … … 844 844 int main(int argc, char *argv[]) 845 845 { 846 int rc;846 errno_t rc; 847 847 task_exit_t texit; 848 848 int retval;
Note:
See TracChangeset
for help on using the changeset viewer.