diff options
author | Jeremy Huddleston <jeremy@yuffie.local> | 2008-01-04 12:23:09 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@yuffie.local> | 2008-01-04 23:10:10 -0800 |
commit | aca75f389e2b08096c3cacec03b12a58075cf12c (patch) | |
tree | 1c8fab3e69e0a5d484d5b9cf577b5c590a7ec7e6 /hw/xquartz/darwin.h | |
parent | 57468a696e1259c1e1c185fc60230e1d195defb7 (diff) |
XQuartz: Flush the debug log for easier debugging
Also cleaned up formatting in xpr's eventHandler
(cherry picked from commit 16861d6d4239c7f3918332ef07752f1e211afb23)
Diffstat (limited to 'hw/xquartz/darwin.h')
-rw-r--r-- | hw/xquartz/darwin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/darwin.h b/hw/xquartz/darwin.h index 19254247a..c5e2ed80d 100644 --- a/hw/xquartz/darwin.h +++ b/hw/xquartz/darwin.h @@ -124,7 +124,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:%d: " msg, __FUNCTION__, __LINE__, ##args ) +#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); #else #define DEBUG_LOG(msg, args...) #endif |