Changeset a5c3f73 in mainline for uspace/app/trace/ipcp.c
- Timestamp:
- 2008-09-19T11:30:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 356acd0
- Parents:
- f7176b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/ipcp.c
rf7176b1 ra5c3f73 45 45 46 46 typedef struct { 47 i nt phone_hash;47 ipcarg_t phone_hash; 48 48 ipc_call_t question; 49 49 oper_t *oper; 50 50 51 i nt call_hash;51 ipc_callid_t call_hash; 52 52 53 53 link_t link; … … 98 98 hs = hash_table_get_instance(item, pending_call_t, link); 99 99 100 // FIXME: this will fail if sizeof(long) < sizeof(void *). 100 101 return key[0] == hs->call_hash; 101 102 } … … 135 136 136 137 if (oper != NULL) { 137 printf("%s (% d)", oper->name, method);138 printf("%s (%ld)", oper->name, method); 138 139 return; 139 140 } 140 141 141 printf("% d", method);142 printf("%ld", method); 142 143 } 143 144 … … 199 200 200 201 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, 202 203 phone, (proto ? proto->name : "n/a")); 203 204 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], 205 206 args[3], args[4], args[5]); 206 207 } … … 258 259 ipc_call_t *answer) 259 260 { 260 i nt phone;261 ipcarg_t phone; 261 262 ipcarg_t method; 262 263 ipcarg_t service; 263 i nt retval;264 ipcarg_t retval; 264 265 proto_t *proto; 265 266 int cphone; … … 278 279 279 280 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", 281 282 hash, retval, IPC_GET_ARG1(*answer), 282 283 IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer), … … 333 334 /* printf("phone: %d, method: ", call->in_phone_hash); 334 335 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", 336 337 IPC_GET_ARG1(*call), 337 338 IPC_GET_ARG2(*call), … … 344 345 /* Not a response */ 345 346 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); 347 348 } 348 349 return;
Note:
See TracChangeset
for help on using the changeset viewer.