From 0978c0cbbcdca5394b2a0aeeab0771939021fd15 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 8 Jan 2020 17:58:44 +0100 Subject: add tid to chattymalloc log --- src/chattymalloc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/chattymalloc.c') diff --git a/src/chattymalloc.c b/src/chattymalloc.c index 8614a27..36b50c9 100644 --- a/src/chattymalloc.c +++ b/src/chattymalloc.c @@ -7,6 +7,7 @@ #include #include #include +#include #include static char tmpbuff[4096]; @@ -40,6 +41,8 @@ write_output(const char* fmt, ...) /* lockf(out, F_LOCK, 0); */ + dprintf(out, "%d: ", gettid()); + va_list args; va_start(args, fmt); vdprintf(out, fmt, args); -- cgit v1.2.3