summaryrefslogtreecommitdiff
path: root/absl/debugging
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2022-09-08 14:41:01 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-09-08 14:41:38 -0700
commit0a066f31d981d69f7bde961055691906dabd4a3c (patch)
treeeb07298f14e411cb74bf05822020f937b33de6c2 /absl/debugging
parent5b01512e94e82bf111df3968784c9508e576a4da (diff)
Fix format string error with an explicit cast
PiperOrigin-RevId: 473088472 Change-Id: If4fb8354490821cbaf53743f51bf0b0d2ba85895
Diffstat (limited to 'absl/debugging')
-rw-r--r--absl/debugging/symbolize_elf.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/absl/debugging/symbolize_elf.inc b/absl/debugging/symbolize_elf.inc
index 38092f56..1506f439 100644
--- a/absl/debugging/symbolize_elf.inc
+++ b/absl/debugging/symbolize_elf.inc
@@ -762,10 +762,9 @@ static ABSL_ATTRIBUTE_NOINLINE FindSymbolResult FindSymbol(
const ssize_t n_read = ReadFromOffset(fd, out, out_size, off);
if (n_read <= 0) {
// This should never happen.
- ABSL_RAW_LOG(
- WARNING,
- "Unable to read from fd %d at offset %" PRId64 ": n_read = %zd", fd,
- off, n_read);
+ ABSL_RAW_LOG(WARNING,
+ "Unable to read from fd %d at offset %lld: n_read = %zd", fd,
+ static_cast<long long>(off), n_read);
return SYMBOL_NOT_FOUND;
}
ABSL_RAW_CHECK(static_cast<size_t>(n_read) <= out_size,