From 99cd249d1b7d590da829f6b4380b517c364ffc53 Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Thu, 24 Jun 1999 14:01:21 -0500 Subject: [svn-r1376] changed some of the output format for the dumper(show object ids now) --- tools/h5tools.c | 10 ++++++++-- 1 file 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 { -- cgit v0.12