summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-04-19 07:42:08 +0000
committerDmitry Vyukov <dvyukov@google.com>2018-04-19 07:42:08 +0000
commit4132b849e55ced071f83984548a3d922913806b5 (patch)
treef2f87fb078aaafea9a720c1311c6bd7ae5238cb3 /compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
parent50d8702f2604f6e834e317839a92a595d02b6a0a (diff)
downloadbcm5719-llvm-4132b849e55ced071f83984548a3d922913806b5.tar.gz
bcm5719-llvm-4132b849e55ced071f83984548a3d922913806b5.zip
tsan: fix compiler warnings
vmaSize is uptr, so we need to print it with %zd. llvm-svn: 330312
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
index 79928ac6c75..041a09fd9e2 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
@@ -213,20 +213,20 @@ void InitializePlatformEarly() {
#if defined(__aarch64__)
if (vmaSize != 39 && vmaSize != 42 && vmaSize != 48) {
Printf("FATAL: ThreadSanitizer: unsupported VMA range\n");
- Printf("FATAL: Found %d - Supported 39, 42 and 48\n", vmaSize);
+ Printf("FATAL: Found %zd - Supported 39, 42 and 48\n", vmaSize);
Die();
}
#elif defined(__powerpc64__)
# if !SANITIZER_GO
if (vmaSize != 44 && vmaSize != 46 && vmaSize != 47) {
Printf("FATAL: ThreadSanitizer: unsupported VMA range\n");
- Printf("FATAL: Found %d - Supported 44, 46, and 47\n", vmaSize);
+ Printf("FATAL: Found %zd - Supported 44, 46, and 47\n", vmaSize);
Die();
}
# else
if (vmaSize != 46 && vmaSize != 47) {
Printf("FATAL: ThreadSanitizer: unsupported VMA range\n");
- Printf("FATAL: Found %d - Supported 46, and 47\n", vmaSize);
+ Printf("FATAL: Found %zd - Supported 46, and 47\n", vmaSize);
Die();
}
# endif
OpenPOWER on IntegriCloud