Changeset 7586


Ignore:
Timestamp:
Jan 2, 2009, 9:50:51 PM (12 years ago)
Author:
charles
Message:

(trunk libT) commit some debugging messages that were added to trackdown the multicast filter issue

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r7580 r7586  
    2323#include "utils.h"
    2424
     25#define dbgmsg( ... ) \
     26    do { \
     27        if( tr_deepLoggingIsActive( ) ) \
     28            tr_deepLog( __FILE__, __LINE__, NULL, __VA_ARGS__ ); \
     29    } while( 0 )
     30
    2531/***
    2632****
     
    213219     * and/or peers that can use it */
    214220    n = peerCount;
    215 #ifdef DEBUG_DIRECTION
    216 if( dir == DEBUG_DIRECTION ) fprintf( stderr, "bandwidth.c: allocate: number of peerIos to go round-robin: %d\n", n );
    217 #endif
     221    dbgmsg( "direction %s ... %d pees to go round-robin", (dir==TR_UP?"UP":"DOWN"), n );
    218222    i = n ? tr_cryptoWeakRandInt( n ) : 0; /* pick a random starting point */
    219223    while( n > 1 )
  • trunk/libtransmission/peer-mgr.c

    r7582 r7586  
    23142314            if( io == NULL )
    23152315            {
     2316                tordbg( t, "peerIo not created; marking peer %s as unreachable",
     2317                        tr_peerIoAddrStr( &atom->addr, atom->port ) );
    23162318                atom->myflags |= MYFLAG_UNREACHABLE;
    23172319            }
Note: See TracChangeset for help on using the changeset viewer.