diff options
author | myang6 <myang6@hdfgroup.org> | 2021-10-15 18:29:19 (GMT) |
---|---|---|
committer | myang6 <myang6@hdfgroup.org> | 2021-10-15 18:29:19 (GMT) |
commit | 89cde3e0009bf2e97319ba3f36c100c97b6208e1 (patch) | |
tree | 8896cfb98ced41d3bfe87a1bf627ccab2a879a5e /test/vfd_swmr_common.c | |
parent | a45b73e4275b26505d8b659d1d807a654bb60df7 (diff) | |
download | hdf5-89cde3e0009bf2e97319ba3f36c100c97b6208e1.zip hdf5-89cde3e0009bf2e97319ba3f36c100c97b6208e1.tar.gz hdf5-89cde3e0009bf2e97319ba3f36c100c97b6208e1.tar.bz2 |
Test to just write a log file for H5Fopen. Add a testing routine vfd_swmr_log_writer.c.
Diffstat (limited to 'test/vfd_swmr_common.c')
-rw-r--r-- | test/vfd_swmr_common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/vfd_swmr_common.c b/test/vfd_swmr_common.c index f57f39a..f20f01e 100644 --- a/test/vfd_swmr_common.c +++ b/test/vfd_swmr_common.c @@ -369,6 +369,19 @@ init_vfd_swmr_config(H5F_vfd_swmr_config_t *config, uint32_t tick_len, uint32_t } /* init_vfd_swmr_config() */ +void +init_vfd_swmr_config_log(H5F_vfd_swmr_config_t *config, const char *log_file_fmtstr,...) + +{ + va_list ap; + + HDva_start(ap, log_file_fmtstr); + evsnprintf(config->log_file_path, sizeof(config->log_file_path), log_file_fmtstr, ap); + HDva_end(ap); + +} /* init_vfd_swmr_config() */ + + /* Perform common VFD SWMR configuration on the file-access property list: * configure page buffering, set reasonable VFD SWMR defaults. */ |