- wxLogTrace(TRACE_THREADS, _T("Thread %ld: %s => %s."),
- (long)GetId(), stateNames[m_state], stateNames[state]);
-#endif // __WXDEBUG__
+ wxLogTrace(TRACE_THREADS, _T("Thread %p: %s => %s."),
+ GetId(), stateNames[m_state], stateNames[state]);
+#endif // wxUSE_LOG_TRACE