summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-24 19:01:21 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-24 19:01:21 (GMT)
commit99cd249d1b7d590da829f6b4380b517c364ffc53 (patch)
tree615822faa19edcb78c65359787dcb63321c7b76e /tools
parentc04c1b6abf71b2646b90c86142217839a4a0e994 (diff)
downloadhdf5-99cd249d1b7d590da829f6b4380b517c364ffc53.zip
hdf5-99cd249d1b7d590da829f6b4380b517c364ffc53.tar.gz
hdf5-99cd249d1b7d590da829f6b4380b517c364ffc53.tar.bz2
[svn-r1376]
changed some of the output format for the dumper(show object ids now)
Diffstat (limited to 'tools')
-rw-r--r--tools/h5tools.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index deed73b..2216a1b 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -884,7 +884,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
region = H5Rget_region(container, H5R_DATASET_REGION, vp);
H5Gget_objinfo(obj, ".", FALSE, &sb);
if (programtype == H5DUMP) {
- h5dump_str_append(str, "%s-",DATASET);
+ h5dump_str_append(str, "%s %lu:%lu ",DATASET,sb.objno[1], sb.objno[0]);
}
else {
h5dump_str_append(str, "DSET-%lu:%lu:%lu:%lu-",
@@ -919,7 +919,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
H5Dclose(obj);
break;
case H5G_TYPE:
- h5dump_str_append(str, TYPE);
+ h5dump_str_append(str, DATATYPE);
H5Tclose(obj);
break;
default:
@@ -934,9 +934,15 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
}
/* Print OID */
+ if (programtype == H5DUMP) {
+ h5dump_str_append(str, " %lu:%lu",
+ sb.objno[1], sb.objno[0]);
+ }
+ else {
h5dump_str_append(str, "-%lu:%lu:%lu:%lu",
sb.fileno[1], sb.fileno[0],
sb.objno[1], sb.objno[0]);
+ }
}
} else {