diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-03-01 22:58:14 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-03-01 22:58:14 (GMT) |
commit | f59050ee2c0b6178563a62f07f962109b8fca664 (patch) | |
tree | 570391752af51f1f06baa7ee3a93a8c8af9b6b99 /tools/lib | |
parent | eae9f6b209c998c1f6a24adbcfb7c49f25203ebb (diff) | |
download | hdf5-f59050ee2c0b6178563a62f07f962109b8fca664.zip hdf5-f59050ee2c0b6178563a62f07f962109b8fca664.tar.gz hdf5-f59050ee2c0b6178563a62f07f962109b8fca664.tar.bz2 |
Fix h5ls attrreg
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools_str.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index fd58b69..798c025 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -708,6 +708,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai if(info->raw) { size_t i; + H5TOOLS_DEBUG("info->raw"); if(1 == nsize) h5tools_str_append(str, OPT(info->fmt_raw, "0x%02x"), ucp_vp[0]); else @@ -718,8 +719,11 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai } } else { - if((type_class = H5Tget_class(type)) < 0) + H5TOOLS_DEBUG("H5Tget_class(type)"); + if((type_class = H5Tget_class(type)) < 0) { + H5TOOLS_ENDDEBUG(" with %s", "NULL"); return NULL; + } switch (type_class) { case H5T_FLOAT: H5TOOLS_DEBUG("H5T_FLOAT"); @@ -1272,6 +1276,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai break; } /* end switch */ } + H5TOOLS_DEBUG("switch done"); ret_value = h5tools_str_fmt(str, start, OPT(info->elmt_fmt, "%s")); |