summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2017-03-22 17:54:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2017-03-22 17:54:25 (GMT)
commit46c9ab600de491657520897322b75659c3bdfb5f (patch)
treeec3ba075637c098d0354b173c711cc4a3163cbb5 /src/H5F.c
parent161a3b95165957b772e56b6f84fe7923fd3ddd11 (diff)
downloadhdf5-46c9ab600de491657520897322b75659c3bdfb5f.zip
hdf5-46c9ab600de491657520897322b75659c3bdfb5f.tar.gz
hdf5-46c9ab600de491657520897322b75659c3bdfb5f.tar.bz2
Minor style cleanups
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 01fb58e..aef9d1d 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2073,10 +2073,8 @@ H5Fget_page_buffering_stats(hid_t file_id, unsigned accesses[2], unsigned hits[2
/* Check args */
if(NULL == (file = (H5F_t *)H5I_object_verify(file_id, H5I_FILE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "not a file ID")
-
if(NULL == file->shared->page_buf)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "page buffering not enabled on file")
-
if(NULL == accesses || NULL == hits || NULL == misses || NULL == evictions || NULL == bypasses)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "NULL input parameters for stats")
@@ -2087,6 +2085,7 @@ H5Fget_page_buffering_stats(hid_t file_id, unsigned accesses[2], unsigned hits[2
done:
FUNC_LEAVE_API(ret_value)
} /* H5Fget_page_buffering_stats() */
+
/*-------------------------------------------------------------------------
* Function: H5Fget_mdc_image_info
@@ -2116,14 +2115,14 @@ H5Fget_mdc_image_info(hid_t file_id, haddr_t *image_addr, hsize_t *image_len)
/* Check args */
if(NULL == (file = (H5F_t *)H5I_object_verify(file_id, H5I_FILE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "not a file ID")
-
if(NULL == image_addr || NULL == image_len)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "NULL image addr or image len")
/* Go get the address and size of the cache image */
if(H5AC_get_mdc_image_info(file->shared->cache, image_addr, image_len) < 0)
- HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "H5AC_get_mdc_image_info() failed.")
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTGET, FAIL, "can't retrieve cache image info")
done:
FUNC_LEAVE_API(ret_value)
} /* H5Fget_mdc_image_info() */
+