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. --- libdiskfs/io-reauthenticate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/io-reauthenticate.c') diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c index 985db498..1b88a3b2 100644 --- a/libdiskfs/io-reauthenticate.c +++ b/libdiskfs/io-reauthenticate.c @@ -47,7 +47,7 @@ diskfs_S_io_reauthenticate (struct protid *cred, } newright = ports_get_send_right (newcred); - assert (newright != MACH_PORT_NULL); + assert_backtrace (newright != MACH_PORT_NULL); /* Release the node lock while blocking on the auth server and client. */ pthread_mutex_unlock (&cred->po->np->lock); -- cgit v1.2.3