]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Trace lines enabled by --trace-segment=yes now include the thread ID of the created...
authorBart Van Assche <bvanassche@acm.org>
Sun, 6 Apr 2008 13:07:45 +0000 (13:07 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 6 Apr 2008 13:07:45 +0000 (13:07 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7852

exp-drd/drd_segment.c

index 8965c987aca53137a0d33bdec189d628ac40bf51..8fe1707644a10c959f02dd7bab94669d80672f97 100644 (file)
@@ -83,11 +83,11 @@ void sg_init(Segment* const sg,
   {
     char msg[256];
     VG_(snprintf)(msg, sizeof(msg),
-                  "New segment for thread %d/%d for vc ",
-                  creator != VG_INVALID_THREADID
-                  ? DrdThreadIdToVgThreadId(creator)
+                  "New segment for thread %d/%d with vc ",
+                  created != VG_INVALID_THREADID
+                  ? DrdThreadIdToVgThreadId(created)
                   : DRD_INVALID_THREADID,
-                  creator);
+                  created);
     vc_snprint(msg + VG_(strlen)(msg), sizeof(msg) - VG_(strlen)(msg),
                &sg->vc);
     VG_(message)(Vg_UserMsg, "%s", msg);