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/io-map-cntl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/io-map-cntl.c') diff --git a/libdiskfs/io-map-cntl.c b/libdiskfs/io-map-cntl.c index 2e9b9e98..4a9b1f61 100644 --- a/libdiskfs/io-map-cntl.c +++ b/libdiskfs/io-map-cntl.c @@ -28,7 +28,7 @@ diskfs_S_io_map_cntl (struct protid *cred, if (!cred) return EOPNOTSUPP; - assert (__vm_page_size >= sizeof (struct shared_io)); + assert_backtrace (__vm_page_size >= sizeof (struct shared_io)); pthread_mutex_lock (&cred->po->np->lock); if (!cred->mapped) { -- cgit v1.2.3