From: Nicholas Nethercote Date: Thu, 30 Jul 2009 23:35:11 +0000 (+0000) Subject: Now that we always print the command, no need to reprint it when logging to X-Git-Tag: svn/VALGRIND_3_5_0~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2f21c39beaff9209bebb3a8e227665ceae00cb1;p=thirdparty%2Fvalgrind.git Now that we always print the command, no need to reprint it when logging to file or a socket. And tweak how the PIDs are printed. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10668 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 52c5b8111c..b6ef7ee4b6 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1052,14 +1052,7 @@ static void print_preamble ( Bool logging_to_fd, } if (!VG_(clo_xml) && VG_(clo_verbosity) > 0 && !logging_to_fd) { - VG_(umsg)("\n"); - VG_(umsg)("My PID = %d, parent PID = %d. Prog and args are:\n", - VG_(getpid)(), VG_(getppid)() ); - if (VG_(args_the_exename)) - VG_(umsg)(" %s\n", VG_(args_the_exename)); - for (i = 0; i < VG_(sizeXA)( VG_(args_for_client) ); i++) - VG_(umsg)(" %s\n", - * (HChar**) VG_(indexXA)( VG_(args_for_client), i )); + VG_(umsg)("My PID: %d, parent PID: %d\n", VG_(getpid)(), VG_(getppid)()); } else if (VG_(clo_xml)) { @@ -1111,7 +1104,7 @@ static void print_preamble ( Bool logging_to_fd, // Empty line after the preamble if (VG_(clo_verbosity) > 0) - VG_(message)(Vg_UserMsg, "\n"); + VG_(umsg)("\n"); if (VG_(clo_xml)) VG_(printf_xml)("\n");