Skip to content

Commit

Permalink
Track s3 i/o when S3COMMS_DEBUG enabled (#3139)
Browse files Browse the repository at this point in the history
* Track s3 i/o when S3COMMS_DEBUG enabled
  • Loading branch information
mattjala authored Jun 16, 2023
1 parent 5e8a230 commit cef648e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/H5FDs3comms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
*******************/
Expand Down

0 comments on commit cef648e

Please sign in to comment.