summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-03-03 15:27:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-03-03 15:27:48 (GMT)
commitd0444d4f2b3e2833cbbc545785a76d97fac1bbbc (patch)
tree5bd5aca83e830ca930665ec4c4d0b6292e029183 /tools/lib
parent28ee82a07b127484de618ca72f9c0caf049d79fe (diff)
downloadhdf5-d0444d4f2b3e2833cbbc545785a76d97fac1bbbc.zip
hdf5-d0444d4f2b3e2833cbbc545785a76d97fac1bbbc.tar.gz
hdf5-d0444d4f2b3e2833cbbc545785a76d97fac1bbbc.tar.bz2
[svn-r29261] HDFFV-9241: Print fill value as "DEFAULT" instead of value 0
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_dump.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index b19a755..b6a53f3 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -3522,12 +3522,22 @@ h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info,
h5tools_str_reset(&buffer);
h5tools_str_append(&buffer, "%s ", "VALUE ");
H5Pfill_value_defined(dcpl_id, &fvstatus);
- if(fvstatus == H5D_FILL_VALUE_UNDEFINED)
- h5tools_str_append(&buffer, "%s", "H5D_FILL_VALUE_UNDEFINED");
- else {
- ctx->indent_level--;
- h5tools_print_fill_value(&buffer, info, ctx, dcpl_id, type_id, obj_id);
- ctx->indent_level++;
+ switch (fvstatus) {
+ case H5D_FILL_VALUE_UNDEFINED:
+ h5tools_str_append(&buffer, "%s", "H5D_FILL_VALUE_UNDEFINED");
+ break;
+ case H5D_FILL_VALUE_DEFAULT:
+ h5tools_str_append(&buffer, "%s", "H5D_FILL_VALUE_DEFAULT");
+ break;
+ case H5D_FILL_VALUE_USER_DEFINED:
+ ctx->indent_level--;
+ h5tools_print_fill_value(&buffer, info, ctx, dcpl_id, type_id, obj_id);
+ ctx->indent_level++;
+ break;
+ case H5D_FILL_VALUE_ERROR:
+ default:
+ HDassert(0);
+ break;
}
h5tools_render_element(stream, info, ctx, &buffer, &curr_pos, (size_t)ncols, (hsize_t)0, (hsize_t)0);
ctx->indent_level--;