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/ialloc.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/ialloc.c')
-rw-r--r-- | ext2fs/ialloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 71bfb8cb..b14ddeec 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -58,7 +58,7 @@ diskfs_free_node (struct node *np, mode_t old_mode) struct ext2_group_desc *gdp; ino_t inum = np->cache_id; - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); ext2_debug ("freeing inode %u", inum); @@ -125,7 +125,7 @@ ext2_alloc_inode (ino_t dir_inum, mode_t mode) pthread_spin_lock (&global_lock); repeat: - assert (bh == NULL); + assert_backtrace (bh == NULL); gdp = NULL; i = 0; @@ -267,7 +267,7 @@ repeat: sblock_dirty = 1; sync_out: - assert (bh == NULL); + assert_backtrace (bh == NULL); pthread_spin_unlock (&global_lock); alloc_sync (0); @@ -298,7 +298,7 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node) struct stat *st; ino_t inum; - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); inum = ext2_alloc_inode (dir->cache_id, mode); |