Skip to content

Commit b83c816

Browse files
committed
Addressing reviewer feedback.
1 parent 343171d commit b83c816

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lldb/tools/lldb-dap/DAPLog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ void Log::Emit(StringRef message) { Emit(message, "", 0); }
2222

2323
void Log::Emit(StringRef message, StringRef file, size_t line) {
2424
std::lock_guard<Log::Mutex> lock(m_mutex);
25-
std::lock_guard<std::mutex> lock(m_mutex);
2625
const llvm::sys::TimePoint<> time = std::chrono::system_clock::now();
2726
m_stream << formatv("[{0:%H:%M:%S.%L}]", time) << " ";
2827
if (!file.empty())

lldb/tools/lldb-dap/tool/lldb-dap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ validateConnection(llvm::StringRef conn) {
409409
}
410410

411411
static llvm::Error serveConnection(
412-
const Socket::SocketProtocol &protocol, const std::string &name, Log &log,
412+
const Socket::SocketProtocol &protocol, llvm::StringRef name, Log &log,
413413
const ReplMode default_repl_mode,
414414
const std::vector<std::string> &pre_init_commands, bool no_lldbinit,
415415
std::optional<std::chrono::seconds> connection_timeout_seconds) {

0 commit comments

Comments
 (0)