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. --- utils/fakeauth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/fakeauth.c') diff --git a/utils/fakeauth.c b/utils/fakeauth.c index 40c898b2..5a349a8e 100644 --- a/utils/fakeauth.c +++ b/utils/fakeauth.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include "auth_S.h" @@ -359,7 +359,7 @@ believe it has restricted them to different identities or no identity at all.\ /* Create the initial root auth handle. */ err = create_authhandle (&firstauth); - assert_perror (err); + assert_perror_backtrace (err); idvec_add (&firstauth->euids, 0); idvec_add (&firstauth->auids, 0); idvec_add (&firstauth->auids, 0); @@ -370,7 +370,7 @@ believe it has restricted them to different identities or no identity at all.\ authport = ports_get_right (firstauth); err = mach_port_insert_right (mach_task_self (), authport, authport, MACH_MSG_TYPE_MAKE_SEND); - assert_perror (err); + assert_perror_backtrace (err); ports_port_deref (firstauth); /* Stash our original auth port for later use. */ -- cgit v1.2.3