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