Skip to content

Commit

Permalink
[XrdClHttp] Fix wrong type of arguments to formatting function
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Nov 26, 2024
1 parent 8f1b9be commit 3e53e89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/XrdClHttp/XrdClHttpFilePlugIn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ XRootDStatus HttpFilePlugIn::Close(ResponseHandler *handler,
return XRootDStatus(stError, errInvalidOp);
}

logger_->Debug(kLogXrdClHttp, "Closing davix fd: %ld", davix_fd_);
logger_->Debug(kLogXrdClHttp, "Closing davix fd: %p", davix_fd_);

auto status = Posix::Close(*davix_client_, davix_fd_);
if (status.IsError()) {
logger_->Error(kLogXrdClHttp, "Could not close davix fd: %ld, error: %s",
logger_->Error(kLogXrdClHttp, "Could not close davix fd: %p, error: %s",
davix_fd_, status.ToStr().c_str());
return status;
}
Expand Down Expand Up @@ -272,7 +272,7 @@ XRootDStatus HttpFilePlugIn::Read(uint64_t offset, uint32_t size, void *buffer,
curr_offset = offset + num_bytes_read;
if (avoid_pread_) offset_locker.unlock();

logger_->Debug(kLogXrdClHttp, "Read %d bytes, at offset %d, from URL: %s",
logger_->Debug(kLogXrdClHttp, "Read %d bytes, at offset %llu, from URL: %s",
num_bytes_read, offset, url_.c_str());

auto status = new XRootDStatus();
Expand Down Expand Up @@ -369,7 +369,7 @@ XRootDStatus HttpFilePlugIn::Write(uint64_t offset, uint32_t size,
else
filesize += res.first;

logger_->Debug(kLogXrdClHttp, "Wrote %d bytes, at offset %d, to URL: %s",
logger_->Debug(kLogXrdClHttp, "Wrote %d bytes, at offset %llu, to URL: %s",
res.first, offset, url_.c_str());

handler->HandleResponse(new XRootDStatus(), nullptr);
Expand Down

0 comments on commit 3e53e89

Please sign in to comment.