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/truncate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs/truncate.c') diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 6941f6b7..265f7f2c 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -286,7 +286,7 @@ diskfs_truncate (struct node *node, off_t length) off_t offset; diskfs_check_readonly (); - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); if (length >= node->dn_stat.st_size) return 0; -- cgit v1.2.3