From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- libfshelp/get-identity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libfshelp/get-identity.c') diff --git a/libfshelp/get-identity.c b/libfshelp/get-identity.c index 2dbd254c..17244dee 100644 --- a/libfshelp/get-identity.c +++ b/libfshelp/get-identity.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include static struct port_class *idclass = 0; static pthread_mutex_t idlock = PTHREAD_MUTEX_INITIALIZER; @@ -49,7 +49,7 @@ id_clean (void *cookie) static void id_initialize () { - assert (!idclass); + assert_backtrace (!idclass); idclass = ports_create_class (id_clean, NULL); } -- cgit v1.2.3