summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lib/h5tools.h2
-rw-r--r--tools/lib/h5tools_dump.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h
index 7ed60e8..1ddc584 100644
--- a/tools/lib/h5tools.h
+++ b/tools/lib/h5tools.h
@@ -99,6 +99,8 @@
#define VDS_POINT "POINT"
#define VDS_SRC_FILE "SRC_FILE"
#define VDS_SRC_DATASET "SRC_DATASET"
+#define VDS_NONE "SELECTION_NONE"
+#define VDS_ALL "SELECTION_ALL"
#define BEGIN "{"
#define END "}"
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 3fee4d1..5e9cb4c 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -2868,7 +2868,7 @@ h5tools_print_virtual_selection(h5tools_str_t *buffer, const h5tool_format_t *in
h5tools_str_append(buffer, "%s", h5tools_dump_header_format->virtualselectionbegin);
switch(H5Sget_select_type(vspace)) {
case H5S_SEL_NONE: /* Nothing selected */
- h5tools_str_append(buffer, "NONE");
+ h5tools_str_append(buffer, "%s", VDS_NONE);
break;
case H5S_SEL_POINTS: /* Sequence of points selected */
h5tools_str_append(buffer, "%s %s ", VDS_POINT, h5tools_dump_header_format->virtualselectionblockbegin);
@@ -2887,7 +2887,7 @@ h5tools_print_virtual_selection(h5tools_str_t *buffer, const h5tool_format_t *in
h5tools_str_append(buffer, "%s", h5tools_dump_header_format->virtualselectionblockend);
break;
case H5S_SEL_ALL: /* Entire extent selected */
- h5tools_str_append(buffer, "ALL");
+ h5tools_str_append(buffer, "%s", VDS_ALL);
break;
default:
h5tools_str_append(buffer, "Unknown Selection");