From: Bart Van Assche Date: Sun, 3 Jul 2011 11:43:45 +0000 (+0000) Subject: drd: Source code cleanup - merge two blocks of tracing code X-Git-Tag: svn/VALGRIND_3_7_0~386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e2b90f545469e2e35ffb5ebd2e9fe1c84aee31;p=thirdparty%2Fvalgrind.git drd: Source code cleanup - merge two blocks of tracing code git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11851 --- diff --git a/drd/drd_thread.c b/drd/drd_thread.c index 7b833ef892..a681ba0bfd 100644 --- a/drd/drd_thread.c +++ b/drd/drd_thread.c @@ -1515,31 +1515,19 @@ void DRD_(thread_update_conflict_set)(const DrdThreadId tid, const Bool included_in_new_conflict_set = ! DRD_(vc_lte)(&q->vc, new_vc) && ! DRD_(vc_lte)(new_vc, &q->vc); + if (s_trace_conflict_set) { + char* str; + + str = DRD_(vc_aprint)(&q->vc); + VG_(message)(Vg_DebugMsg, + "conflict set: [%d] %s segment %s\n", j, + included_in_old_conflict_set + != included_in_new_conflict_set + ? "merging" : "ignoring", str); + VG_(free)(str); + } if (included_in_old_conflict_set != included_in_new_conflict_set) - { - if (s_trace_conflict_set) - { - char* str; - - str = DRD_(vc_aprint)(&q->vc); - VG_(message)(Vg_DebugMsg, - "conflict set: [%d] merging segment %s\n", j, str); - VG_(free)(str); - } DRD_(bm_mark)(DRD_(g_conflict_set), DRD_(sg_bm)(q)); - } - else - { - if (s_trace_conflict_set) - { - char* str; - - str = DRD_(vc_aprint)(&q->vc); - VG_(message)(Vg_DebugMsg, - "conflict set: [%d] ignoring segment %s\n", j, str); - VG_(free)(str); - } - } } }