summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-20 17:08:37 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:22 (GMT)
commite5cb404bb2009d19e853fe0c71ce7c24c0033ccc (patch)
tree2c8b0a8a7758c756f9f90259a921a793e8e50b44 /tools
parentd486a9b27e00a4e11fb92fe5d0b2df072efef79d (diff)
downloadhdf5-e5cb404bb2009d19e853fe0c71ce7c24c0033ccc.zip
hdf5-e5cb404bb2009d19e853fe0c71ce7c24c0033ccc.tar.gz
hdf5-e5cb404bb2009d19e853fe0c71ce7c24c0033ccc.tar.bz2
Add unknown define for h5dump ref objects
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools.h1
-rw-r--r--tools/lib/h5tools_str.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h
index dad4af7..9440e7a 100644
--- a/tools/lib/h5tools.h
+++ b/tools/lib/h5tools.h
@@ -581,6 +581,7 @@ H5TOOLS_DLLVAR int enable_error_stack; /* re-enable error stack; disable=0 e
#define H5_TOOLS_DATASET "DATASET"
#define H5_TOOLS_DATATYPE "DATATYPE"
#define H5_TOOLS_ATTRIBUTE "ATTRIBUTE"
+#define H5_TOOLS_UNKNOWN "UNKNOWN"
/* Definitions of useful routines */
H5TOOLS_DLL void h5tools_init(void);
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index f35fdab..67f44b1 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -1135,7 +1135,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
case H5O_TYPE_UNKNOWN:
case H5O_TYPE_NTYPES:
default:
- h5tools_str_append(str, "%u-", (unsigned) oi.type);
+ h5tools_str_append(str, "%u-%s", (unsigned) oi.type, H5_TOOLS_UNKNOWN);
break;
} /* end switch */
H5Oclose(obj);
@@ -1172,6 +1172,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
case H5O_TYPE_UNKNOWN:
case H5O_TYPE_NTYPES:
default:
+ h5tools_str_append(str, H5_TOOLS_UNKNOWN);
break;
} /* end switch */
h5tools_str_sprint_reference(str, info, container, ref_vp);