diff options
author | kmu <kmu@hdfgroup.org> | 2019-11-11 16:49:37 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:23 (GMT) |
commit | c1f6c50b356f087920fabead550a0625935d634a (patch) | |
tree | c5d9b78f1246fdd3f7f6c07581102e1f64f9e4a1 /test | |
parent | 6725222332ded4dd7324f61a73299d889a4ae571 (diff) | |
download | hdf5-c1f6c50b356f087920fabead550a0625935d634a.zip hdf5-c1f6c50b356f087920fabead550a0625935d634a.tar.gz hdf5-c1f6c50b356f087920fabead550a0625935d634a.tar.bz2 |
fix warnings and some text alignment
Diffstat (limited to 'test')
-rw-r--r-- | test/h5test.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/test/h5test.c b/test/h5test.c index abed4be..e1f0116 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1329,23 +1329,21 @@ h5_dump_info_object(MPI_Info info) { char key[MPI_MAX_INFO_KEY+1]; char value[MPI_MAX_INFO_VAL+1]; - int flag; - int i, nkeys; + int flag; + int i, nkeys; - HDprintf("Dumping MPI Info Object(%d) (up to %d bytes per item):\n", (int)info, - MPI_MAX_INFO_VAL); - if (info==MPI_INFO_NULL){ - HDprintf("object is MPI_INFO_NULL\n"); + HDprintf("Dumping MPI Info Object (up to %d bytes per item):\n", MPI_MAX_INFO_VAL); + if (info==MPI_INFO_NULL) { + HDprintf("object is MPI_INFO_NULL\n"); } else { - MPI_Info_get_nkeys(info, &nkeys); - HDprintf("object has %d items\n", nkeys); - for (i=0; i<nkeys; i++){ - MPI_Info_get_nthkey(info, i, key); - MPI_Info_get(info, key, MPI_MAX_INFO_VAL, value, &flag); - HDprintf("%s=%s\n", key, value); - } - + MPI_Info_get_nkeys(info, &nkeys); + HDprintf("object has %d items\n", nkeys); + for (i=0; i<nkeys; i++) { + MPI_Info_get_nthkey(info, i, key); + MPI_Info_get(info, key, MPI_MAX_INFO_VAL, value, &flag); + HDprintf("%s=%s\n", key, value); + } } } #endif /* H5_HAVE_PARALLEL */ |