Changeset 12584


Ignore:
Timestamp:
Jul 25, 2011, 7:53:39 PM (10 years ago)
Author:
jch
Message:

Reword debugging messages for the IPv4 DHT.

The IPv6 DHT is no longer expermiental, no need for the asymmetry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r12543 r12584  
    151151
    152152    if(cl->len > 0)
    153         tr_ninf( "DHT", "Bootstrapping from %d nodes", num );
     153        tr_ninf( "DHT", "Bootstrapping from %d IPv4 nodes", num );
    154154
    155155    if(cl->len6 > 0)
     
    530530                tr_peerMgrAddPex( tor, TR_PEER_FROM_DHT, pex+i, -1 );
    531531            tr_free(pex);
    532             tr_tordbg(tor, "Learned %d%s peers from DHT",
     532            tr_tordbg(tor, "Learned %d %s peers from DHT",
    533533                      (int)n,
    534                       event == DHT_EVENT_VALUES6 ? " IPv6" : "");
     534                      event == DHT_EVENT_VALUES6 ? "IPv6" : "IPv4");
    535535        }
    536536        tr_sessionUnlock( session );
     
    540540        if( tor ) {
    541541            if( event == DHT_EVENT_SEARCH_DONE ) {
    542                 tr_torinf(tor, "DHT announce done");
     542                tr_torinf(tor, "IPv4 DHT announce done");
    543543                tor->dhtAnnounceInProgress = 0;
    544544            } else {
     
    570570                         af, callback, NULL);
    571571        if( rc >= 1 ) {
    572             tr_torinf(tor, "Starting%s DHT announce (%s, %d nodes)",
    573                       af == AF_INET6 ? " IPv6" : "",
     572            tr_torinf(tor, "Starting %s DHT announce (%s, %d nodes)",
     573                      af == AF_INET6 ? "IPv6" : "IPv4",
    574574                      tr_dhtPrintableStatus(status), numnodes);
    575575            if(af == AF_INET)
     
    579579            ret = 1;
    580580        } else {
    581             tr_torerr(tor, "%sDHT announce failed (%s, %d nodes): %s",
    582                       af == AF_INET6 ? "IPv6 " : "",
     581            tr_torerr(tor, "%s DHT announce failed (%s, %d nodes): %s",
     582                      af == AF_INET6 ? "IPv6" : "IPv4",
    583583                      tr_dhtPrintableStatus(status), numnodes,
    584584                      tr_strerror( errno ) );
    585585        }
    586586    } else {
    587         tr_tordbg(tor, "%sDHT not ready (%s, %d nodes)",
    588                   af == AF_INET6 ? "IPv6 " : "",
     587        tr_tordbg(tor, "%s DHT not ready (%s, %d nodes)",
     588                  af == AF_INET6 ? "IPv6" : "IPv4",
    589589                  tr_dhtPrintableStatus(status), numnodes);
    590590    }
Note: See TracChangeset for help on using the changeset viewer.