@@ -187,7 +187,9 @@ herr_t readLSConf(char *fname, cache_storage_t *LS) {
187187 if (get_replacement_policy_from_str (mac ) > 0 )
188188 LS -> replacement_policy = get_replacement_policy_from_str (mac );
189189 } else {
190- LOG_WARN (-1 , "Unknown configuration setup:" , ip );
190+ snprintf (error_msg , ERROR_MSG_SIZE , "Unknown configuration setup: %s" ,
191+ ip );
192+ LOG_WARN (-1 , "%s" , error_msg );
191193 }
192194 }
193195 if (LS -> mspace_total < LS -> write_buffer_size ) {
@@ -202,7 +204,7 @@ herr_t readLSConf(char *fname, cache_storage_t *LS) {
202204 struct stat sb ;
203205 if (strcmp (LS -> type , "GPU" ) == 0 || strcmp (LS -> type , "MEMORY" ) == 0 ||
204206 (stat (LS -> path , & sb ) == 0 && S_ISDIR (sb .st_mode ))) {
205- return 0 ;
207+ return SUCCEED ;
206208 } else {
207209 int ret = snprintf (error_msg , ERROR_MSG_SIZE ,
208210 "H5LSset: path %s does not exist\n" , LS -> path );
@@ -212,6 +214,7 @@ herr_t readLSConf(char *fname, cache_storage_t *LS) {
212214 LOG_ERROR (-1 , "%s" , error_msg );
213215 MPI_Abort (MPI_COMM_WORLD , 112 );
214216 }
217+ return SUCCEED ;
215218}
216219
217220/*-------------------------------------------------------------------------
@@ -295,14 +298,15 @@ herr_t H5LSset(cache_storage_t *LS, char *type, char *path,
295298 struct stat sb ;
296299 if (strcmp (type , "GPU" ) == 0 || strcmp (type , "MEMORY" ) == 0 ||
297300 (stat (path , & sb ) == 0 && S_ISDIR (sb .st_mode ))) {
298- return 0 ;
301+ return SUCCEED ;
299302 } else {
300303 LOG_ERROR (-1 ,
301304 "ERROR in name space for cache storage: %s does "
302305 "not exist\n" ,
303306 path );
304307 MPI_Abort (MPI_COMM_WORLD , EXIT_FAILURE );
305308 }
309+ return SUCCEED ;
306310} /* end H5LSset */
307311
308312/*-------------------------------------------------------------------------
@@ -451,7 +455,7 @@ herr_t H5LSclaim_space(cache_storage_t *LS, hsize_t size, cache_claim_t type,
451455 }
452456 }
453457
454- return 0 ;
458+ return SUCCEED ;
455459}
456460
457461/*-------------------------------------------------------------------------
@@ -490,7 +494,7 @@ herr_t H5LSremove_cache(cache_storage_t *LS, cache_t *cache) {
490494#ifndef NDEBUG
491495 LOG_INFO (-1 , "H5LSremove_space DONE" );
492496#endif
493- return 0 ;
497+ return SUCCEED ;
494498} /* end H5LSremove_cache() */
495499
496500/*-------------------------------------------------------------------------
0 commit comments