summaryrefslogtreecommitdiff
path: root/lldb/source/Target/ScriptedThreadPlan.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2024-10-10 09:53:45 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2024-10-10 09:56:31 -0700
commitf2c5aa920054fa60372a161520e6ea8e8d23880d (patch)
treeb74b59fc314d6d21cba6a1ca2254198c07a584a7 /lldb/source/Target/ScriptedThreadPlan.cpp
parentcc9e7cb99b63559c5baf7e380287e5658c412370 (diff)
[lldb] Fix a variety of LLDB_LOG format strings
LLVM now triggers an assertion when the format string and arguments don't match. Fix a variety of incorrect format strings I discovered when enabling logging with a debug build.
Diffstat (limited to 'lldb/source/Target/ScriptedThreadPlan.cpp')
-rw-r--r--lldb/source/Target/ScriptedThreadPlan.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Target/ScriptedThreadPlan.cpp b/lldb/source/Target/ScriptedThreadPlan.cpp
index a8432f12258e..c4bdc8d080e3 100644
--- a/lldb/source/Target/ScriptedThreadPlan.cpp
+++ b/lldb/source/Target/ScriptedThreadPlan.cpp
@@ -184,8 +184,9 @@ void ScriptedThreadPlan::GetDescription(Stream *s,
lldb::StreamSP stream = std::make_shared<lldb_private::StreamString>();
llvm::Error err = m_interface->GetStopDescription(stream);
if (err) {
- LLDB_LOG_ERROR(GetLog(LLDBLog::Thread), std::move(err),
- "Can't call ScriptedThreadPlan::GetStopDescription.");
+ LLDB_LOG_ERROR(
+ GetLog(LLDBLog::Thread), std::move(err),
+ "Can't call ScriptedThreadPlan::GetStopDescription: {0}");
s->Printf("Scripted thread plan implemented by class %s.",
m_class_name.c_str());
} else