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. --- ext2fs/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext2fs/xattr.c') diff --git a/ext2fs/xattr.c b/ext2fs/xattr.c index 45969195..bfc34028 100644 --- a/ext2fs/xattr.c +++ b/ext2fs/xattr.c @@ -445,7 +445,7 @@ ext2_free_xattr_block (struct node *np) goto cleanup; } - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); block = disk_cache_block_ref (blkno); header = EXT2_XATTR_HEADER (block); @@ -697,7 +697,7 @@ ext2_set_xattr (struct node *np, const char *name, const char *value, /* Allocate and initialize new block */ block_t goal; - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); goal = sblock->s_first_data_block + np->dn->info.i_block_group * EXT2_BLOCKS_PER_GROUP (sblock); -- cgit v1.2.3