Rev 1708 | Rev 1757 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1708 | Rev 1735 | ||
---|---|---|---|
Line 476... | Line 476... | ||
476 | switch (task->phones[i].state) { |
476 | switch (task->phones[i].state) { |
477 | case IPC_PHONE_CONNECTING: |
477 | case IPC_PHONE_CONNECTING: |
478 | printf("connecting "); |
478 | printf("connecting "); |
479 | break; |
479 | break; |
480 | case IPC_PHONE_CONNECTED: |
480 | case IPC_PHONE_CONNECTED: |
481 | printf("connected to: %P ", |
481 | printf("connected to: %p ", |
482 | task->phones[i].callee); |
482 | task->phones[i].callee); |
483 | break; |
483 | break; |
484 | case IPC_PHONE_SLAMMED: |
484 | case IPC_PHONE_SLAMMED: |
485 | printf("slammed by: %P ", |
485 | printf("slammed by: %p ", |
486 | task->phones[i].callee); |
486 | task->phones[i].callee); |
487 | break; |
487 | break; |
488 | case IPC_PHONE_HUNGUP: |
488 | case IPC_PHONE_HUNGUP: |
489 | printf("hung up - was: %P ", |
489 | printf("hung up - was: %p ", |
490 | task->phones[i].callee); |
490 | task->phones[i].callee); |
491 | break; |
491 | break; |
492 | default: |
492 | default: |
493 | break; |
493 | break; |
494 | } |
494 | } |
Line 501... | Line 501... | ||
501 | /* Print answerbox - calls */ |
501 | /* Print answerbox - calls */ |
502 | spinlock_lock(&task->answerbox.lock); |
502 | spinlock_lock(&task->answerbox.lock); |
503 | printf("ABOX - CALLS:\n"); |
503 | printf("ABOX - CALLS:\n"); |
504 | for (tmp=task->answerbox.calls.next; tmp != &task->answerbox.calls;tmp = tmp->next) { |
504 | for (tmp=task->answerbox.calls.next; tmp != &task->answerbox.calls;tmp = tmp->next) { |
505 | call = list_get_instance(tmp, call_t, link); |
505 | call = list_get_instance(tmp, call_t, link); |
506 | printf("Callid: %P Srctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, |
506 | printf("Callid: %p Srctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, |
507 | call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
507 | call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
508 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); |
508 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); |
509 | } |
509 | } |
510 | /* Print answerbox - calls */ |
510 | /* Print answerbox - calls */ |
511 | printf("ABOX - DISPATCHED CALLS:\n"); |
511 | printf("ABOX - DISPATCHED CALLS:\n"); |
512 | for (tmp=task->answerbox.dispatched_calls.next; |
512 | for (tmp=task->answerbox.dispatched_calls.next; |
513 | tmp != &task->answerbox.dispatched_calls; |
513 | tmp != &task->answerbox.dispatched_calls; |
514 | tmp = tmp->next) { |
514 | tmp = tmp->next) { |
515 | call = list_get_instance(tmp, call_t, link); |
515 | call = list_get_instance(tmp, call_t, link); |
516 | printf("Callid: %P Srctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, |
516 | printf("Callid: %p Srctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, |
517 | call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
517 | call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
518 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); |
518 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); |
519 | } |
519 | } |
520 | /* Print answerbox - calls */ |
520 | /* Print answerbox - calls */ |
521 | printf("ABOX - ANSWERS:\n"); |
521 | printf("ABOX - ANSWERS:\n"); |
522 | for (tmp=task->answerbox.answers.next; tmp != &task->answerbox.answers; tmp = tmp->next) { |
522 | for (tmp=task->answerbox.answers.next; tmp != &task->answerbox.answers; tmp = tmp->next) { |
523 | call = list_get_instance(tmp, call_t, link); |
523 | call = list_get_instance(tmp, call_t, link); |
524 | printf("Callid:%P M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, |
524 | printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, |
525 | IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
525 | IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
526 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); |
526 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); |
527 | } |
527 | } |
528 | 528 | ||
529 | spinlock_unlock(&task->answerbox.lock); |
529 | spinlock_unlock(&task->answerbox.lock); |