History

minor tweak to logging thread shutdown

Ge Wang committed 5 years ago

Commit d793de51 parent 81dbbf41 file · +4 −4Browse files

Showing the changes to src/core/util_thread.cpp (1 of 1 file). Show all

Unified · Split

src/core/util_thread.cpp+4−4
@@ -81,11 +81,11 @@ XThread::~XThread( ) · 80 unmodified lines
8181 // TODO: find an alternative for Android?
8282 #if defined(__PLATFORM_MACOSX__) || ( defined(__PLATFORM_LINUX__) && !defined(__ANDROID__) ) || defined(__WINDOWS_PTHREAD__)
8383 // log
84− EM_log( CK_LOG_FINEST, "cancelling XThread: %d on thread: %d", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
84+ EM_log( CK_LOG_FINER, "cancelling XThread: %u on thread: %u", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
8585 pthread_cancel(thread);
8686 pthread_join(thread, NULL);
8787 // log
88− EM_log( CK_LOG_FINEST, "joined with XThread: %d on thread: %d", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
88+ EM_log( CK_LOG_FINER, "joined with XThread: %u on thread: %u", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
8989 #elif defined(__PLATFORM_WIN32__)
9090 TerminateThread((HANDLE)thread, 0);
9191 #endif
@@ -295,11 +295,11 @@ void XWriteThread::shutdown() · 203 unmodified lines
295295 SmartPushLog logPush;
296296
297297 // log
298− EM_log( CK_LOG_FINEST, "waiting on write thread: %d", (t_CKUINT)m_thread.getThread() );
298+ EM_log( CK_LOG_FINER, "waiting on write thread: %u", (t_CKUINT)m_thread.getThread() );
299299 // wait on the thread
300300 m_thread.wait( -1, false );
301301 // log
302− EM_log( CK_LOG_FINEST, "done waiting for thread: %d", (t_CKUINT)m_thread.getThread() );
302+ EM_log( CK_LOG_FINER, "done waiting for thread: %u", (t_CKUINT)m_thread.getThread() );
303303 }
304304
305305

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t