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. --- trans/magic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'trans/magic.c') diff --git a/trans/magic.c b/trans/magic.c index a033db9a..e38efcae 100644 --- a/trans/magic.c +++ b/trans/magic.c @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include "fsys_S.h" @@ -167,7 +167,7 @@ magic_getroot (struct trivfs_control *cntl, *node_type = MACH_MSG_TYPE_COPY_SEND; err = mach_port_deallocate (mach_task_self (), dotdot); - assert_perror (err); + assert_perror_backtrace (err); return 0; } @@ -313,10 +313,10 @@ trivfs_S_dir_lookup (struct trivfs_protid *cred, } err = mach_port_mod_refs (mach_task_self (), dotdot, MACH_PORT_RIGHT_SEND, +1); - assert_perror (err); + assert_perror_backtrace (err); err = mach_port_mod_refs (mach_task_self (), cred->realnode, MACH_PORT_RIGHT_SEND, +1); - assert_perror (err); + assert_perror_backtrace (err); *retry_type = FS_RETRY_NORMAL; *retry_name = '\0'; -- cgit v1.2.3