[Lldb-commits] [lldb] r243175 - Log socket communications to LIBLLDB_LOG_COMMUNICATION instead of
Jason Molenda
jmolenda at apple.com
Fri Jul 24 15:42:03 PDT 2015
Author: jmolenda
Date: Fri Jul 24 17:42:03 2015
New Revision: 243175
URL: http://llvm.org/viewvc/llvm-project?rev=243175&view=rev
Log:
Log socket communications to LIBLLDB_LOG_COMMUNICATION instead of
the Host channel.
http://reviews.llvm.org/D11497
Modified:
lldb/trunk/source/Host/common/Socket.cpp
Modified: lldb/trunk/source/Host/common/Socket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Socket.cpp?rev=243175&r1=243174&r2=243175&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Socket.cpp (original)
+++ lldb/trunk/source/Host/common/Socket.cpp Fri Jul 24 17:42:03 2015
@@ -139,7 +139,7 @@ Error Socket::TcpConnect(llvm::StringRef
NativeSocket sock = kInvalidSocketValue;
Error error;
- Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_HOST));
+ Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION));
if (log)
log->Printf ("Socket::TcpConnect (host/port = %s)", host_and_port.data());
@@ -632,7 +632,7 @@ Error Socket::Read (void *buf, size_t &n
else
num_bytes = bytes_received;
- Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_HOST | LIBLLDB_LOG_COMMUNICATION));
+ Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION));
if (log)
{
log->Printf ("%p Socket::Read() (socket = %" PRIu64 ", src = %p, src_len = %" PRIu64 ", flags = 0) => %" PRIi64 " (error = %s)",
@@ -674,7 +674,7 @@ Error Socket::Write (const void *buf, si
else
num_bytes = bytes_sent;
- Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_HOST));
+ Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION));
if (log)
{
log->Printf ("%p Socket::Write() (socket = %" PRIu64 ", src = %p, src_len = %" PRIu64 ", flags = 0) => %" PRIi64 " (error = %s)",
More information about the lldb-commits
mailing list