Changes in uspace/app/trace/trace.c [f43742e2:706b4de] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
rf43742e2 r706b4de 38 38 #include <stdint.h> 39 39 #include <stddef.h> 40 #include <str_error.h>41 40 #include <inttypes.h> 42 41 #include <fibril.h> … … 63 62 #include "syscalls.h" 64 63 #include "ipcp.h" 64 #include "errors.h" 65 65 #include "trace.h" 66 66 … … 157 157 158 158 printf("Error connecting\n"); 159 printf("ipc_connect_task(%" PRIu64 ") -> % s ", task_id, str_error_name(errno));159 printf("ipc_connect_task(%" PRIu64 ") -> %d ", task_id, errno); 160 160 return errno; 161 161 } … … 163 163 int rc = udebug_begin(ksess); 164 164 if (rc < 0) { 165 printf("udebug_begin() -> % s\n", str_error_name(rc));165 printf("udebug_begin() -> %d\n", rc); 166 166 return rc; 167 167 } … … 169 169 rc = udebug_set_evmask(ksess, UDEBUG_EM_ALL); 170 170 if (rc < 0) { 171 printf("udebug_set_evmask(0x%x) -> % s\n ", UDEBUG_EM_ALL, str_error_name(rc));171 printf("udebug_set_evmask(0x%x) -> %d\n ", UDEBUG_EM_ALL, rc); 172 172 return rc; 173 173 } … … 187 187 THBUF_SIZE*sizeof(unsigned), &tb_copied, &tb_needed); 188 188 if (rc < 0) { 189 printf("udebug_thread_read() -> % s\n", str_error_name(rc));189 printf("udebug_thread_read() -> %d\n", rc); 190 190 return rc; 191 191 } … … 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 err_desc[-sval].name, 228 err_desc[-sval].desc); 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 err_desc[-sval].name, 237 err_desc[-sval].desc); 238 238 } else { 239 239 printf("%ld", sval); … … 284 284 sysarg_t phoneid; 285 285 286 if (sc_rc != (sysarg_t) EOK)286 if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL) 287 287 return; 288 288 … … 304 304 int rc; 305 305 306 if (sc_rc != (sysarg_t) EOK)306 if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL) 307 307 return; 308 308 … … 604 604 rc = get_thread_list(); 605 605 if (rc < 0) { 606 printf("Failed to get thread list ( %s)\n", str_error(rc));606 printf("Failed to get thread list (error %d)\n", rc); 607 607 return; 608 608 } … … 643 643 rc = udebug_stop(sess, thash); 644 644 if (rc != EOK) 645 printf("Error: stop -> % s\n", str_error_name(rc));645 printf("Error: stop -> %d\n", rc); 646 646 break; 647 647 case KC_R:
Note:
See TracChangeset
for help on using the changeset viewer.