From 6d874252f398765700dc463db1de8a6857046a88 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:28:16 +0000 Subject: [PATCH] Committing clang-format changes --- src/H5FDsubfiling/H5FDsubfiling.c | 20 +++++++++++--------- testpar/t_subfiling_vfd.c | 4 ++-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/H5FDsubfiling/H5FDsubfiling.c b/src/H5FDsubfiling/H5FDsubfiling.c index eddf5852a0b..796654254ad 100644 --- a/src/H5FDsubfiling/H5FDsubfiling.c +++ b/src/H5FDsubfiling/H5FDsubfiling.c @@ -202,8 +202,8 @@ static herr_t H5FD__subfiling_generate_io_vectors(subfiling_context_t *sf_contex haddr_t **io_addrs_out, size_t **io_sizes_out, H5_flexible_const_ptr_t **io_bufs_out); static herr_t H5FD__subfiling_get_iovec_sizes(subfiling_context_t *sf_context, size_t in_count, - haddr_t file_offsets[], size_t io_sizes[], size_t *max_iovec_depth, - size_t *max_num_subfiles); + haddr_t file_offsets[], size_t io_sizes[], + size_t *max_iovec_depth, size_t *max_num_subfiles); static herr_t H5FD__subfiling_translate_io_req_to_iovec( subfiling_context_t *sf_context, size_t iovec_idx, size_t iovec_len, size_t iovec_count, H5FD_mem_t type, haddr_t addr, size_t io_size, H5_flexible_const_ptr_t io_buf, H5FD_subfiling_io_type_t io_type, @@ -2370,8 +2370,9 @@ static herr_t H5FD__subfiling_generate_io_vectors(subfiling_context_t *sf_context, size_t in_count, H5FD_mem_t types[], haddr_t file_offsets[], size_t io_sizes[], H5_flexible_const_ptr_t bufs[], H5FD_subfiling_io_type_t io_type, size_t *ioreq_count_out, - uint32_t *iovec_len_out, H5FD_mem_t **io_types_out, haddr_t **io_addrs_out, - size_t **io_sizes_out, H5_flexible_const_ptr_t **io_bufs_out) + uint32_t *iovec_len_out, H5FD_mem_t **io_types_out, + haddr_t **io_addrs_out, size_t **io_sizes_out, + H5_flexible_const_ptr_t **io_bufs_out) { H5_flexible_const_ptr_t *loc_io_bufs = NULL; H5FD_mem_t *loc_io_types = NULL; @@ -2416,8 +2417,8 @@ H5FD__subfiling_generate_io_vectors(subfiling_context_t *sf_context, size_t in_c * Do some initial pre-processing to determine how large of I/O vectors we * will need to allocate to satisfy the entire I/O request */ - if (H5FD__subfiling_get_iovec_sizes(sf_context, in_count, file_offsets, io_sizes, - &max_iovec_depth, &max_num_subfiles_touched) < 0) + if (H5FD__subfiling_get_iovec_sizes(sf_context, in_count, file_offsets, io_sizes, &max_iovec_depth, + &max_num_subfiles_touched) < 0) HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, "can't determine maximum I/O request size"); tot_iovec_len = in_count * max_iovec_depth * max_num_subfiles_touched; @@ -2556,11 +2557,12 @@ H5FD__subfiling_get_iovec_sizes(subfiling_context_t *sf_context, size_t in_count H5_CHECKED_ASSIGN(data_size, int64_t, io_size, size_t); if (cur_file_offset < 0) - HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL, "file offset of %" PRIuHADDR " at index %zu too large; wrapped around", - file_offsets[io_idx], io_idx); + HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL, + "file offset of %" PRIuHADDR " at index %zu too large; wrapped around", + file_offsets[io_idx], io_idx); if (data_size < 0) HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL, "I/O size of %zu at index %zu too large; wrapped around", - io_size, io_idx); + io_size, io_idx); /* * Calculate the following from the starting file offset: diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c index 4cb4109d179..aa2da851eaa 100644 --- a/testpar/t_subfiling_vfd.c +++ b/testpar/t_subfiling_vfd.c @@ -2575,8 +2575,8 @@ test_subfiling_write_many_read_few(void) * array wasn't being extended when an entry in the * array was 0. */ -#define SUBF_FILENAME "test_subfiling_vector_io_extension.h5" -#define SUBF_C_TYPE int +#define SUBF_FILENAME "test_subfiling_vector_io_extension.h5" +#define SUBF_C_TYPE int static void test_subfiling_vector_io_extension(void) {