[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] changed log format of pthread id. now print as hex.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:20:41 JST 2012


Tetsuro IKEDA	2010-04-09 17:09:22 +0900 (Fri, 09 Apr 2010)

  New Revision: e491a9cb731b204ada164bc9a532d15bf28e6d20
  https://github.com/mroonga/mroonga/commit/e491a9cb731b204ada164bc9a532d15bf28e6d20

  Log:
    changed log format of pthread id. now print as hex.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2010-04-09 17:00:07 +0900 (1999d3b)
+++ ha_mroonga.cc    2010-04-09 17:09:22 +0900 (c0f91de)
@@ -31,7 +31,7 @@ void mrn_logger_func(int level, const char *time, const char *title,
 {
   const char slev[] = " EACewnid-";
   if (mrn_logfile_opened) {
-    fprintf(mrn_logfile, "%s|%c|%u|%s\n", time,
+    fprintf(mrn_logfile, "%s|%c|%08x|%s\n", time,
             *(slev + level), (uint)pthread_self(), msg);
     fflush(mrn_logfile);
   }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index