diff options
| author | Martin Liska <mliska@suse.cz> | 2021-11-04 08:54:14 +0100 |
|---|---|---|
| committer | Martin Liska <mliska@suse.cz> | 2021-11-05 13:12:35 +0100 |
| commit | 13a442ca494dcd177e8ea134e4f713c90f71bd42 (patch) | |
| tree | ccddb3eb9535481f198c39e1c24b76ea5f5aa760 /compiler-rt/lib/memprof/memprof_thread.cpp | |
| parent | c1e7911c3b36ba41c919eabddf4e745e3b473e53 (diff) | |
Enable -Wformat-pedantic and fix fallout.
Differential Revision: https://reviews.llvm.org/D113172
Diffstat (limited to 'compiler-rt/lib/memprof/memprof_thread.cpp')
| -rw-r--r-- | compiler-rt/lib/memprof/memprof_thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/memprof/memprof_thread.cpp b/compiler-rt/lib/memprof/memprof_thread.cpp index 296ae16bcce5..5bac23254e0f 100644 --- a/compiler-rt/lib/memprof/memprof_thread.cpp +++ b/compiler-rt/lib/memprof/memprof_thread.cpp @@ -131,7 +131,7 @@ void MemprofThread::Init(const InitOptions *options) { int local = 0; VReport(1, "T%d: stack [%p,%p) size 0x%zx; local=%p\n", tid(), (void *)stack_bottom_, (void *)stack_top_, stack_top_ - stack_bottom_, - &local); + (void *)&local); } thread_return_t @@ -198,7 +198,7 @@ MemprofThread *GetCurrentThread() { void SetCurrentThread(MemprofThread *t) { CHECK(t->context()); - VReport(2, "SetCurrentThread: %p for thread %p\n", t->context(), + VReport(2, "SetCurrentThread: %p for thread %p\n", (void *)t->context(), (void *)GetThreadSelf()); // Make sure we do not reset the current MemprofThread. CHECK_EQ(0, TSDGet()); |
