diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-02 15:13:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-02 15:13:38 (GMT) |
commit | afb64c0bac1527046047f704000cf68ff023740f (patch) | |
tree | 148ed4d9fe1b2e198234af8787119cc532a1b54c /tools/h5ls.c | |
parent | 74d5c6b757d6d10673f8da11b383074482868410 (diff) | |
download | hdf5-afb64c0bac1527046047f704000cf68ff023740f.zip hdf5-afb64c0bac1527046047f704000cf68ff023740f.tar.gz hdf5-afb64c0bac1527046047f704000cf68ff023740f.tar.bz2 |
[svn-r3066] Purpose:
Bug Fix.
Description:
Attributes whose datatype was an object or dataset region reference weren't
dumping correctly.
Solution:
Pass along attribute ID to the code which prints the attributes, so the
reference types can be dereferenced and printed.
Platforms tested:
FreeBSD 4.2 (hawkwind) & IRIX64 6.5 (modi4)
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r-- | tools/h5ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c index f792a19..56c9821 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -1328,7 +1328,7 @@ list_attr (hid_t obj, const char *attr_name, void UNUSED *op_data) buf = malloc(need); assert(buf); if (H5Aread(attr, p_type, buf)>=0) { - h5dump_mem(stdout, &info, p_type, space, buf,-1); + h5dump_mem(stdout, &info, attr, p_type, space, buf,-1); } free(buf); H5Tclose(p_type); |