diff options
author | Justus Winter <justus@gnupg.org> | 2017-06-19 21:20:57 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-05 18:42:22 +0200 |
commit | 835b293d35a209d38047126443d41fa7090daa4c (patch) | |
tree | 5bf956895e6030f91cd618fb191b2151f6d25423 /libdiskfs/protid-make.c | |
parent | dc0b5a43224999223a246870912b0f292b1980e9 (diff) | |
download | hurd-835b293d35a209d38047126443d41fa7090daa4c.tar.gz hurd-835b293d35a209d38047126443d41fa7090daa4c.tar.bz2 hurd-835b293d35a209d38047126443d41fa7090daa4c.zip |
Use our own variant of 'assert' and 'assert_perror'.
Our variants print stack traces on failures. This will make locating
errors much easier.
Diffstat (limited to 'libdiskfs/protid-make.c')
-rw-r--r-- | libdiskfs/protid-make.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/protid-make.c b/libdiskfs/protid-make.c index 0b092994..f8b5dcbd 100644 --- a/libdiskfs/protid-make.c +++ b/libdiskfs/protid-make.c @@ -17,7 +17,7 @@ #include "priv.h" #include <string.h> -#include <assert.h> +#include <assert-backtrace.h> /* Build and return in CRED a protid which has no user identification, for peropen PO. On success, consume a reference to PO. */ @@ -48,11 +48,11 @@ diskfs_finish_protid (struct protid *cred, struct iouser *user) err = iohelp_create_simple_iouser (&cred->user, 0, 0); else err = iohelp_dup_iouser (&cred->user, user); - assert_perror (err); + assert_perror_backtrace (err); err = mach_port_move_member (mach_task_self (), cred->pi.port_right, diskfs_port_bucket->portset); - assert_perror (err); + assert_perror_backtrace (err); } /* Create and return a protid for an existing peropen PO in CRED for |