Changes in uspace/app/taskdump/taskdump.c [7354b5e:c1694b6b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/taskdump.c
r7354b5e rc1694b6b 40 40 #include <stddef.h> 41 41 #include <stdbool.h> 42 #include <str_error.h> 42 43 #include <errno.h> 43 44 #include <udebug.h> … … 135 136 136 137 printf("Error connecting\n"); 137 printf("async_connect_kbox(%" PRIu64 ") -> % d ", task_id, errno);138 printf("async_connect_kbox(%" PRIu64 ") -> %s", task_id, str_error_name(errno)); 138 139 return errno; 139 140 } … … 141 142 int rc = udebug_begin(ksess); 142 143 if (rc < 0) { 143 printf("udebug_begin() -> % d\n", rc);144 printf("udebug_begin() -> %s\n", str_error_name(rc)); 144 145 return rc; 145 146 } … … 223 224 rc = udebug_thread_read(sess, &dummy_buf, 0, &copied, &needed); 224 225 if (rc < 0) { 225 printf("udebug_thread_read() -> % d\n", rc);226 printf("udebug_thread_read() -> %s\n", str_error_name(rc)); 226 227 return rc; 227 228 } … … 237 238 rc = udebug_thread_read(sess, thash_buf, buf_size, &copied, &needed); 238 239 if (rc < 0) { 239 printf("udebug_thread_read() -> % d\n", rc);240 printf("udebug_thread_read() -> %s\n", str_error_name(rc)); 240 241 return rc; 241 242 } … … 272 273 rc = udebug_areas_read(sess, &dummy_buf, 0, &copied, &needed); 273 274 if (rc < 0) { 274 printf("udebug_areas_read() -> % d\n", rc);275 printf("udebug_areas_read() -> %s\n", str_error_name(rc)); 275 276 return rc; 276 277 } … … 281 282 rc = udebug_areas_read(sess, ainfo_buf, buf_size, &copied, &needed); 282 283 if (rc < 0) { 283 printf("udebug_areas_read() -> % d\n", rc);284 printf("udebug_areas_read() -> %s\n", str_error_name(rc)); 284 285 return rc; 285 286 } … … 357 358 rc = udebug_regs_read(sess, thash, &istate); 358 359 if (rc < 0) { 359 printf("Failed reading registers (%d).\n", rc);360 printf("Failed reading registers: %s.\n", str_error_name(rc)); 360 361 return EIO; 361 362 }
Note:
See TracChangeset
for help on using the changeset viewer.