From 17d1210b95134bc84fa8d5ab6a77ca0e4b37bb4a Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 25 Jul 2011 19:53:39 +0000 Subject: [PATCH] Reword debugging messages for the IPv4 DHT. The IPv6 DHT is no longer expermiental, no need for the asymmetry. --- libtransmission/tr-dht.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libtransmission/tr-dht.c b/libtransmission/tr-dht.c index a2e5bc317..441a0c455 100644 --- a/libtransmission/tr-dht.c +++ b/libtransmission/tr-dht.c @@ -150,7 +150,7 @@ dht_bootstrap(void *closure) return; if(cl->len > 0) - tr_ninf( "DHT", "Bootstrapping from %d nodes", num ); + tr_ninf( "DHT", "Bootstrapping from %d IPv4 nodes", num ); if(cl->len6 > 0) tr_ninf( "DHT", "Bootstrapping from %d IPv6 nodes", num6 ); @@ -529,9 +529,9 @@ callback( void *ignore UNUSED, int event, for( i=0; idhtAnnounceInProgress = 0; } else { tr_torinf(tor, "IPv6 DHT announce done"); @@ -569,8 +569,8 @@ tr_dhtAnnounce(tr_torrent *tor, int af, bool announce) announce ? tr_sessionGetPeerPort(session) : 0, af, callback, NULL); if( rc >= 1 ) { - tr_torinf(tor, "Starting%s DHT announce (%s, %d nodes)", - af == AF_INET6 ? " IPv6" : "", + tr_torinf(tor, "Starting %s DHT announce (%s, %d nodes)", + af == AF_INET6 ? "IPv6" : "IPv4", tr_dhtPrintableStatus(status), numnodes); if(af == AF_INET) tor->dhtAnnounceInProgress = true; @@ -578,14 +578,14 @@ tr_dhtAnnounce(tr_torrent *tor, int af, bool announce) tor->dhtAnnounce6InProgress = true; ret = 1; } else { - tr_torerr(tor, "%sDHT announce failed (%s, %d nodes): %s", - af == AF_INET6 ? "IPv6 " : "", + tr_torerr(tor, "%s DHT announce failed (%s, %d nodes): %s", + af == AF_INET6 ? "IPv6" : "IPv4", tr_dhtPrintableStatus(status), numnodes, tr_strerror( errno ) ); } } else { - tr_tordbg(tor, "%sDHT not ready (%s, %d nodes)", - af == AF_INET6 ? "IPv6 " : "", + tr_tordbg(tor, "%s DHT not ready (%s, %d nodes)", + af == AF_INET6 ? "IPv6" : "IPv4", tr_dhtPrintableStatus(status), numnodes); }