summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2021-09-14 16:49:15 (GMT)
committergithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2021-09-14 16:49:15 (GMT)
commit03f90ee196d02ef45e3a570e483d65c407133bd4 (patch)
treedebb2186ed31101243b976f361debb048f027597
parentdb4a1755b3e9fb8a14018ec8a44cc9a92d830aac (diff)
downloadhdf5-03f90ee196d02ef45e3a570e483d65c407133bd4.zip
hdf5-03f90ee196d02ef45e3a570e483d65c407133bd4.tar.gz
hdf5-03f90ee196d02ef45e3a570e483d65c407133bd4.tar.bz2
Committing clang-format changes
-rw-r--r--test/vfd_swmr_bigset_writer.c36
1 files changed, 21 insertions, 15 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c
index 22ec3fb..956973a 100644
--- a/test/vfd_swmr_bigset_writer.c
+++ b/test/vfd_swmr_bigset_writer.c
@@ -829,7 +829,7 @@ state_destroy(state_t *s)
HDfprintf(stderr, "H5Fclose failed\n");
TEST_ERROR;
}
- }
+ }
else {
for (j = 0; j < NELMTS(s->file); j++)
if (H5Fvfd_swmr_end_tick(s->file[j]) < 0) {
@@ -869,7 +869,7 @@ state_destroy(state_t *s)
}
HDfprintf(stdout, "File close time (for running the writer alone) = %lf seconds\n",
- TIME_PASSED(start_time, end_time));
+ TIME_PASSED(start_time, end_time));
}
if (s->dataset)
@@ -1407,8 +1407,9 @@ open_extensible_dset(state_t *s)
if (s->test_3d) {
if (maxdims3[0] != three_dee_max_dims[0] || maxdims3[1] != three_dee_max_dims[1] ||
maxdims3[2] != three_dee_max_dims[2]) {
- HDfprintf(stderr, "Unexpected maximum dimensions %" PRIuHSIZE " x %" PRIuHSIZE " x %" PRIuHSIZE,
- maxdims3[0], maxdims3[1], maxdims3[2]);
+ HDfprintf(stderr,
+ "Unexpected maximum dimensions %" PRIuHSIZE " x %" PRIuHSIZE " x %" PRIuHSIZE,
+ maxdims3[0], maxdims3[1], maxdims3[2]);
TEST_ERROR;
}
}
@@ -1416,17 +1417,17 @@ open_extensible_dset(state_t *s)
if (s->expand_2d) {
if (maxdims2[0] != two_dee_max_dims[0] || maxdims2[1] != two_dee_max_dims[1] ||
maxdims2[0] != maxdims2[1]) {
- HDfprintf(stderr, "Unexpected maximum dimensions %" PRIuHSIZE " x %" PRIuHSIZE, maxdims2[0],
- maxdims2[1]);
+ HDfprintf(stderr, "Unexpected maximum dimensions %" PRIuHSIZE " x %" PRIuHSIZE,
+ maxdims2[0], maxdims2[1]);
TEST_ERROR;
}
}
else if (maxdims2[0] != s->one_dee_max_dims[0] || maxdims2[1] != s->one_dee_max_dims[1] ||
dims2[0] != s->chunk_dims[0]) {
HDfprintf(stderr,
- "Unexpected maximum dimensions %" PRIuHSIZE " x %" PRIuHSIZE
- " or columns %" PRIuHSIZE,
- maxdims2[0], maxdims2[1], dims2[1]);
+ "Unexpected maximum dimensions %" PRIuHSIZE " x %" PRIuHSIZE
+ " or columns %" PRIuHSIZE,
+ maxdims2[0], maxdims2[1], dims2[1]);
}
}
@@ -1478,7 +1479,7 @@ create_dsets(state_t s)
}
HDfprintf(stdout, "Dataset creation time (for running the writer alone) = %lf seconds\n",
- TIME_PASSED(start_time, end_time));
+ TIME_PASSED(start_time, end_time));
}
return true;
@@ -2108,7 +2109,7 @@ verify_dsets(state_t s, np_state_t *np, mat_t *mat)
/* Print out the performance information */
if (s.use_named_pipe && s.do_perf && counter)
HDfprintf(stdout, "Dataset verification: mean time = %lf, max time = %lf, min time = %lf\n",
- total_time / (double)counter, max_time, min_time);
+ total_time / (double)counter, max_time, min_time);
return true;
@@ -2395,13 +2396,18 @@ write_dsets(state_t s, np_state_t *np, mat_t *mat)
/* Calculate the write speed */
if (s.test_3d)
- throughput = ((double)(sizeof(unsigned int) * s.depth * s.rows * s.cols * s.nsteps * s.ndatasets)) / time_passed;
+ throughput =
+ ((double)(sizeof(unsigned int) * s.depth * s.rows * s.cols * s.nsteps * s.ndatasets)) /
+ time_passed;
else
- throughput = ((double)(sizeof(unsigned int) * s.rows * s.cols * s.nsteps * s.ndatasets)) / time_passed;
+ throughput =
+ ((double)(sizeof(unsigned int) * s.rows * s.cols * s.nsteps * s.ndatasets)) / time_passed;
/* Print out the performance information */
- HDfprintf(stdout, "Dataset write time (for running the writer alone) = %lf seconds, write speed = %.2lf bytes/second\n",
- time_passed, throughput);
+ HDfprintf(stdout,
+ "Dataset write time (for running the writer alone) = %lf seconds, write speed = %.2lf "
+ "bytes/second\n",
+ time_passed, throughput);
}
return true;