aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-07-05 10:47:14 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-07-05 11:27:52 -0700
commite0e36e3725b50ac690d1839f0e9476e93ff7988d (patch)
tree87d0ea7488478284a50d46769e692a8342801386 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent1ac3e13c3e4ab6816116a6e6997f81acf1039849 (diff)
downloadllvm-e0e36e3725b50ac690d1839f0e9476e93ff7988d.zip
llvm-e0e36e3725b50ac690d1839f0e9476e93ff7988d.tar.gz
llvm-e0e36e3725b50ac690d1839f0e9476e93ff7988d.tar.bz2
[lldb] Fix incorrect uses of LLDB_LOG_ERROR
Fix incorrect uses of LLDB_LOG_ERROR. The macro doesn't automatically inject the error in the log message: it merely passes the error as the first argument to formatv and therefore must be referenced with {0}. Thanks to Nicholas Allegra for collecting a list of places where the macro was misused. rdar://111581655 Differential revision: https://reviews.llvm.org/D154530
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 84d2010..522dee9 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -3430,7 +3430,7 @@ bool ProcessGDBRemote::StartAsyncThread() {
});
if (!async_thread) {
LLDB_LOG_ERROR(GetLog(LLDBLog::Host), async_thread.takeError(),
- "failed to launch host thread: {}");
+ "failed to launch host thread: {0}");
return false;
}
m_async_thread = *async_thread;