Kouhei Sutou 2019-01-23 16:33:27 +0900 (Wed, 23 Jan 2019) Revision: c7e8344c42308e68e7071f5a29e9a261faccc2a5 https://github.com/groonga/groonga/commit/c7e8344c42308e68e7071f5a29e9a261faccc2a5 Message: Use GetCurrentThreadId Modified files: lib/logger.c Modified: lib/logger.c (+1 -1) =================================================================== --- lib/logger.c 2019-01-23 11:05:38 +0900 (623b10fef) +++ lib/logger.c 2019-01-23 16:33:27 +0900 (5800af280) @@ -551,7 +551,7 @@ grn_logger_putv(grn_ctx *ctx, "%s%08x", prefix, (uint32_t)pthread_self()); #elif defined(WIN32) /* HAVE_PTHREAD_H */ grn_snprintf(lbuf_current, lbuf_rest_size, lbuf_rest_size, - "%s%p", prefix, GetCurrentThread()); + "%s%ld", prefix, GetCurrentThreadId()); #endif /* HAVE_PTHREAD_H */ lbuf_size = strlen(lbuf_current); lbuf_current += lbuf_size; -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190123/7914d41c/attachment.html>