Changeset 9af1c61 in mainline for uspace/app/trace/trace.c


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/trace/trace.c

    r82d515e9 r9af1c61  
    3838#include <stdint.h>
    3939#include <stddef.h>
     40#include <str_error.h>
    4041#include <inttypes.h>
    4142#include <fibril.h>
     
    157158               
    158159                printf("Error connecting\n");
    159                 printf("ipc_connect_task(%" PRIu64 ") -> %d ", task_id, errno);
     160                printf("ipc_connect_task(%" PRIu64 ") -> %s ", task_id, str_error_name(errno));
    160161                return errno;
    161162        }
Note: See TracChangeset for help on using the changeset viewer.