aboutsummaryrefslogtreecommitdiff
path: root/src/chattymalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chattymalloc.c')
-rw-r--r--src/chattymalloc.c3
1 files changed, 3 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
#include <unistd.h>
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);