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/new-fifo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'trans/new-fifo.c') diff --git a/trans/new-fifo.c b/trans/new-fifo.c index c293b764..efa36c24 100644 --- a/trans/new-fifo.c +++ b/trans/new-fifo.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -536,7 +536,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, else { struct pipe *pipe = cred->po->hook; - assert (pipe); + assert_backtrace (pipe); pthread_mutex_lock (&pipe->lock); err = pipe_read (pipe, cred->po->openmodes & O_NONBLOCK, NULL, data, data_len, amount); @@ -565,7 +565,7 @@ trivfs_S_io_readable (struct trivfs_protid *cred, else { struct pipe *pipe = cred->po->hook; - assert (pipe); + assert_backtrace (pipe); pthread_mutex_lock (&pipe->lock); *amount = pipe_readable (pipe, 1); pthread_mutex_unlock (&pipe->lock); @@ -835,7 +835,7 @@ trivfs_S_fsys_forward (mach_port_t server, return EOPNOTSUPP; server_trans = cred->po->cntl->hook; - assert (server_trans->server); + assert_backtrace (server_trans->server); argz_extract (argz, argz_len, argv); -- cgit v1.2.3