* The following, indicating that the program has now started:
- <status>RUNNING</status>
+ <status> <what>RUNNING</what>
+ <when>human-readable-time-string</when>
+ </status>
* Zero or more of (either ERROR or ERRORCOUNTS).
* The following, indicating that the program has now finished, and
that the wrapup (leak checking) is happening.
- <status>FINISHED</status>
+ <status> <what>FINISHED</what>
+ <when>human-readable-time-string</when>
+ </status>
* SUPPCOUNTS, indicating how many times each suppression was used.
VGP_POPCC(VgpStartup);
if (VG_(clo_xml)) {
- VG_(message)(Vg_UserMsg, "<status>RUNNING</status>");
+ HChar buf[50];
+ VG_(ctime)(buf);
+ VG_(message)(Vg_UserMsg, "<status> <what>RUNNING</what> "
+ "<when>%s</when> </status>", buf);
VG_(message)(Vg_UserMsg, "");
}
VG_(message)(Vg_UserMsg, "");
if (VG_(clo_xml)) {
+ HChar buf[50];
if (VG_(needs).core_errors || VG_(needs).tool_errors) {
VG_(show_error_counts_as_XML)();
VG_(message)(Vg_UserMsg, "");
}
- VG_(message)(Vg_UserMsg, "<status>FINISHED</status>");
+ VG_(ctime)(buf);
+ VG_(message)(Vg_UserMsg, "<status> <what>FINISHED</what> "
+ "<when>%s</when> </status>", buf);
VG_(message)(Vg_UserMsg, "");
}