Changeset f43742e2 in mainline


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:
9246016
Parents:
86bbca4
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 04:10:48)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Let trace use str_error() instead of a builtin array.

Location:
uspace/app/trace
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/Makefile

    r86bbca4 rf43742e2  
    3636        ipcp.c \
    3737        ipc_desc.c \
    38         proto.c \
    39         errors.c
     38        proto.c
    4039
    4140include $(USPACE_PREFIX)/Makefile.common
  • uspace/app/trace/trace.c

    r86bbca4 rf43742e2  
    6363#include "syscalls.h"
    6464#include "ipcp.h"
    65 #include "errors.h"
    6665#include "trace.h"
    6766
     
    226225                if (sval >= -15 && sval <= 0) {
    227226                        printf("%ld %s (%s)", sval,
    228                             err_desc[-sval].name,
    229                             err_desc[-sval].desc);
     227                            str_error_name((int) sval),
     228                            str_error((int) sval));
    230229                } else {
    231230                        printf("%ld", sval);
     
    235234                if (sval >= -15 && sval < 0) {
    236235                        printf("%ld %s (%s)", sval,
    237                             err_desc[-sval].name,
    238                             err_desc[-sval].desc);
     236                            str_error_name((int) sval),
     237                            str_error((int) sval));
    239238                } else {
    240239                        printf("%ld", sval);
Note: See TracChangeset for help on using the changeset viewer.