Changeset bd72c3e9 in mainline


Ignore:
Timestamp:
2007-06-17T19:46:39Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ec12fd
Parents:
8b243f2
Message:

Some left-over stuff from the last commit (IPC cleanup and improved
comments.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    r8b243f2 rbd72c3e9  
    101101}
    102102
    103 /** Deallocate a call stracuture.
     103/** Deallocate a call structure.
    104104 *
    105105 * @param call          Call structure to be freed.
     
    437437                phone = list_get_instance(TASK->answerbox.connected_phones.next,
    438438                    phone_t, link);
    439                 if (! spinlock_trylock(&phone->lock)) {
     439                if (!spinlock_trylock(&phone->lock)) {
    440440                        spinlock_unlock(&TASK->answerbox.lock);
    441441                        DEADLOCK_PROBE(p_phonelck, DEADLOCK_THRESHOLD);
     
    545545                                break;
    546546                        }
    547                         printf("active: %d\n", atomic_get(&task->phones[i].active_calls));
     547                        printf("active: %d\n",
     548                            atomic_get(&task->phones[i].active_calls));
    548549                }
    549550                spinlock_unlock(&task->phones[i].lock);
     
    554555        spinlock_lock(&task->answerbox.lock);
    555556        printf("ABOX - CALLS:\n");
    556         for (tmp=task->answerbox.calls.next; tmp != &task->answerbox.calls;tmp = tmp->next) {
     557        for (tmp = task->answerbox.calls.next; tmp != &task->answerbox.calls;
     558            tmp = tmp->next) {
    557559                call = list_get_instance(tmp, call_t, link);
    558                 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d Flags:%x\n",call,
    559                        call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
    560                        IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags);
     560                printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d "
     561                    "Flags:%x\n", call, call->sender->taskid,
     562                    IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
     563                    IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data),
     564                    call->flags);
    561565        }
    562566        /* Print answerbox - calls */
     
    566570             tmp = tmp->next) {
    567571                call = list_get_instance(tmp, call_t, link);
    568                 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d Flags:%x\n",call,
    569                        call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
    570                        IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags);
     572                printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d "
     573                    "Flags:%x\n", call, call->sender->taskid,
     574                    IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
     575                    IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data),
     576                    call->flags);
    571577        }
    572578        /* Print answerbox - calls */
    573579        printf("ABOX - ANSWERS:\n");
    574         for (tmp=task->answerbox.answers.next; tmp != &task->answerbox.answers; tmp = tmp->next) {
     580        for (tmp = task->answerbox.answers.next; tmp != &task->answerbox.answers;
     581            tmp = tmp->next) {
    575582                call = list_get_instance(tmp, call_t, link);
    576                 printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n",call,
    577                        IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
    578                        IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags);
     583                printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n", call,
     584                    IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),
     585                    IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data),
     586                    call->flags);
    579587        }
    580588
Note: See TracChangeset for help on using the changeset viewer.