From: Julian Seward Date: Tue, 26 Jul 2005 23:43:26 +0000 (+0000) Subject: If --log-file-qualifier= is set, and we're logging to a file or X-Git-Tag: svn/VALGRIND_3_0_0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1518bf86ab85456bb6861b0553993c840b2bd44b;p=thirdparty%2Fvalgrind.git If --log-file-qualifier= is set, and we're logging to a file or socket, emit the qualifier and its current value in the plain text output as well as in the XML. (Ashley Pittman). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4275 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 30a10f32d5..b417e9cd73 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1905,6 +1905,13 @@ static void process_cmd_line_options( UInt* client_auxv, const char* toolname ) VG_(getpid)(), VG_(getppid)() ); for (i = 0; i < VG_(client_argc); i++) VG_(message)(Vg_UserMsg, " %s", VG_(client_argv)[i]); + if (VG_(clo_log_file_qualifier)) { + HChar* val = VG_(getenv)(VG_(clo_log_file_qualifier)); + VG_(message)(Vg_UserMsg, ""); + VG_(message)(Vg_UserMsg, "Log file qualifier: var %s, value %s.", + VG_(clo_log_file_qualifier), + val ? val : ""); + } } else if (VG_(clo_xml)) {