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. --- libdiskfs/rdwr-internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/rdwr-internal.c') diff --git a/libdiskfs/rdwr-internal.c b/libdiskfs/rdwr-internal.c index 0d405517..eec0d6a0 100644 --- a/libdiskfs/rdwr-internal.c +++ b/libdiskfs/rdwr-internal.c @@ -39,7 +39,7 @@ _diskfs_rdwr_internal (struct node *np, error_t err = 0; if (dir) - assert (!diskfs_readonly); + assert_backtrace (!diskfs_readonly); if (*amt == 0) /* Zero-length writes do not update mtime or anything else, by POSIX. */ -- cgit v1.2.3