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


Ignore:
Timestamp:
2017-06-19T21:47:42Z (7 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/synch/futex.c

    r7354b5e r63e27ef  
    6161 */
    6262
     63#include <assert.h>
    6364#include <synch/futex.h>
    6465#include <synch/mutex.h>
     
    241242static void futex_add_ref(futex_t *futex)
    242243{
    243         ASSERT(spinlock_locked(&futex_ht_lock));
    244         ASSERT(0 < futex->refcount);
     244        assert(spinlock_locked(&futex_ht_lock));
     245        assert(0 < futex->refcount);
    245246        ++futex->refcount;
    246247}
     
    249250static void futex_release_ref(futex_t *futex)
    250251{
    251         ASSERT(spinlock_locked(&futex_ht_lock));
    252         ASSERT(0 < futex->refcount);
     252        assert(spinlock_locked(&futex_ht_lock));
     253        assert(0 < futex->refcount);
    253254       
    254255        --futex->refcount;
     
    459460        futex_t *futex;
    460461
    461         ASSERT(keys == 1);
     462        assert(keys == 1);
    462463
    463464        futex = hash_table_get_instance(item, futex_t, ht_link);
Note: See TracChangeset for help on using the changeset viewer.