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/node-drop.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/node-drop.c')
-rw-r--r-- | libdiskfs/node-drop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/node-drop.c b/libdiskfs/node-drop.c index 455031bc..aa00cf05 100644 --- a/libdiskfs/node-drop.c +++ b/libdiskfs/node-drop.c @@ -41,7 +41,7 @@ diskfs_drop_node (struct node *np) if (np->dn_stat.st_nlink == 0) { diskfs_check_readonly (); - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); if (np->dn_stat.st_mode & S_IPTRANS) diskfs_set_translator (np, 0, 0, 0); @@ -70,7 +70,7 @@ diskfs_drop_node (struct node *np) return; } - assert (np->dn_stat.st_size == 0); + assert_backtrace (np->dn_stat.st_size == 0); savemode = np->dn_stat.st_mode; np->dn_stat.st_mode = 0; @@ -89,7 +89,7 @@ diskfs_drop_node (struct node *np) if (np->filemod_reqs) free_modreqs (np->filemod_reqs); - assert (!np->sockaddr); + assert_backtrace (!np->sockaddr); pthread_mutex_unlock(&np->lock); pthread_mutex_destroy(&np->lock); |