Changeset 63e27ef in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2017-06-19T21:47:42Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deacc58d
Parents:
7354b5e
Message:

ASSERT → assert

File:
1 edited

Legend:

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

    r7354b5e r63e27ef  
    3838 */
    3939
     40#include <assert.h>
    4041#include <synch/spinlock.h>
    4142#include <synch/mutex.h>
     
    5253#include <proc/task.h>
    5354#include <mem.h>
    54 #include <debug.h>
    5555#include <print.h>
    5656#include <console/console.h>
     
    227227                spinlock_lock(&TASK->active_calls_lock);
    228228
    229                 ASSERT(!request->forget);
     229                assert(!request->forget);
    230230
    231231                bool answered = !request->active;
     
    253253                }
    254254        }
    255         ASSERT(!answer || request == answer);
     255        assert(!answer || request == answer);
    256256       
    257257        slab_free(ipc_answerbox_slab, mybox);
     
    631631               
    632632                /* Disconnect phone */
    633                 ASSERT(phone->state == IPC_PHONE_CONNECTED);
     633                assert(phone->state == IPC_PHONE_CONNECTED);
    634634               
    635635                list_remove(&phone->link);
     
    668668static void ipc_forget_call(call_t *call)
    669669{
    670         ASSERT(spinlock_locked(&TASK->active_calls_lock));
    671         ASSERT(spinlock_locked(&call->forget_lock));
     670        assert(spinlock_locked(&TASK->active_calls_lock));
     671        assert(spinlock_locked(&call->forget_lock));
    672672
    673673        /*
     
    789789        call = ipc_wait_for_call(&TASK->answerbox, SYNCH_NO_TIMEOUT,
    790790            SYNCH_FLAGS_NONE);
    791         ASSERT(call->flags & (IPC_CALL_ANSWERED | IPC_CALL_NOTIF));
     791        assert(call->flags & (IPC_CALL_ANSWERED | IPC_CALL_NOTIF));
    792792
    793793        SYSIPC_OP(answer_process, call);
Note: See TracChangeset for help on using the changeset viewer.