Changeset c1694b6b in mainline for uspace/app/taskdump/taskdump.c


Ignore:
Timestamp:
2017-12-08T21:03:35Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f77c1c9
Parents:
9eb1ff5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 18:20:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Add str_error() in numerous places.

File:
1 edited

Legend:

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

    r9eb1ff5 rc1694b6b  
    142142        int rc = udebug_begin(ksess);
    143143        if (rc < 0) {
    144                 printf("udebug_begin() -> %d\n", rc);
     144                printf("udebug_begin() -> %s\n", str_error_name(rc));
    145145                return rc;
    146146        }
     
    224224        rc = udebug_thread_read(sess, &dummy_buf, 0, &copied, &needed);
    225225        if (rc < 0) {
    226                 printf("udebug_thread_read() -> %d\n", rc);
     226                printf("udebug_thread_read() -> %s\n", str_error_name(rc));
    227227                return rc;
    228228        }
     
    238238        rc = udebug_thread_read(sess, thash_buf, buf_size, &copied, &needed);
    239239        if (rc < 0) {
    240                 printf("udebug_thread_read() -> %d\n", rc);
     240                printf("udebug_thread_read() -> %s\n", str_error_name(rc));
    241241                return rc;
    242242        }
     
    273273        rc = udebug_areas_read(sess, &dummy_buf, 0, &copied, &needed);
    274274        if (rc < 0) {
    275                 printf("udebug_areas_read() -> %d\n", rc);
     275                printf("udebug_areas_read() -> %s\n", str_error_name(rc));
    276276                return rc;
    277277        }
     
    282282        rc = udebug_areas_read(sess, ainfo_buf, buf_size, &copied, &needed);
    283283        if (rc < 0) {
    284                 printf("udebug_areas_read() -> %d\n", rc);
     284                printf("udebug_areas_read() -> %s\n", str_error_name(rc));
    285285                return rc;
    286286        }
     
    358358        rc = udebug_regs_read(sess, thash, &istate);
    359359        if (rc < 0) {
    360                 printf("Failed reading registers (%d).\n", rc);
     360                printf("Failed reading registers: %s.\n", str_error_name(rc));
    361361                return EIO;
    362362        }
Note: See TracChangeset for help on using the changeset viewer.