[114095] trunk/base/src/darwintracelib1.0/darwintrace.h

cal at macports.org cal at macports.org
Thu Nov 28 18:06:55 PST 2013


Revision: 114095
          https://trac.macports.org/changeset/114095
Author:   cal at macports.org
Date:     2013-11-28 18:06:55 -0800 (Thu, 28 Nov 2013)
Log Message:
-----------
darwintrace: print thread ID when debugging

Modified Paths:
--------------
    trunk/base/src/darwintracelib1.0/darwintrace.h

Modified: trunk/base/src/darwintracelib1.0/darwintrace.h
===================================================================
--- trunk/base/src/darwintracelib1.0/darwintrace.h	2013-11-29 00:06:46 UTC (rev 114094)
+++ trunk/base/src/darwintracelib1.0/darwintrace.h	2013-11-29 02:06:55 UTC (rev 114095)
@@ -58,7 +58,7 @@
 #if DARWINTRACE_DEBUG
 #	define debug_printf(format, ...) \
 		if (__darwintrace_stderr != NULL) { \
-			fprintf(__darwintrace_stderr, "darwintrace[%d]: " format, getpid(), __VA_ARGS__); \
+			fprintf(__darwintrace_stderr, "darwintrace[%d:%p]: " format, getpid(), (void *) pthread_self(), __VA_ARGS__); \
 			fflush(__darwintrace_stderr); \
 		}
 #else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131128/4c3087bf/attachment.html>


More information about the macports-changes mailing list