summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-05-26 20:52:38 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-05-26 20:52:38 (GMT)
commitfd0713845916cff7da5ccedfdb7caa4d259cee61 (patch)
tree77a102f5c7ae94b8a53df7fa356b474500dbcdec /tools/h5dump
parent4ba7a0e373645bb4657382a38a49f8e9cf34d49d (diff)
downloadhdf5-fd0713845916cff7da5ccedfdb7caa4d259cee61.zip
hdf5-fd0713845916cff7da5ccedfdb7caa4d259cee61.tar.gz
hdf5-fd0713845916cff7da5ccedfdb7caa4d259cee61.tar.bz2
[svn-r8585] Purpose:
bug fix Description: the output of fill values was lacking indentation Solution: Platforms tested: linux solaris AIX Misc. update:
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 13d8153..e3f05f5 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -2055,6 +2055,7 @@ static void dump_fill_value(hid_t dcpl,hid_t type_id, hid_t obj_id)
h5dump_t *outputformat = &dataformat;
memset(&ctx, 0, sizeof(ctx));
+ ctx.indent_level=2;
size = H5Tget_size(type_id);
buf = malloc(size);
@@ -2333,21 +2334,24 @@ dump_dcpl(hid_t dcpl_id,hid_t type_id, hid_t obj_id)
}
indentation(indent + COL);
- printf("%s %s ", "VALUE ", BEGIN);
+ printf("%s ", "VALUE ");
H5Pfill_value_defined(dcpl_id, &fvstatus);
if (fvstatus == H5D_FILL_VALUE_UNDEFINED)
- printf("%s %s\n" "UNDEFINED ", END);
+ {
+ printf("%s\n", "UNDEFINED");
+ }
else
{
dump_fill_value(dcpl_id,type_id,obj_id);
- printf(" %s\n", END);
}
/* end indent */
indent -= COL;
indentation(indent + COL);
+ printf("\n");
+ indentation(indent + COL);
printf("%s\n",END);
}