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/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/lookup.c') diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c index 486fedce..b6193657 100644 --- a/libdiskfs/lookup.c +++ b/libdiskfs/lookup.c @@ -78,7 +78,7 @@ diskfs_lookup (struct node *dp, const char *name, enum lookup_type type, struct node *cached; if (type == REMOVE || type == RENAME) - assert (np); + assert_backtrace (np); if (!S_ISDIR (dp->dn_stat.st_mode)) { -- cgit v1.2.3