From aa44aaee90dda304dab4024f9cc8fd7489dfcbea Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 6 May 2014 14:01:13 +0000 Subject: [PATCH] [sanitizer] Print addresses in hexadecimal. llvm-svn: 208089 --- compiler-rt/lib/sanitizer_common/sanitizer_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc index 1882b140c020..12d64ea068b1 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc @@ -136,7 +136,7 @@ void *MmapFixedNoReserve(uptr fixed_addr, uptr size) { int reserrno; if (internal_iserror(p, &reserrno)) Report("ERROR: %s failed to " - "allocate 0x%zx (%zd) bytes at address %zu (errno: %d)\n", + "allocate 0x%zx (%zd) bytes at address %zx (errno: %d)\n", SanitizerToolName, size, size, fixed_addr, reserrno); IncreaseTotalMmap(size); return (void *)p; @@ -152,7 +152,7 @@ void *MmapFixedOrDie(uptr fixed_addr, uptr size) { int reserrno; if (internal_iserror(p, &reserrno)) { Report("ERROR: %s failed to " - "allocate 0x%zx (%zd) bytes at address %zu (errno: %d)\n", + "allocate 0x%zx (%zd) bytes at address %zx (errno: %d)\n", SanitizerToolName, size, size, fixed_addr, reserrno); CHECK("unable to mmap" && 0); }