Changes in uspace/app/trace/ipcp.c [228e490:1ccafee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/ipcp.c
r228e490 r1ccafee 46 46 47 47 typedef struct { 48 sysarg_t phone_hash;48 ipcarg_t phone_hash; 49 49 ipc_call_t question; 50 50 oper_t *oper; … … 124 124 } 125 125 126 static void ipc_m_print(proto_t *proto, sysarg_t method)126 static void ipc_m_print(proto_t *proto, ipcarg_t method) 127 127 { 128 128 oper_t *oper; … … 137 137 138 138 if (oper != NULL) { 139 printf("%s (% " PRIun ")", oper->name, method);139 printf("%s (%ld)", oper->name, method); 140 140 return; 141 141 } 142 142 143 printf("% " PRIun, method);143 printf("%ld", method); 144 144 } 145 145 … … 192 192 unsigned long key[1]; 193 193 oper_t *oper; 194 sysarg_t *args;194 ipcarg_t *args; 195 195 int i; 196 196 … … 201 201 202 202 if ((display_mask & DM_IPC) != 0) { 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]); 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]); 210 209 } 211 210 … … 214 213 215 214 if (proto != NULL) { 216 oper = proto_get_oper(proto, IPC_GET_ IMETHOD(*call));215 oper = proto_get_oper(proto, IPC_GET_METHOD(*call)); 217 216 } else { 218 217 oper = NULL; … … 262 261 ipc_call_t *answer) 263 262 { 264 sysarg_t phone;265 sysarg_t method;266 sysarg_t service;267 sysarg_t retval;263 ipcarg_t phone; 264 ipcarg_t method; 265 ipcarg_t service; 266 ipcarg_t retval; 268 267 proto_t *proto; 269 268 int cphone; 270 269 271 sysarg_t *resp;270 ipcarg_t *resp; 272 271 oper_t *oper; 273 272 int i; … … 276 275 277 276 phone = pcall->phone_hash; 278 method = IPC_GET_ IMETHOD(pcall->question);277 method = IPC_GET_METHOD(pcall->question); 279 278 retval = IPC_GET_RETVAL(*answer); 280 279 … … 282 281 283 282 if ((display_mask & DM_IPC) != 0) { 284 printf("Response to %p: retval=%" PRIdn ", args = (%" PRIun ", " 285 "%" PRIun ", %" PRIun ", %" PRIun ", %" PRIun ")\n", 286 (void *) hash, retval, IPC_GET_ARG1(*answer), 283 printf("Response to %p: retval=%ld, args = (%" PRIuIPCARG 284 ", %" PRIuIPCARG ", %" PRIuIPCARG ", %" PRIuIPCARG 285 ", %" PRIuIPCARG ")\n", 286 hash, retval, IPC_GET_ARG1(*answer), 287 287 IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer), 288 288 IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer)); … … 340 340 /* Not a response */ 341 341 if ((display_mask & DM_IPC) != 0) { 342 printf("Not a response (hash %p)\n", (void *)hash);342 printf("Not a response (hash %p)\n", hash); 343 343 } 344 344 return;
Note:
See TracChangeset
for help on using the changeset viewer.