[libunwind] Fix -Wformat diagnostic after #190965 (PR #193704)
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 23 02:48:55 PDT 2026
https://github.com/alexfh created https://github.com/llvm/llvm-project/pull/193704
Fixes libunwind compiler diagnostic when building with clang after 034d4dcad6396d1241e8262e69871b8d61da7e4f
>From 49c4c43971451f20e7339942f48bccf2b9004ba8 Mon Sep 17 00:00:00 2001
From: Alexander Kornienko <alexfh at google.com>
Date: Thu, 23 Apr 2026 11:47:49 +0200
Subject: [PATCH] Fix -Wformat diagnostic after #190965
---
libunwind/src/CompactUnwinder.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libunwind/src/CompactUnwinder.hpp b/libunwind/src/CompactUnwinder.hpp
index cd2e0e3431314..93a0b6c085294 100644
--- a/libunwind/src/CompactUnwinder.hpp
+++ b/libunwind/src/CompactUnwinder.hpp
@@ -335,7 +335,7 @@ int CompactUnwinder_x86_64<A>::stepWithCompactEncodingRBPFrame(
default:
(void)functionStart;
_LIBUNWIND_DEBUG_LOG("bad register for RBP frame, encoding=%08X for "
- "function starting at 0x%llX",
+ "function starting at 0x%" PRIu64 "X",
compactEncoding, functionStart);
_LIBUNWIND_ABORT("invalid compact unwind encoding");
}
@@ -454,7 +454,7 @@ int CompactUnwinder_x86_64<A>::stepWithCompactEncodingFrameless(
break;
default:
_LIBUNWIND_DEBUG_LOG("bad register for frameless, encoding=%08X for "
- "function starting at 0x%llX",
+ "function starting at 0x%" PRIu64 "X",
encoding, functionStart);
_LIBUNWIND_ABORT("invalid compact unwind encoding");
}
More information about the cfe-commits
mailing list