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. --- procfs/procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'procfs/procfs.c') diff --git a/procfs/procfs.c b/procfs/procfs.c index cae4a519..6d6d9649 100644 --- a/procfs/procfs.c +++ b/procfs/procfs.c @@ -120,7 +120,7 @@ procfs_make_ino (struct node *np, const char *filename) if (! strcmp (filename, "..")) return np->nn->parent ? np->nn->parent->nn_stat.st_ino : /* FIXME: */ 2; - assert (sizeof np->nn_stat.st_ino > sizeof x); + assert_backtrace (sizeof np->nn_stat.st_ino > sizeof x); memcpy (x, &np->nn_stat.st_ino, sizeof x); while (*filename) -- cgit v1.2.3