[compiler-rt] [sanitizer_symbolizer] Use correct format strings for uptr (PR #89815)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 17:03:06 PDT 2024
================
@@ -26,20 +26,23 @@ constexpr const char *kFormatDemangle = "{{{symbol:%s}}}";
constexpr uptr kFormatDemangleMax = 1024; // Arbitrary.
// Function name or equivalent from PC location.
-constexpr const char *kFormatFunction = "{{{pc:%p}}}";
----------------
vitalybuka wrote:
if uptr used for pointer, it should be `%p` but printf arg should be caster to (void*)
if it 's uptr for size, then `%zx` (for hex), or `%zu` should be used
https://github.com/llvm/llvm-project/pull/89815
More information about the llvm-commits
mailing list