Skip to content

Commit

Permalink
Merge pull request #21 from bbockelm/printf_format
Browse files Browse the repository at this point in the history
Fix format strings across multiple platforms with differing off_t def…
  • Loading branch information
bbockelm authored Jan 3, 2025
2 parents f1002a4 + df3b4d8 commit 64dbfe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PelicanFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ File::Read(uint64_t offset,
}

auto ts = GetHeaderTimeout(timeout);
m_logger->Debug(kLogXrdClPelican, "Read %s (%d bytes at offset %d with timeout %d)", url.c_str(), size, offset, ts.tv_sec);
m_logger->Debug(kLogXrdClPelican, "Read %s (%d bytes at offset %lld with timeout %lld)", url.c_str(), size, static_cast<long long>(offset), static_cast<long long>(ts.tv_sec));

std::unique_ptr<CurlReadOp> readOp(new CurlReadOp(handler, url, ts, std::make_pair(offset, size), static_cast<char*>(buffer), m_logger));
std::string broker;
Expand Down Expand Up @@ -275,7 +275,7 @@ File::PgRead(uint64_t offset,
}

auto ts = GetHeaderTimeout(timeout);
m_logger->Debug(kLogXrdClPelican, "PgRead %s (%d bytes at offset %lld)", url.c_str(), size, offset);
m_logger->Debug(kLogXrdClPelican, "PgRead %s (%d bytes at offset %lld)", url.c_str(), size, static_cast<long long>(offset));

std::unique_ptr<CurlPgReadOp> readOp(new CurlPgReadOp(handler, url, ts, std::make_pair(offset, size), static_cast<char*>(buffer), m_logger));
std::string broker;
Expand Down

0 comments on commit 64dbfe4

Please sign in to comment.