diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-07-05 10:47:14 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-07-05 11:27:52 -0700 |
commit | e0e36e3725b50ac690d1839f0e9476e93ff7988d (patch) | |
tree | 87d0ea7488478284a50d46769e692a8342801386 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 1ac3e13c3e4ab6816116a6e6997f81acf1039849 (diff) | |
download | llvm-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.cpp | 2 |
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; |