ruby-changes:34323
From: nobu <ko1@a...>
Date: Wed, 11 Jun 2014 17:37:44 +0900 (JST)
Subject: [ruby-changes:34323] nobu:r46404 (trunk): thread.c: fix thread ID format
nobu 2014-06-11 17:37:29 +0900 (Wed, 11 Jun 2014) New Revision: 46404 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46404 Log: thread.c: fix thread ID format * thread.c (DEBUG_OUT): fix format specifier for a thread ID, which is DWORD not pointer. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 46403) +++ thread.c (revision 46404) @@ -223,7 +223,7 @@ static void timer_thread_function(void * https://github.com/ruby/ruby/blob/trunk/thread.c#L223 #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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/