From a678de48c5d22bcceda459401bf74a9c7578ab7a Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Jun 2014 08:37:29 +0000 Subject: [PATCH] thread.c: fix thread ID format * thread.c (DEBUG_OUT): fix format specifier for a thread ID, which is DWORD not pointer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread.c b/thread.c index 07d65aaf7f..2d64e5384c 100644 --- a/thread.c +++ b/thread.c @@ -223,7 +223,7 @@ static void timer_thread_function(void *); #define DEBUG_OUT() \ WaitForSingleObject(&debug_mutex, INFINITE); \ - printf(POSITION_FORMAT"%p - %s" POSITION_ARGS, GetCurrentThreadId(), buf); \ + printf(POSITION_FORMAT"%#lx - %s" POSITION_ARGS, GetCurrentThreadId(), buf); \ fflush(stdout); \ ReleaseMutex(&debug_mutex);