From f169def36f5dcba69b7ce7e382ea1230d03f5433 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sun, 5 Dec 2010 15:59:11 +0000 Subject: First pass at dealing with different size_t/off_t sizes in C90 environments. Most of the code dealing with the LogTypes namespace was C which lead to a lot of nonsensical casting, so I have dumbed LOG_TYPE and LOG_LEVEL down to plain C even though the move of wiiuse into Source means we don't currently call GenericLog from C. Set logging threshold to MAX_LOGLEVEL at startup so debug builds will also p rint debugging messages before the GUI is running. For some reason the way we use SetDefaultStyle doesn't play nice with wx 2.9 so we just get the default black text on a black background. Using a gray background works around that problem, but I found it to also be much easier on the eyes so I have switched the background color on all versions. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6528 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/Src/Thread.cpp') diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp index 76de6cfbd3..16624b6388 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -356,7 +356,8 @@ namespace Common if (ret) ERROR_LOG(COMMON, "%s: pthread_create(%p, %p, %p, %p) failed: %s\n", __FUNCTION__, &thread_id, &attr, function, arg, strerror(ret)); - INFO_LOG(COMMON, "created new thread %lu (func=%p, arg=%p)\n", thread_id, function, arg); + INFO_LOG(COMMON, "created new thread %lu (func=%p, arg=%p)\n", + (unsigned long)thread_id, function, arg); } @@ -372,9 +373,13 @@ namespace Common { void* exit_status; int ret = pthread_join(thread_id, &exit_status); - if (ret) ERROR_LOG(COMMON, "error joining thread %lu: %s\n", thread_id, strerror(ret)); + if (ret) ERROR_LOG(COMMON, + "error joining thread %lu: %s\n", + (unsigned long)thread_id, strerror(ret)); if (exit_status) - ERROR_LOG(COMMON, "thread %lu exited with status %d\n", thread_id, *(int *)exit_status); + ERROR_LOG(COMMON, + "thread %lu exited with status %d\n", + (unsigned long)thread_id, *(int *)exit_status); thread_id = 0; } } -- cgit v1.2.3