Changeset 9af1c61 in mainline for uspace/app/taskdump


Ignore:
Timestamp:
2017-12-05T14:52:22Z (8 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:
addbce4
Parents:
82d515e9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-05 14:50:38)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-05 14:52:22)
Message:

Print errno values as string, rather than just numbers.

File:
1 edited

Legend:

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

    r82d515e9 r9af1c61  
    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        }
Note: See TracChangeset for help on using the changeset viewer.