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. --- auth/auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'auth/auth.c') diff --git a/auth/auth.c b/auth/auth.c index d5ef5876..bc5e87aa 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include @@ -496,7 +496,7 @@ main (int argc, char **argv) /* 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); @@ -505,7 +505,7 @@ main (int argc, char **argv) /* Fetch our bootstrap port and contact the bootstrap filesystem. */ err = task_get_bootstrap_port (mach_task_self (), &boot); - assert_perror (err); + assert_perror_backtrace (err); if (boot == MACH_PORT_NULL) error (2, 0, "auth server can only be run by init during boot"); err = startup_authinit (boot, ports_get_right (firstauth), -- cgit v1.2.3