From fa38cb7992d868b0ca6e662384948b1a3e896868 Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Thu, 11 Oct 2018 18:46:42 +0100 Subject: [PATCH] Bugfix JSON header (allows parsing at line 0). --- src/ior-output.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ior-output.c b/src/ior-output.c index a6b8d9c..da4f5f1 100644 --- a/src/ior-output.c +++ b/src/ior-output.c @@ -241,8 +241,12 @@ void PrintEarlyHeader() if (rank != 0) return; - fprintf(out_resultfile, "IOR-" META_VERSION ": MPI Coordinated Test of Parallel I/O\n"); - fflush(out_resultfile); + PrintStartSection(); + if (outputFormat != OUTPUT_DEFAULT){ + PrintKeyVal("Version", META_VERSION); + }else{ + printf("IOR-" META_VERSION ": MPI Coordinated Test of Parallel I/O\n"); + } } void PrintHeader(int argc, char **argv) @@ -252,7 +256,6 @@ void PrintHeader(int argc, char **argv) if (rank != 0) return; - PrintStartSection(); PrintKeyVal("Began", CurrentTimeString()); PrintKeyValStart("Command line");