Changes in uspace/app/trace/ipcp.c [5a6cc679:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/ipcp.c
r5a6cc679 ra35b458 253 253 proto_t *proto; 254 254 int cphone; 255 255 256 256 sysarg_t *resp; 257 257 oper_t *oper; 258 258 int i; 259 259 260 260 phone = pcall->phone_hash; 261 261 method = IPC_GET_IMETHOD(pcall->question); 262 262 retval = IPC_GET_RETVAL(*answer); 263 263 264 264 resp = answer->args; 265 265 266 266 if ((display_mask & DM_IPC) != 0) { 267 267 printf("Response to %d: retval=%s, args = (%" PRIun ", " … … 271 271 IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer)); 272 272 } 273 273 274 274 if ((display_mask & DM_USER) != 0) { 275 275 oper = pcall->oper; 276 276 277 277 if ((oper != NULL) && 278 278 ((oper->rv_type != V_VOID) || (oper->respc > 0))) { 279 279 printf("->"); 280 280 281 281 if (oper->rv_type != V_VOID) { 282 282 putchar(' '); 283 283 val_print((sysarg_t) retval, oper->rv_type); 284 284 } 285 285 286 286 if (oper->respc > 0) { 287 287 putchar(' '); … … 294 294 putchar(')'); 295 295 } 296 296 297 297 putchar('\n'); 298 298 } 299 299 } 300 300 301 301 if ((phone == PHONE_NS) && (method == IPC_M_CONNECT_ME_TO) && 302 302 (retval == 0)) { … … 306 306 if (proto == NULL) 307 307 proto = proto_unknown; 308 308 309 309 cphone = IPC_GET_ARG5(*answer); 310 310 if ((display_mask & DM_SYSTEM) != 0) { … … 312 312 proto->name); 313 313 } 314 314 315 315 ipcp_connection_set(cphone, 0, proto); 316 316 } … … 321 321 ht_link_t *item; 322 322 pending_call_t *pcall; 323 323 324 324 if ((call->flags & IPC_CALL_ANSWERED) == 0) { 325 325 /* Not a response */ … … 329 329 return; 330 330 } 331 331 332 332 item = hash_table_find(&pending_calls, &hash); 333 333 if (item == NULL) 334 334 return; /* No matching question found */ 335 335 336 336 /* 337 337 * Response matched to question. 338 338 */ 339 339 340 340 pcall = hash_table_get_inst(item, pending_call_t, link); 341 341 hash_table_remove(&pending_calls, &hash); 342 342 343 343 parse_answer(hash, pcall, call); 344 344 free(pcall);
Note:
See TracChangeset
for help on using the changeset viewer.