[compiler-rt] r199879 - [sanitizer] Fix format string mismatches found by format attributes added in r199874.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Jan 23 02:57:08 PST 2014
Author: eugenis
Date: Thu Jan 23 04:57:08 2014
New Revision: 199879
URL: http://llvm.org/viewvc/llvm-project?rev=199879&view=rev
Log:
[sanitizer] Fix format string mismatches found by format attributes added in r199874.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc?rev=199879&r1=199878&r2=199879&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc Thu Jan 23 04:57:08 2014
@@ -107,7 +107,7 @@ void *MmapFixedNoReserve(uptr fixed_addr
int reserrno;
if (internal_iserror(p, &reserrno))
Report("ERROR: "
- "%s failed to allocate 0x%zx (%zd) bytes at address %p (%d)\n",
+ "%s failed to allocate 0x%zx (%zd) bytes at address %zu (%d)\n",
SanitizerToolName, size, size, fixed_addr, reserrno);
return (void *)p;
}
@@ -122,7 +122,7 @@ void *MmapFixedOrDie(uptr fixed_addr, up
int reserrno;
if (internal_iserror(p, &reserrno)) {
Report("ERROR:"
- " %s failed to allocate 0x%zx (%zd) bytes at address %p (%d)\n",
+ " %s failed to allocate 0x%zx (%zd) bytes at address %zu (%d)\n",
SanitizerToolName, size, size, fixed_addr, reserrno);
CHECK("unable to mmap" && 0);
}
@@ -223,7 +223,7 @@ void MaybeOpenReportFile() {
if (report_fd_pid == pid) return;
InternalScopedBuffer<char> report_path_full(4096);
internal_snprintf(report_path_full.data(), report_path_full.size(),
- "%s.%d", report_path_prefix, pid);
+ "%s.%zu", report_path_prefix, pid);
uptr openrv = OpenFile(report_path_full.data(), true);
if (internal_iserror(openrv)) {
report_fd = kStderrFd;
More information about the llvm-commits
mailing list