From: Julian Seward Date: Sun, 19 Feb 2006 14:05:28 +0000 (+0000) Subject: Minor wibbles. X-Git-Tag: svn/VALGRIND_3_2_0~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65940e9512d918f1625089d09ca7f475be077f5e;p=thirdparty%2Fvalgrind.git Minor wibbles. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5659 --- diff --git a/auxprogs/mpiwrap.c b/auxprogs/mpiwrap.c index b0249e5130..dbb68e645a 100644 --- a/auxprogs/mpiwrap.c +++ b/auxprogs/mpiwrap.c @@ -75,8 +75,8 @@ #include /* pthread_mutex_{lock,unlock} */ /* Include Valgrind magic macros for writing wrappers. */ -#include "valgrind.h" -#include "memcheck.h" +#include "../include/valgrind.h" +#include "../memcheck/memcheck.h" /*------------------------------------------------------------*/ @@ -134,7 +134,7 @@ static inline void before ( char* fnname ) opt_verbose = NULL != strstr(options_str, "verbose"); if (options_str) opt_strict = NULL != strstr(options_str, "strict"); - fprintf(stderr, "%s %5d: active for pid %d\n", + fprintf(stderr, "%s %5d: Active for pid %d\n", preamble, my_pid, my_pid); if (opt_help) { fprintf(stderr, "\n"); @@ -152,11 +152,12 @@ static inline void before ( char* fnname ) fprintf(stderr, "%s %5d: exiting now\n", preamble, my_pid ); exit(1); } - fprintf(stderr, "%s %5d: try MPIWRAP_DEBUG=help for possible options\n", + fprintf(stderr, "%s %5d: Try MPIWRAP_DEBUG=help for possible options\n", preamble, my_pid); - fprintf(stderr, "%s %5d: selected options: %s %s\n", - preamble, my_pid, opt_verbose ? "verbose" : "", - opt_strict ? "strict" : ""); + if (opt_verbose || opt_strict) + fprintf(stderr, "%s %5d: Selected options: %s %s\n", + preamble, my_pid, opt_verbose ? "verbose" : "", + opt_strict ? "strict" : ""); } if (opt_verbose)