diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-16 14:11:58 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-16 14:11:58 +0200 |
commit | 8856becf34868c2ebaefff9baa294c21462f281b (patch) | |
tree | 18759a42f8eb7ff4541d1ffa36bed425d7a647a3 /utils.c | |
parent | 2aea45f0c9ffc0dcc9857478f086142ccf7811f0 (diff) |
Convert most of main.c to use debugging
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ add_allocation(const char *allocfn, const char *callerfn, int line, void *ptr, s { struct allocation *a = malloc(sizeof(*a)); - debug(DBG_MALLOC, "%s:%i %s(%zu) = %p\n", + debug(DBG_MALLOC, "called from %s:%i - %s(%zu) = %p\n", callerfn, line, allocfn, size, ptr); a->allocfn = allocfn; @@ -99,7 +99,7 @@ __xfree(const char *fn, int line, void *ptr) free(ptr); malloc_count--; - debug(DBG_MALLOC, "%s:%i %p\n", fn, line, ptr); + debug(DBG_MALLOC, "called from %s:%i - %p\n", fn, line, ptr); list_for_each_entry_safe(a, tmp, &malloc_list, list) { if (a->ptr == ptr) { |