diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-11-29 15:12:53 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-11-29 15:12:53 +0000 |
commit | 7ee395f1263fbe52107983f993cac7ef31100f90 (patch) | |
tree | 47e46a624cb0ca7fc1b568de099a42900adaaf7f /sys | |
parent | eca782104affe14ebf19c64af03880e02ea8eff7 (diff) |
Show line number correctly in synthetic mutex names.
OK jca@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/mutex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 3554e4e2cbe..c217957784a 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mutex.h,v 1.10 2017/08/12 16:28:01 guenther Exp $ */ +/* $OpenBSD: mutex.h,v 1.11 2017/11/29 15:12:52 visa Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> @@ -49,8 +49,8 @@ ((flags) & MTX_DUPOK ? LO_DUPOK : 0) | \ LO_INITIALIZED | (LO_CLASS_MUTEX << LO_CLASSSHIFT)) -#define __MTX_S(x) #x -#define __MTX_LINE __MTX_S(__LINE__) +#define __MTX_STRING(x) #x +#define __MTX_S(x) __MTX_STRING(x) #define __MTX_NAME __FILE__ ":" __MTX_S(__LINE__) #define MTX_LO_INITIALIZER(name, flags) \ |