From: Julian Seward Date: Tue, 24 May 2005 14:21:45 +0000 (+0000) Subject: XML output futzing-around-with. X-Git-Tag: svn/VALGRIND_3_0_0~524 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01017a2f82156edcfd2bdad91c3cff6d84f8c966;p=thirdparty%2Fvalgrind.git XML output futzing-around-with. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3794 --- diff --git a/README_XML_OUTPUT.txt b/README_XML_OUTPUT.txt index b6865c96eb..44714741c5 100644 --- a/README_XML_OUTPUT.txt +++ b/README_XML_OUTPUT.txt @@ -328,7 +328,7 @@ Suppressions not mentioned were used zero times. zero or more of - INT TEXT + INT TEXT The is as specified in the suppression name fields in .supp diff --git a/coregrind/m_errormgr.c b/coregrind/m_errormgr.c index 260e4f5851..cb6d7313c1 100644 --- a/coregrind/m_errormgr.c +++ b/coregrind/m_errormgr.c @@ -648,6 +648,9 @@ static Bool show_used_suppressions ( void ) Supp *su; Bool any_supp; + if (VG_(clo_xml)) + VG_(message)(Vg_DebugMsg, ""); + any_supp = False; for (su = suppressions; su != NULL; su = su->next) { if (su->count <= 0) @@ -655,13 +658,16 @@ static Bool show_used_suppressions ( void ) any_supp = True; if (VG_(clo_xml)) { VG_(message)(Vg_DebugMsg, - "%d%s", + " %d%s", su->count, su->sname); } else { VG_(message)(Vg_DebugMsg, "supp: %4d %s", su->count, su->sname); } } + if (VG_(clo_xml)) + VG_(message)(Vg_DebugMsg, ""); + return any_supp; } @@ -764,9 +770,9 @@ void VG_(show_error_counts_as_XML) ( void ) if (err->count <= 0) continue; VG_(message)( - Vg_UserMsg, " 0x%llx" - "%d", - Ptr_to_ULong(err), err->count + Vg_UserMsg, " %d" + "0x%llx", + err->count, Ptr_to_ULong(err) ); } VG_(message)(Vg_UserMsg, ""); diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 5910e36fce..f577b3ee5f 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -2025,6 +2025,7 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname ) VG_(message)(Vg_UserMsg, ""); VG_(message)(Vg_UserMsg, "%d", VG_(getpid)()); VG_(message)(Vg_UserMsg, "%d", VG_(getppid)()); + VG_(message)(Vg_UserMsg, "%s", toolname); VG_(message)(Vg_UserMsg, ""); VG_(message)(Vg_UserMsg, ""); for (i = 0; i < VG_(client_argc); i++)