Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/taskdump.c

    r7354b5e rc1694b6b  
    4040#include <stddef.h>
    4141#include <stdbool.h>
     42#include <str_error.h>
    4243#include <errno.h>
    4344#include <udebug.h>
     
    135136               
    136137                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));
    138139                return errno;
    139140        }
     
    141142        int rc = udebug_begin(ksess);
    142143        if (rc < 0) {
    143                 printf("udebug_begin() -> %d\n", rc);
     144                printf("udebug_begin() -> %s\n", str_error_name(rc));
    144145                return rc;
    145146        }
     
    223224        rc = udebug_thread_read(sess, &dummy_buf, 0, &copied, &needed);
    224225        if (rc < 0) {
    225                 printf("udebug_thread_read() -> %d\n", rc);
     226                printf("udebug_thread_read() -> %s\n", str_error_name(rc));
    226227                return rc;
    227228        }
     
    237238        rc = udebug_thread_read(sess, thash_buf, buf_size, &copied, &needed);
    238239        if (rc < 0) {
    239                 printf("udebug_thread_read() -> %d\n", rc);
     240                printf("udebug_thread_read() -> %s\n", str_error_name(rc));
    240241                return rc;
    241242        }
     
    272273        rc = udebug_areas_read(sess, &dummy_buf, 0, &copied, &needed);
    273274        if (rc < 0) {
    274                 printf("udebug_areas_read() -> %d\n", rc);
     275                printf("udebug_areas_read() -> %s\n", str_error_name(rc));
    275276                return rc;
    276277        }
     
    281282        rc = udebug_areas_read(sess, ainfo_buf, buf_size, &copied, &needed);
    282283        if (rc < 0) {
    283                 printf("udebug_areas_read() -> %d\n", rc);
     284                printf("udebug_areas_read() -> %s\n", str_error_name(rc));
    284285                return rc;
    285286        }
     
    357358        rc = udebug_regs_read(sess, thash, &istate);
    358359        if (rc < 0) {
    359                 printf("Failed reading registers (%d).\n", rc);
     360                printf("Failed reading registers: %s.\n", str_error_name(rc));
    360361                return EIO;
    361362        }
Note: See TracChangeset for help on using the changeset viewer.