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. --- utils/vmallocate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/vmallocate.c') diff --git a/utils/vmallocate.c b/utils/vmallocate.c index 628cfd12..039b3097 100644 --- a/utils/vmallocate.c +++ b/utils/vmallocate.c @@ -18,7 +18,7 @@ along with the GNU Hurd. If not, see . */ #include -#include +#include #include #include #include @@ -161,7 +161,7 @@ main (int argc, char **argv) process_t proc = getproc (); /* We must make sure that chunk_size fits into vm_size_t. */ - assert (chunk_size <= 1U << (sizeof (vm_size_t) * 8 - 1)); + assert_backtrace (chunk_size <= 1U << (sizeof (vm_size_t) * 8 - 1)); /* Parse our arguments. */ argp_parse (&argp, argc, argv, 0, 0, 0); -- cgit v1.2.3