summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattjala <124107509+mattjala@users.noreply.github.com>2023-06-16 16:04:44 (GMT)
committerGitHub <noreply@github.com>2023-06-16 16:04:44 (GMT)
commitcef648eb14e9e611c81e710318924c27445878d8 (patch)
tree5192301b16505f3eee0a1b896326c29258e8c2c0
parent5e8a230619fc06b213fc2ad66b4a70f52429b68d (diff)
downloadhdf5-cef648eb14e9e611c81e710318924c27445878d8.zip
hdf5-cef648eb14e9e611c81e710318924c27445878d8.tar.gz
hdf5-cef648eb14e9e611c81e710318924c27445878d8.tar.bz2
Track s3 i/o when S3COMMS_DEBUG enabled (#3139)
* Track s3 i/o when S3COMMS_DEBUG enabled
-rw-r--r--src/H5FDs3comms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5FDs3comms.c b/src/H5FDs3comms.c
index d91d3b9..d61b6f4 100644
--- a/src/H5FDs3comms.c
+++ b/src/H5FDs3comms.c
@@ -1281,6 +1281,11 @@ H5FD_s3comms_s3r_read(s3r_t *handle, haddr_t offset, size_t len, void *dest)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "unable to format HTTP Range value");
}
+#if S3COMMS_DEBUG
+ HDfprintf(stderr, "%s: Bytes %" PRIuHADDR " - %" PRIuHADDR ", Request Size: %zu\n", handle->httpverb,
+ offset, offset + len, len);
+#endif
+
/*******************
* COMPILE REQUEST *
*******************/