[Lldb-commits] [PATCH] D154532: [lldb] Fix incorrect uses of formatv specifiers in LLDB_LOG
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 5 11:16:16 PDT 2023
bulbazord added a comment.
These uses of `LLDB_LOG` are taking errors, consuming them while turning them into strings, and logging them. Unless I'm missing something, I think it would make more sense to convert these to use `LLDB_LOG_ERROR`.
================
Comment at: lldb/source/Core/Debugger.cpp:1918-1919
} else {
- LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {}",
+ LLDB_LOG(GetLog(LLDBLog::Host), "failed to launch host thread: {0}",
llvm::toString(event_handler_thread.takeError()));
}
----------------
Same here.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154532/new/
https://reviews.llvm.org/D154532
More information about the lldb-commits
mailing list