diff options
author | Pavel Labath <labath@google.com> | 2017-07-05 14:54:46 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-07-05 14:54:46 +0000 |
commit | ef7aff507b81f49bae7529f65a545bc8b643efc0 (patch) | |
tree | b9c24c75512e42018f710d78c77332a7c12018d9 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | d37c9469918290636cdda5684155e0be777d2ee1 (diff) | |
download | llvm-ef7aff507b81f49bae7529f65a545bc8b643efc0.zip llvm-ef7aff507b81f49bae7529f65a545bc8b643efc0.tar.gz llvm-ef7aff507b81f49bae7529f65a545bc8b643efc0.tar.bz2 |
Fix assorted compiler warnings (mismatched signedness and printf specifiers)
llvm-svn: 307161
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 687187b..6a933df 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -161,9 +161,9 @@ public: // List the common thread ID's const std::vector<uint32_t> &thread_index_ids = stack.GetUniqueThreadIndexIDs(); - strm.Printf("%lu thread(s) ", thread_index_ids.size()); + strm.Format("{0} thread(s) ", thread_index_ids.size()); for (const uint32_t &thread_index_id : thread_index_ids) { - strm.Printf("#%u ", thread_index_id); + strm.Format("#{0} ", thread_index_id); } strm.EOL(); @@ -209,7 +209,7 @@ protected: Process *process = m_exe_ctx.GetProcessPtr(); Thread *thread = process->GetThreadList().FindThreadByID(tid).get(); if (thread == nullptr) { - result.AppendErrorWithFormat("Failed to process thread# %llu.\n", tid); + result.AppendErrorWithFormatv("Failed to process thread #{0}.\n", tid); result.SetStatus(eReturnStatusFailed); return false; } |