Minor refinements/bug-fixes to XML printing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3837 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_errormgr.c b/coregrind/m_errormgr.c
index a2d0a7c..01d90b1 100644
--- a/coregrind/m_errormgr.c
+++ b/coregrind/m_errormgr.c
@@ -660,7 +660,10 @@
any_supp = True;
if (VG_(clo_xml)) {
VG_(message)(Vg_DebugMsg,
- " <pair><count>%d</count><name>%s</name></pair>",
+ " <pair>\n"
+ " <count>%d</count>\n"
+ " <name>%s</name>\n"
+ " </pair>",
su->count, su->sname);
} else {
VG_(message)(Vg_DebugMsg, "supp: %4d %s", su->count, su->sname);
@@ -668,7 +671,7 @@
}
if (VG_(clo_xml))
- VG_(message)(Vg_DebugMsg, "<suppcounts>");
+ VG_(message)(Vg_DebugMsg, "</suppcounts>");
return any_supp;
}
@@ -772,8 +775,8 @@
if (err->count <= 0)
continue;
VG_(message)(
- Vg_UserMsg, " <pair><count>%d</count>"
- "<unique>0x%llx</unique></pair>",
+ Vg_UserMsg, " <pair> <count>%d</count> "
+ "<unique>0x%llx</unique> </pair>",
err->count, Ptr_to_ULong(err)
);
}