From fd0713845916cff7da5ccedfdb7caa4d259cee61 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Wed, 26 May 2004 15:52:38 -0500 Subject: [svn-r8585] Purpose: bug fix Description: the output of fill values was lacking indentation Solution: Platforms tested: linux solaris AIX Misc. update: --- tools/h5dump/h5dump.c | 10 +++++++--- 1 file 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); } -- cgit v0.12