summaryrefslogtreecommitdiff
path: root/pthread_start.c
diff options
context:
space:
mode:
authorPetter Urkedal <paurkedal@gmail.com>2011-09-19 14:37:47 +0800
committerIvan Maidanski <ivmai@mail.ru>2011-12-28 00:27:08 +0800
commita78f6ab4ab1e83a9865ec76d7c72a260fb419432 (patch)
treed802c1d4c745479ec8750b470b4f595b77e296cf /pthread_start.c
parentebb3d6cd4d1751deff2d5d48e39939f9748a390f (diff)
downloadbdwgc-a78f6ab4ab1e83a9865ec76d7c72a260fb419432.tar.gz
Extend thread-related debug messages.
Diffstat (limited to 'pthread_start.c')
-rw-r--r--pthread_start.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pthread_start.c b/pthread_start.c
index bb79f5fb..01bb9674 100644
--- a/pthread_start.c
+++ b/pthread_start.c
@@ -38,6 +38,7 @@
#if defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS)
+#include <inttypes.h>
#include <pthread.h>
#include <sched.h>
@@ -55,7 +56,7 @@ void * GC_CALLBACK GC_inner_start_routine(struct GC_stack_base *sb, void *arg)
# endif
result = (*start)(start_arg);
# ifdef DEBUG_THREADS
- GC_log_printf("Finishing thread 0x%x\n", (unsigned)pthread_self());
+ GC_log_printf("Finishing thread 0x%"PRIxMAX"\n", (uintmax_t)pthread_self());
# endif
me -> status = result;
# ifndef NACL