diff options
author | jhb <jhb@FreeBSD.org> | 2000-12-12 03:48:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-12-12 03:48:40 +0000 |
commit | 1511ebc38e064cc4db55a6501af314da6378a927 (patch) | |
tree | a68c71ec0f77157205c5757f6621f0544fcec9d0 | |
parent | 986a4dc88d53b0ccc8588a845981d0302b439f9c (diff) | |
download | FreeBSD-src-1511ebc38e064cc4db55a6501af314da6378a927.zip FreeBSD-src-1511ebc38e064cc4db55a6501af314da6378a927.tar.gz |
Since _mtx_enter() and friends are static inline functions now instead of
macros, the mutex KTR log entries don't actually have the useful filename
and line numbers in the KTR_EXTEND case, so remove a comment claiming this
and go back to one set of KTR strings.
-rw-r--r-- | sys/sys/mutex.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 1c074b3..df93faf 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -449,22 +449,9 @@ void witness_restore(struct mtx *, const char *, int); /* Common strings */ #ifdef _KERN_MUTEX_C_ -#ifdef KTR_EXTEND - -/* - * KTR_EXTEND saves file name and line for all entries, so we don't need them - * here. Theoretically we should also change the entries which refer to them - * (from CTR5 to CTR3), but since they're just passed to snprintf as the last - * parameters, it doesn't do any harm to leave them. - */ -char STR_mtx_enter_fmt[] = "GOT %s [%p] r=%d"; -char STR_mtx_exit_fmt[] = "REL %s [%p] r=%d"; -char STR_mtx_try_enter_fmt[] = "TRY_ENTER %s [%p] result=%d"; -#else char STR_mtx_enter_fmt[] = "GOT %s [%p] r=%d at %s:%d"; char STR_mtx_exit_fmt[] = "REL %s [%p] r=%d at %s:%d"; char STR_mtx_try_enter_fmt[] = "TRY_ENTER %s [%p] result=%d at %s:%d"; -#endif char STR_mtx_bad_type[] = "((type) & (MTX_NORECURSE | MTX_NOSWITCH)) == 0"; char STR_mtx_owned[] = "mtx_owned(mpp)"; char STR_mtx_recurse[] = "mpp->mtx_recurse == 0"; |