summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 14:11:58 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 14:11:58 +0200
commit8856becf34868c2ebaefff9baa294c21462f281b (patch)
tree18759a42f8eb7ff4541d1ffa36bed425d7a647a3 /utils.c
parent2aea45f0c9ffc0dcc9857478f086142ccf7811f0 (diff)
Convert most of main.c to use debugging
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 20c4802..5830dfc 100644
--- a/utils.c
+++ b/utils.c
@@ -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) {