summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 22:13:05 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 22:13:05 +0200
commitbf3df84cdfbdb0da776d8fb2af9fa2cf53eec985 (patch)
treebaf2db20a38e8107d9048d27566d3c2e857bd179 /main.c
parent7866e76865a125c6b714e7c5833cd4e0aafe27e1 (diff)
Convert utils to use debugging
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index d7d31a5..5296171 100644
--- a/main.c
+++ b/main.c
@@ -409,7 +409,8 @@ main(int argc, char **argv)
xfree(cfg);
- debug_resource_usage();
+ if (debug_enabled(DBG_MALLOC))
+ debug_resource_usage();
fflush(stdout);
fflush(stderr);