add logging of current thread ID to DEBUG_LOG macro
This commit is contained in:
parent
3f4447b95f
commit
5848510cc5
|
@ -125,7 +125,7 @@ enum {
|
||||||
#ifdef ENABLE_DEBUG_LOG
|
#ifdef ENABLE_DEBUG_LOG
|
||||||
extern FILE *debug_log_fp;
|
extern FILE *debug_log_fp;
|
||||||
#define DEBUG_LOG_NAME "x11-debug.txt"
|
#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
|
#else
|
||||||
#define DEBUG_LOG(msg, args...)
|
#define DEBUG_LOG(msg, args...)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user