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 /ext2fs/pokel.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 'ext2fs/pokel.c')
-rw-r--r-- | ext2fs/pokel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext2fs/pokel.c b/ext2fs/pokel.c index 53dc513a..38209428 100644 --- a/ext2fs/pokel.c +++ b/ext2fs/pokel.c @@ -102,7 +102,7 @@ pokel_add (struct pokel *pokel, void *loc, vm_size_t length) if (pl == NULL) { pl = malloc (sizeof (struct poke)); - assert (pl); + assert_backtrace (pl); } else pokel->free_pokes = pl->next; @@ -173,8 +173,8 @@ pokel_inherit (struct pokel *pokel, struct pokel *from) { struct poke *pokes, *last; - assert (pokel->pager == from->pager); - assert (pokel->image == from->image); + assert_backtrace (pokel->pager == from->pager); + assert_backtrace (pokel->image == from->image); /* Take all pokes from FROM... */ pthread_spin_lock (&from->lock); |