diff options
author | jasone <jasone@FreeBSD.org> | 2000-09-09 22:43:22 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-09-09 22:43:22 +0000 |
commit | 9d6c8a5123d3247d48e39522c2b84a8875421dc8 (patch) | |
tree | c343dfedc909c5fb2829389925897a24f3ce57d3 /sys/kern/subr_witness.c | |
parent | ee0ea20aad8eba1bf086b9044cf98aa849fddb80 (diff) | |
download | FreeBSD-src-9d6c8a5123d3247d48e39522c2b84a8875421dc8.zip FreeBSD-src-9d6c8a5123d3247d48e39522c2b84a8875421dc8.tar.gz |
Add file and line arguments to WITNESS_ENTER() and WITNESS_EXIT, since
__FILE__ and __LINE__ don't get expanded usefully in inline functions.
Add const to all witness*() arguments that are filenames.
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 3a5fb85..7dda8f1 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -226,7 +226,7 @@ witness_destroy(mtx_t *m) } void -witness_enter(mtx_t *m, int flags, char *file, int line) +witness_enter(mtx_t *m, int flags, const char *file, int line) { witness_t *w, *w1; mtx_t *m1; @@ -361,7 +361,7 @@ out: } void -witness_exit(mtx_t *m, int flags, char *file, int line) +witness_exit(mtx_t *m, int flags, const char *file, int line) { witness_t *w; @@ -458,7 +458,7 @@ witness_display(void(*prnt)(const char *fmt, ...)) } int -witness_sleep(int check_only, mtx_t *mtx, char *file, int line) +witness_sleep(int check_only, mtx_t *mtx, const char *file, int line) { mtx_t *m; struct proc *p; |