diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-12-10 05:51:45 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-12-10 05:51:45 +0000 |
commit | a48740b6c50cfe7030c97caf8254ded1b60bea1e (patch) | |
tree | 5b308df4fd67d0bb0e6fe811cf399562e8f2580d /sys/kern/kern_sx.c | |
parent | 91f9161737079d14e086d7f4bd4e379be022bebd (diff) | |
download | src-a48740b6c50cfe7030c97caf8254ded1b60bea1e.tar.gz src-a48740b6c50cfe7030c97caf8254ded1b60bea1e.zip |
Update to C99, s/__FUNCTION__/__func__/.
Notes
Notes:
svn path=/head/; revision=87594
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r-- | sys/kern/kern_sx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index 3de64a2808e5..38136a17b4ed 100644 --- a/sys/kern/kern_sx.c +++ b/sys/kern/kern_sx.c @@ -85,7 +85,7 @@ sx_destroy(struct sx *sx) LOCK_LOG_DESTROY(&sx->sx_object, 0); KASSERT((sx->sx_cnt == 0 && sx->sx_shrd_wcnt == 0 && sx->sx_excl_wcnt == - 0), ("%s (%s): holders or waiters\n", __FUNCTION__, + 0), ("%s (%s): holders or waiters\n", __func__, sx->sx_object.lo_name)); sx->sx_lock = NULL; @@ -101,7 +101,7 @@ _sx_slock(struct sx *sx, const char *file, int line) mtx_lock(sx->sx_lock); KASSERT(sx->sx_xholder != curthread, - ("%s (%s): slock while xlock is held @ %s:%d\n", __FUNCTION__, + ("%s (%s): slock while xlock is held @ %s:%d\n", __func__, sx->sx_object.lo_name, file, line)); /* @@ -154,7 +154,7 @@ _sx_xlock(struct sx *sx, const char *file, int line) * INVARIANTS. */ KASSERT(sx->sx_xholder != curthread, - ("%s (%s): xlock already held @ %s:%d", __FUNCTION__, + ("%s (%s): xlock already held @ %s:%d", __func__, sx->sx_object.lo_name, file, line)); /* Loop in case we lose the race for lock acquisition. */ |