[compiler-rt] r300483 - Fixup for r300473: Use %lu on Linux for tid_t in format strings.
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 17 12:51:58 PDT 2017
Author: kuba.brecka
Date: Mon Apr 17 14:51:58 2017
New Revision: 300483
URL: http://llvm.org/viewvc/llvm-project?rev=300483&view=rev
Log:
Fixup for r300473: Use %lu on Linux for tid_t in format strings.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc?rev=300483&r1=300482&r2=300483&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc Mon Apr 17 14:51:58 2017
@@ -126,10 +126,10 @@ bool ThreadSuspender::SuspendThread(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_
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;
More information about the llvm-commits
mailing list