Skip to content

Commit bf76978

Browse files
committed
Fix the naming of mcp::Transport in lldb-mcp.cpp as well.
1 parent de46168 commit bf76978

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/tools/lldb-mcp/lldb-mcp.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ int main(int argc, char *argv[]) {
6767
[](MainLoopBase &loop) { loop.RequestTermination(); });
6868
});
6969

70-
auto transport_up = std::make_unique<lldb_protocol::mcp::MCPTransport>(
71-
input, output, std::string(client_name),
72-
[&](llvm::StringRef message) { llvm::errs() << message << '\n'; });
70+
auto transport_up = std::make_unique<lldb_protocol::mcp::Transport>(
71+
input, output, [&](llvm::StringRef message) {
72+
llvm::errs() << formatv("{0}: {1}", client_name, message) << '\n';
73+
});
7374

7475
auto instance_up = std::make_unique<lldb_protocol::mcp::Server>(
7576
std::string(kName), std::string(kVersion), std::move(transport_up), loop);

0 commit comments

Comments
 (0)