diff options
Diffstat (limited to 'src/H5AClog.c')
-rw-r--r-- | src/H5AClog.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/H5AClog.c b/src/H5AClog.c index 1461738..fc96f9a 100644 --- a/src/H5AClog.c +++ b/src/H5AClog.c @@ -596,7 +596,7 @@ done: herr_t H5AC__write_protect_entry_log_msg(const H5AC_t *cache, const H5AC_info_t *entry, - H5AC_protect_t rw, + unsigned flags, herr_t fxn_ret_value) { char msg[MSG_SIZE]; @@ -610,12 +610,10 @@ H5AC__write_protect_entry_log_msg(const H5AC_t *cache, HDassert(cache->magic == H5C__H5C_T_MAGIC); HDassert(entry); - if(H5AC_READ == rw) + if(H5AC__READ_ONLY_FLAG == flags) HDstrcpy(rw_s, "READ"); - else if(H5AC_WRITE == rw) + else HDstrcpy(rw_s, "WRITE"); - else - HDstrcpy(rw_s, "UNKNOWN"); /* Create the log message string */ HDsnprintf(msg, MSG_SIZE, |