From b87826333c9da9baaf5d8e0691fc79dcf02853cb Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 8 Dec 2010 17:22:00 +0000 Subject: [PATCH] (trunk libT) #3806 "logging error in net.c" -- fixed. --- libtransmission/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/net.c b/libtransmission/net.c index 136428bb6..a7bc6a798 100644 --- a/libtransmission/net.c +++ b/libtransmission/net.c @@ -338,7 +338,7 @@ tr_netOpenPeerSocket( tr_session * session, if( ( tmperrno != ENETUNREACH && tmperrno != EHOSTUNREACH ) || addr->type == TR_AF_INET ) tr_err( _( "Couldn't connect socket %d to %s, port %d (errno %d - %s)" ), - s, tr_ntop_non_ts( addr ), (int)port, tmperrno, + s, tr_ntop_non_ts( addr ), (int)ntohs( port ), tmperrno, tr_strerror( tmperrno ) ); tr_netClose( session, s ); s = -tmperrno;