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. --- libfshelp/start-translator-long.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libfshelp/start-translator-long.c') diff --git a/libfshelp/start-translator-long.c b/libfshelp/start-translator-long.c index da6f52e3..e1aea3c4 100644 --- a/libfshelp/start-translator-long.c +++ b/libfshelp/start-translator-long.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include "fshelp.h" @@ -247,7 +247,7 @@ fshelp_start_translator_long (fshelp_open_fn_t underlying_open_fn, if (err) goto lose_task; - assert (ports_len > INIT_PORT_BOOTSTRAP); + assert_backtrace (ports_len > INIT_PORT_BOOTSTRAP); switch (ports_type) { case MACH_MSG_TYPE_MAKE_SEND: -- cgit v1.2.3