Changeset 25a179e in mainline for uspace/app/trace/trace.c


Ignore:
Timestamp:
2017-12-20T19:51:45Z (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:
f96b6c8
Parents:
d4a829e
Message:

IPC return values are always errno constants. Adjust types to reflect that.

In principle, IPC server is not allowed to return non-errno values via
the "main" return value, because kernel interprets it (e.g. EHANGUP).
It's still possible to return arbitrary additional return values alongside EOK,
which are not interpreted in normal communication.

File:
1 edited

Legend:

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

    rd4a829e r25a179e  
    260260
    261261
    262 static void print_sc_retval(sysarg_t retval, val_type_t val_type)
     262static void print_sc_retval(int retval, val_type_t val_type)
    263263{
    264264        printf(" -> ");
     
    279279}
    280280
    281 static void sc_ipc_call_async_fast(sysarg_t *sc_args, sysarg_t sc_rc)
     281static void sc_ipc_call_async_fast(sysarg_t *sc_args, int sc_rc)
    282282{
    283283        ipc_call_t call;
    284284        sysarg_t phoneid;
    285285       
    286         if (sc_rc != (sysarg_t) EOK)
     286        if (sc_rc != EOK)
    287287                return;
    288288
Note: See TracChangeset for help on using the changeset viewer.