Changeset 973ef9fc in mainline for uspace/app/trace/ipcp.c


Ignore:
Timestamp:
2010-12-25T21:20:28Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r1bfd3d3 r973ef9fc  
    4646
    4747typedef struct {
    48         ipcarg_t phone_hash;
     48        sysarg_t phone_hash;
    4949        ipc_call_t question;
    5050        oper_t *oper;
     
    124124}
    125125
    126 static void ipc_m_print(proto_t *proto, ipcarg_t method)
     126static void ipc_m_print(proto_t *proto, sysarg_t method)
    127127{
    128128        oper_t *oper;
     
    137137
    138138        if (oper != NULL) {
    139                 printf("%s (%ld)", oper->name, method);
     139                printf("%s (%" PRIun ")", oper->name, method);
    140140                return;
    141141        }
    142142
    143         printf("%ld", method);
     143        printf("%" PRIun, method);
    144144}
    145145
     
    192192        unsigned long key[1];
    193193        oper_t *oper;
    194         ipcarg_t *args;
     194        sysarg_t *args;
    195195        int i;
    196196
     
    201201
    202202        if ((display_mask & DM_IPC) != 0) {
    203                 printf("Call ID: %p, phone: %d, proto: %s, method: ", hash,
    204                         phone, (proto ? proto->name : "n/a"));
    205                 ipc_m_print(proto, IPC_GET_METHOD(*call));
    206                 printf(" args: (%" PRIuIPCARG ", %" PRIuIPCARG ", %" PRIuIPCARG
    207                     ", %" PRIuIPCARG ", %" PRIuIPCARG ")\n", args[1], args[2],
    208                     args[3], args[4], args[5]);
     203                printf("Call ID: %p, phone: %d, proto: %s, method: ",
     204                    (void *) hash, phone,
     205                    (proto ? proto->name : "n/a"));
     206                ipc_m_print(proto, IPC_GET_IMETHOD(*call));
     207                printf(" args: (%" PRIun ", %" PRIun ", %" PRIun ", "
     208                    "%" PRIun ", %" PRIun ")\n",
     209                    args[1], args[2], args[3], args[4], args[5]);
    209210        }
    210211
     
    213214
    214215                if (proto != NULL) {
    215                         oper = proto_get_oper(proto, IPC_GET_METHOD(*call));
     216                        oper = proto_get_oper(proto, IPC_GET_IMETHOD(*call));
    216217                } else {
    217218                        oper = NULL;
     
    261262    ipc_call_t *answer)
    262263{
    263         ipcarg_t phone;
    264         ipcarg_t method;
    265         ipcarg_t service;
    266         ipcarg_t retval;
     264        sysarg_t phone;
     265        sysarg_t method;
     266        sysarg_t service;
     267        sysarg_t retval;
    267268        proto_t *proto;
    268269        int cphone;
    269270
    270         ipcarg_t *resp;
     271        sysarg_t *resp;
    271272        oper_t *oper;
    272273        int i;
     
    275276
    276277        phone = pcall->phone_hash;
    277         method = IPC_GET_METHOD(pcall->question);
     278        method = IPC_GET_IMETHOD(pcall->question);
    278279        retval = IPC_GET_RETVAL(*answer);
    279280
     
    281282
    282283        if ((display_mask & DM_IPC) != 0) {
    283                 printf("Response to %p: retval=%ld, args = (%" PRIuIPCARG
    284                     ", %" PRIuIPCARG ", %" PRIuIPCARG ", %" PRIuIPCARG
    285                     ", %" PRIuIPCARG ")\n",
    286                     hash, retval, IPC_GET_ARG1(*answer),
     284                printf("Response to %p: retval=%" PRIdn ", args = (%" PRIun ", "
     285                    "%" PRIun ", %" PRIun ", %" PRIun ", %" PRIun ")\n",
     286                    (void *) hash, retval, IPC_GET_ARG1(*answer),
    287287                    IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer),
    288288                    IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer));
     
    340340                /* Not a response */
    341341                if ((display_mask & DM_IPC) != 0) {
    342                         printf("Not a response (hash %p)\n", hash);
     342                        printf("Not a response (hash %p)\n", (void *) hash);
    343343                }
    344344                return;
Note: See TracChangeset for help on using the changeset viewer.