]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't print the command in the preamble with --xml=yes.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 30 Jul 2009 23:14:55 +0000 (23:14 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 30 Jul 2009 23:14:55 +0000 (23:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10667

coregrind/m_main.c

index a32d2f29b85635cc8995adee18d35db844854b98..52c5b8111c1c8aa3baa25917c5bbff717fa63e12 100644 (file)
@@ -1028,9 +1028,9 @@ static void print_preamble ( Bool logging_to_fd,
 ==9717==          fffffffffffffffffffffffffffff 1 2 3 \
 ==9717==          bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
       */
-      VG_(umsg)("Command: ");
+      umsg_or_xml("Command: ");
       if (VG_(args_the_exename))
-         VG_(umsg)("%s", VG_(args_the_exename));
+         umsg_or_xml("%s", VG_(args_the_exename));
       n = 0;
       for (i = 0; i < VG_(sizeXA)( VG_(args_for_client) ); i++) {
          HChar* s = *(HChar**)VG_(indexXA)( VG_(args_for_client), i );
@@ -1043,9 +1043,9 @@ static void print_preamble ( Bool logging_to_fd,
             VG_(umsg)("\n        ");
             n = slen;
          }
-         VG_(umsg)(" %s", s);
+         umsg_or_xml(" %s", s);
       }
-      VG_(umsg)("\n");
+      umsg_or_xml("\n");
 
       if (VG_(clo_xml))
          VG_(printf_xml)("</preamble>\n");