diff options
Diffstat (limited to 'src/H5FSdbg.c')
-rw-r--r-- | src/H5FSdbg.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/H5FSdbg.c b/src/H5FSdbg.c index dcbc846..a946cf0 100644 --- a/src/H5FSdbg.c +++ b/src/H5FSdbg.c @@ -158,6 +158,45 @@ done: /*------------------------------------------------------------------------- + * Function: H5FS_sect_debug + * + * Purpose: Prints debugging info about a free space section. + * + * Return: Non-negative on success/Negative on failure + * + * Programmer: Quincey Koziol + * koziol@ncsa.uiuc.edu + * May 30 2006 + * + *------------------------------------------------------------------------- + */ +herr_t +H5FS_sect_debug(const H5FS_t *fspace, const H5FS_section_info_t *sect, FILE *stream, int indent, int fwidth) +{ + herr_t ret_value = SUCCEED; /* Return value */ + + FUNC_ENTER_NOAPI(H5FS_sect_debug, FAIL) + + /* + * Check arguments. + */ + HDassert(fspace); + HDassert(sect); + HDassert(stream); + HDassert(indent >= 0); + HDassert(fwidth >= 0); + + /* Call the section's debugging routine */ + if(fspace->sect_cls[sect->type].debug) + if((fspace->sect_cls[sect->type].debug)(sect, stream, indent, fwidth) < 0) + HGOTO_ERROR(H5E_FSPACE, H5E_BADITER, FAIL, "can't dump section's debugging info") + +done: + FUNC_LEAVE_NOAPI(ret_value) +} /* end H5FS_sect_debug() */ + + +/*------------------------------------------------------------------------- * Function: H5FS_sects_debug * * Purpose: Prints debugging info about the free space sections. |