summaryrefslogtreecommitdiffstats
path: root/src/H5FDlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r--src/H5FDlog.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index fdc2c92..b35dcf3 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -229,17 +229,22 @@ H5FL_DEFINE_STATIC(H5FD_log_t);
*
* Purpose: Initializes any interface-specific data or routines.
*
- * Return: Success: The driver ID for the log driver.
- * Failure: Negative.
+ * Return: Non-negative on success/Negative on failure
*
*-------------------------------------------------------------------------
*/
static herr_t
H5FD_log_init_interface(void)
{
- FUNC_ENTER_NOAPI_NOINIT_NOERR
+ herr_t ret_value = SUCCEED;
+
+ FUNC_ENTER_NOAPI_NOINIT
+
+ if(H5FD_log_init() < 0)
+ HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "unable to initialize log VFD")
- FUNC_LEAVE_NOAPI(H5FD_log_init())
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
} /* H5FD_log_init_interface() */