From 553c1b449e7c77cf143d587beb41deaa63282904 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 29 Oct 2021 16:01:17 +0000 Subject: Committing clang-format changes --- src/H5Fint.c | 2 +- src/H5Fpkg.h | 20 ++++++++++---------- src/H5Fvfd_swmr.c | 24 ++++++++++++------------ 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/H5Fint.c b/src/H5Fint.c index 0f2d71e..2937056 100644 --- a/src/H5Fint.c +++ b/src/H5Fint.c @@ -2025,7 +2025,7 @@ H5F_open(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id) HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, NULL, "unable to create the log file") if (H5_timer_init(&(shared->vfd_swmr_log_start_time)) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTGET, NULL, "can't initialize HDF5 timer.") - if (H5_timer_start(&(shared->vfd_swmr_log_start_time)) <0) + if (H5_timer_start(&(shared->vfd_swmr_log_start_time)) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTGET, NULL, "can't start HDF5 timer.") } } diff --git a/src/H5Fpkg.h b/src/H5Fpkg.h index 971d52a..3de5a84 100644 --- a/src/H5Fpkg.h +++ b/src/H5Fpkg.h @@ -469,16 +469,16 @@ struct H5F_shared_t { * manager */ /* Log file for VFD SWMR */ - FILE *vfd_swmr_log_file_ptr; /* File pointer for the - * log file. - */ - hbool_t vfd_swmr_log_on; /* flag to indicate if - * the log file is - * created. */ - H5_timer_t vfd_swmr_log_start_time; /* The starting time for - * calculating the time - * stamp of a log message. - */ + FILE *vfd_swmr_log_file_ptr; /* File pointer for the + * log file. + */ + hbool_t vfd_swmr_log_on; /* flag to indicate if + * the log file is + * created. */ + H5_timer_t vfd_swmr_log_start_time; /* The starting time for + * calculating the time + * stamp of a log message. + */ /* Delayed free space release doubly linked list */ shadow_defree_queue_t shadow_defrees; diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c index eb7a470..be3dbb6 100644 --- a/src/H5Fvfd_swmr.c +++ b/src/H5Fvfd_swmr.c @@ -799,10 +799,10 @@ H5F_vfd_swmr_writer_end_of_tick(H5F_t *f, hbool_t wait_for_reader) herr_t ret_value = SUCCEED; /* Return value */ hbool_t incr_tick = FALSE; - H5_timevals_t current_time; - double start_elapsed_time,end_elapsed_time; - unsigned int temp_time; - char * log_msg; + H5_timevals_t current_time; + double start_elapsed_time, end_elapsed_time; + unsigned int temp_time; + char * log_msg; FUNC_ENTER_NOAPI(FAIL) @@ -813,7 +813,7 @@ H5F_vfd_swmr_writer_end_of_tick(H5F_t *f, hbool_t wait_for_reader) /* Kent */ /* Obtain the starting time for the logging info: the processing time of this function. */ if (shared->vfd_swmr_log_on == true) { - if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time,¤t_time) < 0) + if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time, ¤t_time) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get H5_timer_get_times") start_elapsed_time = current_time.elapsed; } @@ -943,11 +943,11 @@ update_eot: done: /* Kent: Calcuate the processing time and write the time info to the log file */ if (shared->vfd_swmr_log_on == true) { - if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time,¤t_time) < 0) + if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time, ¤t_time) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get H5_timer_get_times") end_elapsed_time = current_time.elapsed; - log_msg = HDmalloc(48); - temp_time = (unsigned int)((end_elapsed_time - start_elapsed_time) * 1000); + log_msg = HDmalloc(48); + temp_time = (unsigned int)((end_elapsed_time - start_elapsed_time) * 1000); HDsprintf(log_msg, "Writer time is %u milliseconds", temp_time); H5F_POST_VFD_SWMR_LOG_ENTRY(f, 0, log_msg); HDfree(log_msg); @@ -1977,15 +1977,15 @@ done: void H5F_post_vfd_swmr_log_entry(H5F_t *f, int entry_type_code, char *log_info) { - double temp_time; - H5_timevals_t current_time; - char * gettime_error; + double temp_time; + H5_timevals_t current_time; + char * gettime_error; /* Obtain the current time. If failed, write an error message to the log file. else calcluate the elapsed time in seconds since the log file was created and write the time to the log file. */ - if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time,¤t_time) < 0) { + if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time, ¤t_time) < 0) { gettime_error = HDmalloc(14); HDsprintf(gettime_error, "gettime_error"); HDfprintf(f->shared->vfd_swmr_log_file_ptr, "%-26s: %s\n", H5Fvfd_swmr_log_tags[entry_type_code], -- cgit v0.12