summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-28 22:36:55 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-28 22:36:55 (GMT)
commitb233408fe85d7b469d5912a421bf5b2ea3e69cf4 (patch)
treeea1318945d45d32ed71a7d5c9d68df1cbf271bee /src/H5FDvfd_swmr.c
parentac4afca0c20239bc2e6227dea6d7854769834822 (diff)
downloadhdf5-b233408fe85d7b469d5912a421bf5b2ea3e69cf4.zip
hdf5-b233408fe85d7b469d5912a421bf5b2ea3e69cf4.tar.gz
hdf5-b233408fe85d7b469d5912a421bf5b2ea3e69cf4.tar.bz2
Move the `swmr` log-outlet declaration to H5FDvfd_swmr_private.h and use `swmr`
as the parent outlet of a new outlet for messages about the motion of the shadow index.
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r--src/H5FDvfd_swmr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index 6b63700..5c81b16 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -87,6 +87,8 @@ static htri_t H5FD__vfd_swmr_index_deserialize(const H5FD_t *_file,
H5FD_vfd_swmr_md_index *md_index, const H5FD_vfd_swmr_md_header *md_header);
static herr_t H5FD__vfd_swmr_load_hdr_and_idx(H5FD_t *_file, hbool_t open);
+HLOG_OUTLET_SHORT_DEFN(index_motion, swmr);
+
static const H5FD_class_t H5FD_vfd_swmr_g = {
"vfd_swmr", /* name */
MAXADDR, /* maxaddr */
@@ -1082,7 +1084,7 @@ H5FD__vfd_swmr_load_hdr_and_idx(H5FD_t *_file, hbool_t open)
HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL, "could not read header");
if (md_header.index_offset != last_index_offset) {
- fprintf(stderr, "index offset %" PRIu64 "\n",
+ hlog_fast(index_motion, "index offset changed %" PRIu64 "\n",
md_header.index_offset);
last_index_offset = md_header.index_offset;
}