Rev 3107 | Rev 3150 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3107 | Rev 3149 | ||
---|---|---|---|
Line 560... | Line 560... | ||
560 | task->phones[i].callee); |
560 | task->phones[i].callee); |
561 | break; |
561 | break; |
562 | default: |
562 | default: |
563 | break; |
563 | break; |
564 | } |
564 | } |
565 | printf("active: %d\n", |
565 | printf("active: %ld\n", |
566 | atomic_get(&task->phones[i].active_calls)); |
566 | atomic_get(&task->phones[i].active_calls)); |
567 | } |
567 | } |
568 | mutex_unlock(&task->phones[i].lock); |
568 | mutex_unlock(&task->phones[i].lock); |
569 | } |
569 | } |
570 | 570 | ||
571 | 571 | ||
572 | /* Print answerbox - calls */ |
572 | /* Print answerbox - calls */ |
573 | spinlock_lock(&task->answerbox.lock); |
573 | spinlock_lock(&task->answerbox.lock); |
574 | printf("ABOX - CALLS:\n"); |
574 | printf("ABOX - CALLS:\n"); |
575 | for (tmp = task->answerbox.calls.next; tmp != &task->answerbox.calls; |
575 | for (tmp = task->answerbox.calls.next; tmp != &task->answerbox.calls; |
576 | tmp = tmp->next) { |
576 | tmp = tmp->next) { |
577 | call = list_get_instance(tmp, call_t, link); |
577 | call = list_get_instance(tmp, call_t, link); |
578 | printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d " |
578 | printf("Callid: %p Srctask:%" PRIu64 " M:%" PRIun |
- | 579 | " A1:%" PRIun " A2:%" PRIun " A3:%" PRIun |
|
579 | "A4:%d A5:%d Flags:%x\n", call, call->sender->taskid, |
580 | " A4:%" PRIun " A5:%" PRIun " Flags:%x\n", call, call->sender->taskid, |
580 | IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
581 | IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
581 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), |
582 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), |
582 | IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), |
583 | IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), |
583 | call->flags); |
584 | call->flags); |
584 | } |
585 | } |
585 | /* Print answerbox - calls */ |
586 | /* Print answerbox - calls */ |
586 | printf("ABOX - DISPATCHED CALLS:\n"); |
587 | printf("ABOX - DISPATCHED CALLS:\n"); |
587 | for (tmp = task->answerbox.dispatched_calls.next; |
588 | for (tmp = task->answerbox.dispatched_calls.next; |
588 | tmp != &task->answerbox.dispatched_calls; |
589 | tmp != &task->answerbox.dispatched_calls; |
589 | tmp = tmp->next) { |
590 | tmp = tmp->next) { |
590 | call = list_get_instance(tmp, call_t, link); |
591 | call = list_get_instance(tmp, call_t, link); |
591 | printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d " |
592 | printf("Callid: %p Srctask:%" PRIu64 " M:%" PRIun |
- | 593 | " A1:%" PRIun " A2:%" PRIun " A3:%" PRIun |
|
592 | "A4:%d A5:%d Flags:%x\n", call, call->sender->taskid, |
594 | " A4:%" PRIun " A5:%" PRIun " Flags:%x\n", call, call->sender->taskid, |
593 | IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
595 | IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
594 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), |
596 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), |
595 | IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), |
597 | IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), |
596 | call->flags); |
598 | call->flags); |
597 | } |
599 | } |
598 | /* Print answerbox - calls */ |
600 | /* Print answerbox - calls */ |
599 | printf("ABOX - ANSWERS:\n"); |
601 | printf("ABOX - ANSWERS:\n"); |
600 | for (tmp = task->answerbox.answers.next; tmp != &task->answerbox.answers; |
602 | for (tmp = task->answerbox.answers.next; tmp != &task->answerbox.answers; |
601 | tmp = tmp->next) { |
603 | tmp = tmp->next) { |
602 | call = list_get_instance(tmp, call_t, link); |
604 | call = list_get_instance(tmp, call_t, link); |
603 | printf("Callid:%p M:%d A1:%d A2:%d A3:%d A4:%d A5:%d Flags:%x\n", |
605 | printf("Callid:%p M:%" PRIun " A1:%" PRIun " A2:%" PRIun |
- | 606 | " A3:%" PRIun " A4:%" PRIun " A5:%" PRIun " Flags:%x\n", |
|
604 | call, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
607 | call, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), |
605 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), |
608 | IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), |
606 | IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), |
609 | IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), |
607 | call->flags); |
610 | call->flags); |
608 | } |
611 | } |