|
From: <sv...@va...> - 2005-06-13 16:48:35
|
Author: sewardj
Date: 2005-06-13 17:48:32 +0100 (Mon, 13 Jun 2005)
New Revision: 3906
Log:
Emit XML preamble in a more parseable way.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_main.c 2005-06-13 16:44:33 UTC (rev 3905)
+++ trunk/coregrind/m_main.c 2005-06-13 16:48:32 UTC (rev 3906)
@@ -1905,7 +1905,6 @@
results of a run which encompasses multiple processes. */
=20
if (VG_(clo_xml)) {
- VG_(message)(Vg_UserMsg, "");
VG_(message)(Vg_UserMsg, "<?xml version=3D\"1.0\"?>");
VG_(message)(Vg_UserMsg, "");
VG_(message)(Vg_UserMsg, "<valgrindoutput>");
@@ -1914,10 +1913,14 @@
VG_(message)(Vg_UserMsg, "");
}
=20
- HChar* xpre =3D VG_(clo_xml) ? "<preamble>" : "";
- HChar* xpost =3D VG_(clo_xml) ? "</preamble>" : "";
+ HChar* xpre =3D VG_(clo_xml) ? " <line>" : "";
+ HChar* xpost =3D VG_(clo_xml) ? "</line>" : "";
=20
if (VG_(clo_verbosity > 0)) {
+
+ if (VG_(clo_xml))
+ VG_(message)(Vg_UserMsg, "<preamble>");
+
/* Tool details */
VG_(message)(Vg_UserMsg, "%s%s%s%s, %s.%s",
xpre,
@@ -1943,6 +1946,9 @@
VG_(message)(Vg_UserMsg,=20
"%sCopyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et =
al.%s",
xpre, xpost );
+
+ if (VG_(clo_xml))
+ VG_(message)(Vg_UserMsg, "</preamble>");
}
=20
if (VG_(clo_verbosity) > 0 && log_to !=3D VgLogTo_Fd) {
|