client: Fix typo from previous commit

This commit is contained in:
Rom Walton 2013-02-11 16:38:30 -05:00 committed by Oliver Bock
parent af7948910e
commit 49e41f7123
1 changed files with 6 additions and 4 deletions

View File

@ -122,18 +122,20 @@ void show_message(PROJ_AM *p, char* msg, int priority, bool is_html, const char*
x = "---"; x = "---";
} }
printf("%s [%s] %s\n", time_string, x, message); printf("%s [%s] %s\n", time_string, x, message);
#if defined(_WIN32) || defined(ANDROID) #if defined(_WIN32) || defined(ANDROID)
char message[2048]; char evt_message[2048];
snprintf(message, "%s [%s] %s\n", time_string, x, message); snprintf(evt_message, sizeof(evt_message), "%s [%s] %s\n", time_string, x, message);
#ifdef _WIN32 // print message to the debugger view port #ifdef _WIN32 // print message to the debugger view port
::OutputDebugString(message); ::OutputDebugString(evt_message);
#endif #endif
#ifdef ANDROID // print message to Logcat #ifdef ANDROID // print message to Logcat
__android_log_print(ANDROID_LOG_DEBUG, "BOINC", message) __android_log_print(ANDROID_LOG_INFO, "BOINC", evt_message)
#endif #endif
#endif #endif
} }
#endif #endif