From 1059b742826ca3864be8ee70c76c8ef625d31e46 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 23 Oct 2009 13:25:31 -0500 Subject: [svn-r17737] Description: Fix error in dataset's chunk index v1 B-tree debugging code to correctly pass userdata down to B-tree cache load routine. Tested on: Linux 2.4/64 (chicago1) (too minor to require h5committest) --- src/H5Dbtree.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/H5Dbtree.c b/src/H5Dbtree.c index c9561f2..691b349 100644 --- a/src/H5Dbtree.c +++ b/src/H5Dbtree.c @@ -1456,6 +1456,7 @@ herr_t H5D_btree_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE * stream, int indent, int fwidth, unsigned ndims) { + H5D_chunk_common_ud_t udata; /* User data for B-tree callback */ H5O_storage_chunk_t storage; /* Storage information for B-tree callback */ hbool_t shared_init = FALSE; /* Whether B-tree shared info is initialized */ herr_t ret_value = SUCCEED; /* Return value */ @@ -1471,8 +1472,13 @@ H5D_btree_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE * stream, int indent HGOTO_ERROR(H5E_RESOURCE, H5E_CANTINIT, FAIL, "can't create wrapper for shared B-tree info") shared_init = TRUE; + /* Set up user data for callback */ + udata.layout = NULL; + udata.storage = &storage; + udata.offset = NULL; + /* Dump the records for the B-tree */ - (void)H5B_debug(f, dxpl_id, addr, stream, indent, fwidth, H5B_BTREE, &ndims); + (void)H5B_debug(f, dxpl_id, addr, stream, indent, fwidth, H5B_BTREE, &udata); done: if(shared_init) { -- cgit v0.12