From 2cf0e9f8822bddab983f764ee669656e1ec61f1e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 3 May 2002 16:09:52 -0500 Subject: [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 --- perform/pio_engine.c | 6 +++--- perform/pio_perf.c | 5 +++-- perform/pio_perf.h | 2 -- 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 } -- cgit v0.12