From: Julian Seward Date: Tue, 19 Jul 2005 15:00:25 +0000 (+0000) Subject: Use %t rather than %s in some places for constructing XML output. X-Git-Tag: svn/VALGRIND_3_0_0~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8310aa86ef83e29cb1acf9b0b3e3c3e460079e;p=thirdparty%2Fvalgrind.git Use %t rather than %s in some places for constructing XML output. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4188 --- diff --git a/coregrind/m_errormgr.c b/coregrind/m_errormgr.c index 7a6f7f88ea..11e7acbd8e 100644 --- a/coregrind/m_errormgr.c +++ b/coregrind/m_errormgr.c @@ -685,7 +685,7 @@ static Bool show_used_suppressions ( void ) if (VG_(clo_xml)) { VG_(message)(Vg_DebugMsg, " %d " - "%s ", + "%t ", su->count, su->sname); } else { VG_(message)(Vg_DebugMsg, "supp: %4d %s", su->count, su->sname); diff --git a/coregrind/m_main.c b/coregrind/m_main.c index f9162d9af3..bd2dd2a8a5 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1902,11 +1902,11 @@ 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, "%t", toolname); if (VG_(clo_log_file_qualifier)) { HChar* val = VG_(getenv)(VG_(clo_log_file_qualifier)); - VG_(message)(Vg_UserMsg, " %s " - "%s ", + VG_(message)(Vg_UserMsg, " %t " + "%t ", VG_(clo_log_file_qualifier), val ? val : ""); } @@ -1929,7 +1929,7 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname ) VG_(message)(Vg_UserMsg, " "); for (i = 0; i < VG_(client_argc); i++) { HChar* tag = i==0 ? "exe" : "arg"; - VG_(message)(Vg_UserMsg, " <%s>%s", + VG_(message)(Vg_UserMsg, " <%s>%t", tag, VG_(client_argv)[i], tag); } VG_(message)(Vg_UserMsg, " "); @@ -2809,7 +2809,7 @@ int main(int argc, char **argv, char **envp) HChar buf[50]; VG_(ctime)(buf); VG_(message)(Vg_UserMsg, " RUNNING " - "%s ", buf); + "%t ", buf); VG_(message)(Vg_UserMsg, ""); } @@ -2911,7 +2911,7 @@ void VG_(shutdown_actions_NORETURN) ( ThreadId tid, } VG_(ctime)(buf); VG_(message)(Vg_UserMsg, " FINISHED " - "%s ", buf); + "%t ", buf); VG_(message)(Vg_UserMsg, ""); } diff --git a/memcheck/mac_leakcheck.c b/memcheck/mac_leakcheck.c index e55d92db5e..5ae719ed7d 100644 --- a/memcheck/mac_leakcheck.c +++ b/memcheck/mac_leakcheck.c @@ -233,7 +233,7 @@ void MAC_(pp_LeakError)(void* vextra) const Char *loss = str_lossmode(l->loss_mode); if (VG_(clo_xml)) { - VG_(message)(Vg_UserMsg, " %s", xml_kind(l->loss_mode)); + VG_(message)(Vg_UserMsg, " %t", xml_kind(l->loss_mode)); } else { VG_(message)(Vg_UserMsg, ""); }