summaryrefslogtreecommitdiff
path: root/testcode/checklocks.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2019-02-06 12:31:02 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2019-02-06 12:31:02 +0000
commit9c9d011eed674ddd7e4a0a148691887afb9e75cd (patch)
treecd45bceeed24e66e5b2838e8589d2c111cf691c6 /testcode/checklocks.c
parent089d83fbd0b24f957b753d440f188ddadaabf4ff (diff)
Notes
Diffstat (limited to 'testcode/checklocks.c')
-rw-r--r--testcode/checklocks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testcode/checklocks.c b/testcode/checklocks.c
index 7e6f0bb5db57..1b5ef282b5e4 100644
--- a/testcode/checklocks.c
+++ b/testcode/checklocks.c
@@ -71,6 +71,9 @@ static pid_t check_lock_pid;
/** print all possible debug info on the state of the system */
static void total_debug_info(void);
+/** print pretty lock error and exit (decl for NORETURN attribute) */
+static void lock_error(struct checked_lock* lock, const char* func,
+ const char* file, int line, const char* err) ATTR_NORETURN;
/** print pretty lock error and exit */
static void lock_error(struct checked_lock* lock,