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/file-getfh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/file-getfh.c') diff --git a/libdiskfs/file-getfh.c b/libdiskfs/file-getfh.c index e4bc8921..ce5c1998 100644 --- a/libdiskfs/file-getfh.c +++ b/libdiskfs/file-getfh.c @@ -37,7 +37,7 @@ diskfs_S_file_getfh (struct protid *cred, char **fh, size_t *fh_len) if (! idvec_contains (cred->user->uids, 0)) return EPERM; - assert (sizeof *f == sizeof f->bytes); + assert_backtrace (sizeof *f == sizeof f->bytes); node = cred->po->np; -- cgit v1.2.3