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. --- libnetfs/io-reauthenticate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libnetfs/io-reauthenticate.c') diff --git a/libnetfs/io-reauthenticate.c b/libnetfs/io-reauthenticate.c index b2d4a440..4351545b 100644 --- a/libnetfs/io-reauthenticate.c +++ b/libnetfs/io-reauthenticate.c @@ -47,7 +47,7 @@ netfs_S_io_reauthenticate (struct protid *user, mach_port_t rend_port) } newright = ports_get_send_right (newpi); - 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 (&user->po->np->lock); -- cgit v1.2.3