summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-04-18 01:08:00 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-04-18 01:08:00 +0000
commit9fd4e9eb4e2a0ab3b3cb98f699c17153cd9a8ba9 (patch)
tree179f804ecd4fd64321c2e4ccf36083d20dae6fc4
parentb71bc44bf4323a04217e11ba8ebf7486e10f2dd9 (diff)
downloadbcm5719-llvm-9fd4e9eb4e2a0ab3b3cb98f699c17153cd9a8ba9.tar.gz
bcm5719-llvm-9fd4e9eb4e2a0ab3b3cb98f699c17153cd9a8ba9.zip
[asan] Fixup for r300483 (which is a fixup for r300473).
Sanitizer Printf() does not know about %lu. llvm-svn: 300521
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
index 91f798cd2f8..fb257fe0ae8 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
@@ -142,10 +142,11 @@ bool ThreadSuspender::SuspendThread(tid_t tid) {
&pterrno)) {
// Either the thread is dead, or something prevented us from attaching.
// Log this event and move on.
- VReport(1, "Could not attach to thread %lu (errno %d).\n", tid, pterrno);
+ VReport(1, "Could not attach to thread %zu (errno %d).\n", (uptr)tid,
+ pterrno);
return false;
} else {
- VReport(2, "Attached to thread %lu.\n", tid);
+ VReport(2, "Attached to thread %zu.\n", (uptr)tid);
// The thread is not guaranteed to stop before ptrace returns, so we must
// wait on it. Note: if the thread receives a signal concurrently,
// we can get notification about the signal before notification about stop.
@@ -163,8 +164,8 @@ bool ThreadSuspender::SuspendThread(tid_t tid) {
if (internal_iserror(waitpid_status, &wperrno)) {
// Got a ECHILD error. I don't think this situation is possible, but it
// doesn't hurt to report it.
- VReport(1, "Waiting on thread %lu failed, detaching (errno %d).\n",
- tid, wperrno);
+ VReport(1, "Waiting on thread %zu failed, detaching (errno %d).\n",
+ (uptr)tid, wperrno);
internal_ptrace(PTRACE_DETACH, tid, nullptr, nullptr);
return false;
}
OpenPOWER on IntegriCloud