aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sema.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-09-17 21:21:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-09-17 21:21:02 +0000
commit52d4106b5377135096363f99385ffd9bafb98caa (patch)
treeb487cc728ac365c5ef9758c9ee37a34b17223d86 /sys/sys/sema.h
parente3c822c9686074c2e335b34978a4f0124f66b291 (diff)
downloadsrc-52d4106b5377135096363f99385ffd9bafb98caa.tar.gz
src-52d4106b5377135096363f99385ffd9bafb98caa.zip
Use NULL instead of __FILE__ in the !LOCK_DEBUG case in the locking code
since the filenames are only used in the LOCK_DEBUG case and are just bloat in the !LOCK_DEBUG case.
Notes
Notes: svn path=/head/; revision=83593
Diffstat (limited to 'sys/sys/sema.h')
-rw-r--r--sys/sys/sema.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/sema.h b/sys/sys/sema.h
index 6a2ef147cd2f..91f0fc2b40bf 100644
--- a/sys/sys/sema.h
+++ b/sys/sys/sema.h
@@ -50,11 +50,11 @@ int _sema_timedwait(struct sema *sema, int timo, const char *file, int
int _sema_trywait(struct sema *sema, const char *file, int line);
int sema_value(struct sema *sema);
-#define sema_post(sema) _sema_post((sema), __FILE__, __LINE__)
-#define sema_wait(sema) _sema_wait((sema), __FILE__, __LINE__)
+#define sema_post(sema) _sema_post((sema), LOCK_FILE, LOCK_LINE)
+#define sema_wait(sema) _sema_wait((sema), LOCK_FILE, LOCK_LINE)
#define sema_timedwait(sema, timo) \
- _sema_timedwait((sema), (timo), __FILE__, __LINE__)
-#define sema_trywait(sema) _sema_trywait((sema), __FILE__, __LINE__)
+ _sema_timedwait((sema), (timo), LOCK_FILE, LOCK_LINE)
+#define sema_trywait(sema) _sema_trywait((sema), LOCK_FILE, LOCK_LINE)
#endif /* _KERNEL */
#endif /* _SYS_SEMA_H_ */