fix non-openssl logging build

This commit is contained in:
Arvid Norberg 2011-09-21 03:51:07 +00:00
parent 27ec2e1678
commit 61ceacca9b
1 changed files with 6 additions and 3 deletions

View File

@ -207,9 +207,12 @@ namespace libtorrent
peer_log(">>> %s [ ep: %s transport: %s seed: %d p: %p ]" peer_log(">>> %s [ ep: %s transport: %s seed: %d p: %p ]"
, outgoing ? "OUTGOING_CONNECTION" : "INCOMING CONNECTION" , outgoing ? "OUTGOING_CONNECTION" : "INCOMING CONNECTION"
, print_endpoint(m_remote).c_str() , print_endpoint(m_remote).c_str()
, m_socket->get<ssl_stream<stream_socket> >() ? "SSL/TCP" ,
: m_socket->get<ssl_stream<utp_stream> >() ? "SSL/uTP" #ifdef TORRENT_USE_OPENSSL
: m_socket->get<utp_stream>() ? "uTP" : "TCP" m_socket->get<ssl_stream<stream_socket> >() ? "SSL/TCP" :
m_socket->get<ssl_stream<utp_stream> >() ? "SSL/uTP" :
#endif
m_socket->get<utp_stream>() ? "uTP" : "TCP"
, m_peer_info ? m_peer_info->seed : 0, m_peer_info); , m_peer_info ? m_peer_info->seed : 0, m_peer_info);
#endif #endif
#ifdef TORRENT_DEBUG #ifdef TORRENT_DEBUG