Changeset a5c3f73 in mainline for uspace/app/trace/ipcp.c


Ignore:
Timestamp:
2008-09-19T11:30:04Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
356acd0
Parents:
f7176b1
Message:

trace: 64-bit-related fixes

File:
1 edited

Legend:

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

    rf7176b1 ra5c3f73  
    4545
    4646typedef struct {
    47         int phone_hash;
     47        ipcarg_t phone_hash;
    4848        ipc_call_t question;
    4949        oper_t *oper;
    5050
    51         int call_hash;
     51        ipc_callid_t call_hash;
    5252
    5353        link_t link;
     
    9898        hs = hash_table_get_instance(item, pending_call_t, link);
    9999
     100        // FIXME: this will fail if sizeof(long) < sizeof(void *).
    100101        return key[0] == hs->call_hash;
    101102}
     
    135136
    136137        if (oper != NULL) {
    137                 printf("%s (%d)", oper->name, method);
     138                printf("%s (%ld)", oper->name, method);
    138139                return;
    139140        }
    140141
    141         printf("%d", method);
     142        printf("%ld", method);
    142143}
    143144
     
    199200
    200201        if ((display_mask & DM_IPC) != 0) {
    201                 printf("Call ID: 0x%x, phone: %d, proto: %s, method: ", hash,
     202                printf("Call ID: 0x%lx, phone: %d, proto: %s, method: ", hash,
    202203                        phone, (proto ? proto->name : "n/a"));
    203204                ipc_m_print(proto, IPC_GET_METHOD(*call));
    204                 printf(" args: (%u, %u, %u, %u, %u)\n", args[1], args[2],
     205                printf(" args: (%lu, %lu, %lu, %lu, %lu)\n", args[1], args[2],
    205206                    args[3], args[4], args[5]);
    206207        }
     
    258259    ipc_call_t *answer)
    259260{
    260         int phone;
     261        ipcarg_t phone;
    261262        ipcarg_t method;
    262263        ipcarg_t service;
    263         int retval;
     264        ipcarg_t retval;
    264265        proto_t *proto;
    265266        int cphone;
     
    278279
    279280        if ((display_mask & DM_IPC) != 0) {
    280                 printf("Response to 0x%x: retval=%d, args = (%u, %u, %u, %u, %u)\n",
     281                printf("Response to 0x%lx: retval=%ld, args = (%lu, %lu, %lu, %lu, %lu)\n",
    281282                        hash, retval, IPC_GET_ARG1(*answer),
    282283                        IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer),
     
    333334/*      printf("phone: %d, method: ", call->in_phone_hash);
    334335        ipc_m_print(IPC_GET_METHOD(*call));
    335         printf(" args: (%u, %u, %u, %u, %u)\n",
     336        printf(" args: (%lu, %lu, %lu, %lu, %lu)\n",
    336337            IPC_GET_ARG1(*call),
    337338            IPC_GET_ARG2(*call),
     
    344345                /* Not a response */
    345346                if ((display_mask & DM_IPC) != 0) {
    346                         printf("Not a response (hash %d)\n", hash);
     347                        printf("Not a response (hash 0x%lx)\n", hash);
    347348                }
    348349                return;
Note: See TracChangeset for help on using the changeset viewer.