summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/ubsan/ubsan_diag.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_diag.cc b/compiler-rt/lib/ubsan/ubsan_diag.cc
index 8a31494a495..57c98e669e9 100644
--- a/compiler-rt/lib/ubsan/ubsan_diag.cc
+++ b/compiler-rt/lib/ubsan/ubsan_diag.cc
@@ -83,7 +83,7 @@ static void renderLocation(Location Loc) {
Loc.getModuleLocation().getOffset());
break;
case Location::LK_Memory:
- Printf("0x%zx:", Loc.getMemoryLocation());
+ Printf("%p:", Loc.getMemoryLocation());
break;
case Location::LK_Null:
RawWrite("<unknown>:");
@@ -135,7 +135,7 @@ static void renderText(const char *Message, const Diag::Arg *Args) {
break;
}
case Diag::AK_Pointer:
- Printf("0x%zx", (uptr)A.Pointer);
+ Printf("%p", A.Pointer);
break;
}
}
OpenPOWER on IntegriCloud