From 5b55c39625d70830b1e37b69366c07a687d0e148 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 15 Sep 2005 12:24:59 +0000 Subject: [PATCH] Use e_util_pthread_id() to identify threads. 2005-09-15 Tor Lillqvist * camel-debug.c: Use e_util_pthread_id() to identify threads. --- camel/ChangeLog | 2 ++ camel/camel-debug.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index cd0cbe7..f2297c5 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -5,6 +5,8 @@ comparing should be just ASCII anyway, so spell it out that we really do care only for the ASCII bytes. + * camel-debug.c: Use e_util_pthread_id() to identify threads. + 2005-09-12 Parthasarathi Susarla ** See bug #314574 diff --git a/camel/camel-debug.c b/camel/camel-debug.c index a507069..1ac589c 100644 --- a/camel/camel-debug.c +++ b/camel/camel-debug.c @@ -25,6 +25,7 @@ #include +#include "libedataserver/e-util.h" #include "camel-debug.h" int camel_verbose_debug; @@ -133,7 +134,7 @@ camel_debug_start(const char *mode) { if (camel_debug(mode)) { pthread_mutex_lock(&debug_lock); - printf("Thread %lx >\n", pthread_self()); + printf("Thread %" G_GINT64_MODIFIER "x >\n", e_util_pthread_id(pthread_self())); return TRUE; } @@ -149,7 +150,7 @@ camel_debug_start(const char *mode) void camel_debug_end(void) { - printf("< %lx >\n", pthread_self()); + printf("< %" G_GINT64_MODIFIER "x >\n", e_util_pthread_id(pthread_self())); pthread_mutex_unlock(&debug_lock); } -- 2.7.4