summaryrefslogtreecommitdiffstats
path: root/src/H5Fvfd_swmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Fvfd_swmr.c')
-rw-r--r--src/H5Fvfd_swmr.c24
1 files changed, 12 insertions, 12 deletions
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,&current_time) < 0)
+ if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time, &current_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,&current_time) < 0)
+ if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time, &current_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,&current_time) < 0) {
+ if (H5_timer_get_times(f->shared->vfd_swmr_log_start_time, &current_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],