diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-09-11 20:16:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-09-11 20:16:05 (GMT) |
commit | 5fb061e46e8b854bf745674562b71f3e76e1acd0 (patch) | |
tree | 518130db568e254f77fe07b007790618fe36830c /src/H5EAtest.c | |
parent | f1d22675ffc09e604c8715b2a6a010ec21acb771 (diff) | |
download | hdf5-5fb061e46e8b854bf745674562b71f3e76e1acd0.zip hdf5-5fb061e46e8b854bf745674562b71f3e76e1acd0.tar.gz hdf5-5fb061e46e8b854bf745674562b71f3e76e1acd0.tar.bz2 |
[svn-r15617] Description:
Clean up how v2 B-tree (and extensible array) classes are determined in
h5debug.
Add support for extensible array headers and index blocks to h5debug
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'src/H5EAtest.c')
-rw-r--r-- | src/H5EAtest.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/H5EAtest.c b/src/H5EAtest.c index 8f2e038..00e6e64 100644 --- a/src/H5EAtest.c +++ b/src/H5EAtest.c @@ -65,7 +65,8 @@ static herr_t H5EA__test_fill(void *nat_blk, size_t nelmts); static herr_t H5EA__test_encode(void *raw, const void *elmt, size_t nelmts); static herr_t H5EA__test_decode(const void *raw, void *elmt, size_t nelmts); -static herr_t H5EA__test_debug(FILE *stream, int indent, int fwidth, const void *elmt); +static herr_t H5EA__test_debug(FILE *stream, int indent, int fwidth, + hsize_t idx, const void *elmt); /*********************/ @@ -221,12 +222,21 @@ END_FUNC(STATIC) /* end H5EA__test_decode() */ */ BEGIN_FUNC(STATIC, NOERR, herr_t, SUCCEED, -, -H5EA__test_debug(FILE *stream, int indent, int fwidth, const void *elmt)) +H5EA__test_debug(FILE *stream, int indent, int fwidth, hsize_t idx, + const void *elmt)) + + /* Local variables */ + char temp_str[128]; /* Temporary string, for formatting */ /* Sanity checks */ HDassert(stream); HDassert(elmt); + /* Print element */ + sprintf(temp_str, "Element #%llu:", (unsigned long_long)idx); + HDfprintf(stream, "%*s%-*s %llu\n", indent, "", fwidth, temp_str, + (unsigned long_long)*(const uint64_t *)elmt); + END_FUNC(STATIC) /* end H5EA__test_debug() */ |