summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5dump.c')
-rw-r--r--tools/h5dump.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index 1b4322b..62a1853 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -324,12 +324,13 @@ H5G_stat_t statbuf;
printf("H5T_REFERENCE");
break;
case H5T_ENUM:
- printf("H5T_ENUM ");
+ printf("H5T_ENUM\n");
+ indentation(indent + 3);
+ printf("{ ");
super = H5Tget_super(type);
print_datatype(super);
- printf(" {");
+ printf(";");
print_enum(type);
- printf("\n");
indentation (indent + 3);
printf("}\n");
break;
@@ -1669,6 +1670,7 @@ static void print_enum(hid_t type){
printf("%"PRINTF_LL_WIDTH"d",
*((long_long*)(value+i*dst_size)));
}
+ printf(";");
}
/* Release resources */