Print all XML output with a consistent nesting style, so as to make it
easier to compare it to the output of other XML generating tools.
Regtest expected-output changes to follow.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4356 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_errormgr.c b/coregrind/m_errormgr.c
index c8b3669..1e31ef2 100644
--- a/coregrind/m_errormgr.c
+++ b/coregrind/m_errormgr.c
@@ -684,8 +684,10 @@
any_supp = True;
if (VG_(clo_xml)) {
VG_(message)(Vg_DebugMsg,
- " <pair> <count>%d</count> "
- "<name>%t</name> </pair>",
+ " <pair>\n"
+ " <count>%d</count>\n"
+ " <name>%t</name>\n"
+ " </pair>",
su->count, su->sname);
} else {
VG_(message)(Vg_DebugMsg, "supp: %4d %s", su->count, su->sname);
@@ -798,8 +800,10 @@
if (err->count <= 0)
continue;
VG_(message)(
- Vg_UserMsg, " <pair> <count>%d</count> "
- "<unique>0x%llx</unique> </pair>",
+ Vg_UserMsg, " <pair>\n"
+ " <count>%d</count>\n"
+ " <unique>0x%llx</unique>\n"
+ " </pair>",
err->count, err->unique
);
}