summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-04-17 19:51:58 +0000
committerKuba Mracek <mracek@apple.com>2017-04-17 19:51:58 +0000
commitcd07c23441ed62ecec244af61880ba05547d2a2a (patch)
tree4378d952e3b73b387deaa9689d0cdbed37c3e5b1 /lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
parent0f9f15db742f9abe6141df0819cd0fd577c06a3d (diff)
Fixup for r300473: Use %lu on Linux for tid_t in format strings.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc b/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
index 91ce58c25..81ff70963 100644
--- a/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
+++ b/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
@@ -126,10 +126,10 @@ 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 %d (errno %d).\n", tid, pterrno);
+ VReport(1, "Could not attach to thread %lu (errno %d).\n", tid, pterrno);
return false;
} else {
- VReport(2, "Attached to thread %d.\n", tid);
+ VReport(2, "Attached to thread %lu.\n", 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.
@@ -147,7 +147,7 @@ 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 %d failed, detaching (errno %d).\n",
+ VReport(1, "Waiting on thread %lu failed, detaching (errno %d).\n",
tid, wperrno);
internal_ptrace(PTRACE_DETACH, tid, nullptr, nullptr);
return false;