summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-05 23:20:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-05 23:21:02 (GMT)
commite8ad5f6d1ad5eecf79168026f10899d1798451a0 (patch)
tree57e7598a72d8a2795a59021958b984b60429b7f8 /tools/lib
parent4747e2f2ad58bd00878a5c669df3ea7f02eabb5a (diff)
downloadhdf5-e8ad5f6d1ad5eecf79168026f10899d1798451a0.zip
hdf5-e8ad5f6d1ad5eecf79168026f10899d1798451a0.tar.gz
hdf5-e8ad5f6d1ad5eecf79168026f10899d1798451a0.tar.bz2
HDFFV-10876 Update dump to match DDL spec
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_dump.c2
-rw-r--r--tools/lib/h5tools_str.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 43fdf88..41c5878 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -4030,6 +4030,7 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
h5tools_render_element(stream, &outputformat, ctx, &buffer, &curr_pos, (size_t)ncols, (hsize_t)0, (hsize_t)0);
if (H5Tget_class(f_type) == H5T_REFERENCE) {
+ ctx->indent_level++;
h5tools_context_t datactx = *ctx; /* print context */
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "reference class type");
if (!H5Tequal(f_type, H5T_STD_REF) && !H5Tequal(f_type, H5T_STD_REF_DSETREG) && !H5Tequal(f_type, H5T_STD_REF_OBJ)) {
@@ -4263,6 +4264,7 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
} /* end for(i = 0; i < ndims; i++, ctx->cur_elmt++, elmt_counter++) */
HDfree(ref_buf);
}
+ ctx->indent_level--;
}
else {
h5tools_context_t datactx = *ctx; /* print context */
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 672e314..80a442a 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -1363,7 +1363,7 @@ h5tools_str_sprint_reference(h5tools_str_t *str, const h5tool_format_t *info,
H5TOOLS_PUSH_STACK();
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "enter");
- h5tools_str_append(str, " ");
+ h5tools_str_append(str, " \"");
buf_size = H5Rget_file_name(ref_vp, NULL, 0);
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "buf_size=%ld", buf_size);
if (buf_size) {
@@ -1401,6 +1401,7 @@ h5tools_str_sprint_reference(h5tools_str_t *str, const h5tool_format_t *info,
HDfree(attr_name);
}
}
+ h5tools_str_append(str, "\"");
CATCH
H5TOOLS_ENDDEBUG(H5E_tools_min_dbg_id_g, "exit");