summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-11-26 23:24:24 (GMT)
committerkmu <kmu@hdfgroup.org>2019-11-26 23:24:24 (GMT)
commitbfbd613f53af476fd83ac9e2bfb5855e659eef65 (patch)
treec66cdb2df58374d936d417d888f25495842c1263 /test/h5test.c
parente971c0afa158af877b937eff615732b9262cb421 (diff)
downloadhdf5-bfbd613f53af476fd83ac9e2bfb5855e659eef65.zip
hdf5-bfbd613f53af476fd83ac9e2bfb5855e659eef65.tar.gz
hdf5-bfbd613f53af476fd83ac9e2bfb5855e659eef65.tar.bz2
Revert "fix warnings and some text alignment"
This reverts commit d06474c4e1ba8628f896e57e619d4b142e6ba8b0.
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 1faf02d..c8f4132 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1318,21 +1318,23 @@ 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 (up to %d bytes per item):\n", MPI_MAX_INFO_VAL);
- if (info==MPI_INFO_NULL) {
- HDprintf("object is MPI_INFO_NULL\n");
+ 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");
}
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 */