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/dir-lookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs/dir-lookup.c') diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 8b43e27b..3c7198fb 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -100,7 +100,7 @@ diskfs_S_dir_lookup (struct protid *dircred, do { - assert (!lastcomp); + assert_backtrace (!lastcomp); /* Find the name of the next pathname component */ nextname = index (filename, '/'); @@ -377,7 +377,7 @@ diskfs_S_dir_lookup (struct protid *dircred, 0, np->dn_stat.st_size, 0, dircred, &amt); if (!err) - assert (amt == np->dn_stat.st_size); + assert_backtrace (amt == np->dn_stat.st_size); } if (err) goto out; -- cgit v1.2.3