Commit 0a066f31 by Derek Mauro Committed by Copybara-Service

Fix format string error with an explicit cast

PiperOrigin-RevId: 473088472
Change-Id: If4fb8354490821cbaf53743f51bf0b0d2ba85895
parent 5b01512e
...@@ -762,10 +762,9 @@ static ABSL_ATTRIBUTE_NOINLINE FindSymbolResult FindSymbol( ...@@ -762,10 +762,9 @@ static ABSL_ATTRIBUTE_NOINLINE FindSymbolResult FindSymbol(
const ssize_t n_read = ReadFromOffset(fd, out, out_size, off); const ssize_t n_read = ReadFromOffset(fd, out, out_size, off);
if (n_read <= 0) { if (n_read <= 0) {
// This should never happen. // This should never happen.
ABSL_RAW_LOG( ABSL_RAW_LOG(WARNING,
WARNING, "Unable to read from fd %d at offset %lld: n_read = %zd", fd,
"Unable to read from fd %d at offset %" PRId64 ": n_read = %zd", fd, static_cast<long long>(off), n_read);
off, n_read);
return SYMBOL_NOT_FOUND; return SYMBOL_NOT_FOUND;
} }
ABSL_RAW_CHECK(static_cast<size_t>(n_read) <= out_size, ABSL_RAW_CHECK(static_cast<size_t>(n_read) <= out_size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment