summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-05-03 21:09:52 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-05-03 21:09:52 (GMT)
commit2cf0e9f8822bddab983f764ee669656e1ec61f1e (patch)
tree55572a6e212fe4600b93df7437db598c7c7d1853
parent2997ad4c45e70ab44d7eefdc9f18a64154a7d76e (diff)
downloadhdf5-2cf0e9f8822bddab983f764ee669656e1ec61f1e.zip
hdf5-2cf0e9f8822bddab983f764ee669656e1ec61f1e.tar.gz
hdf5-2cf0e9f8822bddab983f764ee669656e1ec61f1e.tar.bz2
[svn-r5348] Purpose:
Bug Fix Description: There was a duplicate declaration of print_indent() in the header and in the source files. Solution: Removed the public declaration and made the function static again. Platforms tested: Arabica
-rw-r--r--perform/pio_engine.c6
-rw-r--r--perform/pio_perf.c5
-rw-r--r--perform/pio_perf.h2
3 files changed, 6 insertions, 7 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c
index 9edf499..79f035a 100644
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -256,10 +256,10 @@ buf_size=MIN(1024*1024, buf_size);
GOTOERROR(FAIL);
}
- if (pio_debug_level >= 4) {
+ if (pio_debug_level >= 4)
/* output all of the times for all iterations */
- output_report(output, "Timer details:\n");
- }
+ if (myrank == 0)
+ fprintf(output, "Timer details:\n");
for (nf = 1; nf <= nfiles; nf++) {
/*
diff --git a/perform/pio_perf.c b/perform/pio_perf.c
index f58146b..db6ccc0 100644
--- a/perform/pio_perf.c
+++ b/perform/pio_perf.c
@@ -229,6 +229,7 @@ static void get_minmax(minmax *mm, double val);
static minmax accumulate_minmax_stuff(minmax *mm, long raw_size, int count);
static int create_comm_world(int num_procs, int *doing_pio);
static int destroy_comm_world(void);
+static void output_report(FILE *output, const char *fmt, ...);
static void print_indent(register FILE *output, register int indent);
static void usage(const char *prog);
@@ -754,7 +755,7 @@ destroy_comm_world(void)
* Programmer: Bill Wendling, 19. December 2001
* Modifications:
*/
-void
+static void
output_report(FILE *output, const char *fmt, ...)
{
int myrank;
@@ -778,7 +779,7 @@ output_report(FILE *output, const char *fmt, ...)
* Programmer: Bill Wendling, 29. October 2001
* Modifications:
*/
-void
+static void
print_indent(register FILE *output, register int indent)
{
int myrank;
diff --git a/perform/pio_perf.h b/perform/pio_perf.h
index 9d51f01..67beb3c 100644
--- a/perform/pio_perf.h
+++ b/perform/pio_perf.h
@@ -57,8 +57,6 @@ extern "C" {
#endif /* __cplusplus */
extern results do_pio(FILE * output, parameters param);
-extern void output_report(FILE *output, const char *fmt, ...);
-extern void print_indent(register FILE *output, register int indent);
#ifdef __cplusplus
}