summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Byer <bbyer@apple.com>2008-03-31 16:30:16 -0700
committerBen Byer <bbyer@apple.com>2008-03-31 21:33:11 -0700
commit5848510cc5a8091b30230ab920d904ca6b159480 (patch)
tree6dbbc81c3ce65ef040872b031e96f51f8605e75e
parent3f4447b95f73a82b3aa0f7b0d1640aba5fb0d1bc (diff)
add logging of current thread ID to DEBUG_LOG macro
-rw-r--r--hw/xquartz/darwin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/darwin.h b/hw/xquartz/darwin.h
index ce104cfc7..5b3bc75ec 100644
--- a/hw/xquartz/darwin.h
+++ b/hw/xquartz/darwin.h
@@ -125,7 +125,7 @@ enum {
#ifdef ENABLE_DEBUG_LOG
extern FILE *debug_log_fp;
#define DEBUG_LOG_NAME "x11-debug.txt"
-#define DEBUG_LOG(msg, args...) if (debug_log_fp) fprintf(debug_log_fp, "%s:%s:%d " msg, __FILE__, __FUNCTION__, __LINE__, ##args ); fflush(debug_log_fp);
+#define DEBUG_LOG(msg, args...) if (debug_log_fp) fprintf(debug_log_fp, "%x:%s:%s:%d " msg, pthread_self(), __FILE__, __FUNCTION__, __LINE__, ##args ); fflush(debug_log_fp);
#else
#define DEBUG_LOG(msg, args...)
#endif