[compiler-rt] 8698160 - [NFC][memprof] Use %p to print addresses (#98577)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 21:55:38 PDT 2024
Author: Vitaly Buka
Date: 2024-07-11T21:55:35-07:00
New Revision: 8698160d1dedfb8bfa9dae094c14443c43b32a31
URL: https://github.com/llvm/llvm-project/commit/8698160d1dedfb8bfa9dae094c14443c43b32a31
DIFF: https://github.com/llvm/llvm-project/commit/8698160d1dedfb8bfa9dae094c14443c43b32a31.diff
LOG: [NFC][memprof] Use %p to print addresses (#98577)
Added:
Modified:
compiler-rt/lib/memprof/memprof_rtl.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/memprof/memprof_rtl.cpp b/compiler-rt/lib/memprof/memprof_rtl.cpp
index a87e8cefd6c40..cf4bde808bfad 100644
--- a/compiler-rt/lib/memprof/memprof_rtl.cpp
+++ b/compiler-rt/lib/memprof/memprof_rtl.cpp
@@ -152,7 +152,7 @@ void PrintAddressSpaceLayout() {
Printf("SHADOW_SCALE: %d\n", (int)SHADOW_SCALE);
Printf("SHADOW_GRANULARITY: %d\n", (int)SHADOW_GRANULARITY);
- Printf("SHADOW_OFFSET: 0x%zx\n", (uptr)SHADOW_OFFSET);
+ Printf("SHADOW_OFFSET: %p\n", (void *)SHADOW_OFFSET);
CHECK(SHADOW_SCALE >= 3 && SHADOW_SCALE <= 7);
}
More information about the llvm-commits
mailing list