null+****@clear*****
null+****@clear*****
2011年 6月 9日 (木) 10:36:31 JST
Kouhei Sutou 2011-06-09 01:36:31 +0000 (Thu, 09 Jun 2011)
New Revision: e0ca4294df391dbe9c9bbdce87a38b88cc0ecfe0
Log:
suppress a warning about context ID.
Based on patch by @issm. Thanks!!!
Modified files:
ha_mroonga.cc
Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc 2011-06-08 18:21:43 +0000 (cb22fd5)
+++ ha_mroonga.cc 2011-06-09 01:36:31 +0000 (6c7edda)
@@ -116,7 +116,7 @@ void mrn_logger_func(int level, const char *time, const char *title,
if (mrn_logfile_opened) {
pthread_mutex_lock(&mrn_log_mutex);
fprintf(mrn_logfile, "%s|%c|%08x|%s\n", time,
- *(slev + level), pthread_self(), msg);
+ *(slev + level), (uint)(ulong)pthread_self(), msg);
fflush(mrn_logfile);
pthread_mutex_unlock(&mrn_log_mutex);
}