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. --- libtrivfs/io-reauthenticate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtrivfs/io-reauthenticate.c') diff --git a/libtrivfs/io-reauthenticate.c b/libtrivfs/io-reauthenticate.c index 72684e35..db8272fb 100644 --- a/libtrivfs/io-reauthenticate.c +++ b/libtrivfs/io-reauthenticate.c @@ -21,7 +21,7 @@ #include "priv.h" #include "trivfs_io_S.h" -#include +#include #include kern_return_t @@ -49,7 +49,7 @@ trivfs_S_io_reauthenticate (struct trivfs_protid *cred, auth = getauth (); newright = ports_get_send_right (newcred); - assert (newright != MACH_PORT_NULL); + assert_backtrace (newright != MACH_PORT_NULL); err = iohelp_reauth (&newcred->user, auth, rendport, newright, 1); if (!err) -- cgit v1.2.3