|
From: <sv...@va...> - 2006-02-19 14:05:34
|
Author: sewardj
Date: 2006-02-19 14:05:28 +0000 (Sun, 19 Feb 2006)
New Revision: 5659
Log:
Minor wibbles.
Modified:
trunk/auxprogs/mpiwrap.c
Modified: trunk/auxprogs/mpiwrap.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/auxprogs/mpiwrap.c 2006-02-18 23:20:35 UTC (rev 5658)
+++ trunk/auxprogs/mpiwrap.c 2006-02-19 14:05:28 UTC (rev 5659)
@@ -75,8 +75,8 @@
#include <pthread.h> /* pthread_mutex_{lock,unlock} */
=20
/* Include Valgrind magic macros for writing wrappers. */
-#include "valgrind.h"
-#include "memcheck.h"
+#include "../include/valgrind.h"
+#include "../memcheck/memcheck.h"
=20
=20
/*------------------------------------------------------------*/
@@ -134,7 +134,7 @@
opt_verbose =3D NULL !=3D strstr(options_str, "verbose");
if (options_str)=20
opt_strict =3D NULL !=3D strstr(options_str, "strict");
- fprintf(stderr, "%s %5d: active for pid %d\n",=20
+ fprintf(stderr, "%s %5d: Active for pid %d\n",=20
preamble, my_pid, my_pid);
if (opt_help) {
fprintf(stderr, "\n");
@@ -152,11 +152,12 @@
fprintf(stderr, "%s %5d: exiting now\n", preamble, my_pid );
exit(1);
}
- fprintf(stderr, "%s %5d: try MPIWRAP_DEBUG=3Dhelp for possible opt=
ions\n",=20
+ fprintf(stderr, "%s %5d: Try MPIWRAP_DEBUG=3Dhelp for possible opt=
ions\n",=20
preamble, my_pid);
- fprintf(stderr, "%s %5d: selected options: %s %s\n",=20
- preamble, my_pid, opt_verbose ? "verbose" : "",
- opt_strict ? "strict" : "");
+ if (opt_verbose || opt_strict)
+ fprintf(stderr, "%s %5d: Selected options: %s %s\n",=20
+ preamble, my_pid, opt_verbose ? "verbose" : "",
+ opt_strict ? "strict" : "")=
;
=20
}
if (opt_verbose)
|