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

This commit is contained in:
Charles Kerr 2009-01-02 21:50:51 +00:00
parent 5086cbe47c
commit d756d6b58f
2 changed files with 9 additions and 3 deletions

View File

@ -22,6 +22,12 @@
#include "ptrarray.h"
#include "utils.h"
#define dbgmsg( ... ) \
do { \
if( tr_deepLoggingIsActive( ) ) \
tr_deepLog( __FILE__, __LINE__, NULL, __VA_ARGS__ ); \
} while( 0 )
/***
****
***/
@ -212,9 +218,7 @@ tr_bandwidthAllocate( tr_bandwidth * b,
* small chunk of bandwidth. Keep looping until we run out of bandwidth
* and/or peers that can use it */
n = peerCount;
#ifdef DEBUG_DIRECTION
if( dir == DEBUG_DIRECTION ) fprintf( stderr, "bandwidth.c: allocate: number of peerIos to go round-robin: %d\n", n );
#endif
dbgmsg( "direction %s ... %d pees to go round-robin", (dir==TR_UP?"UP":"DOWN"), n );
i = n ? tr_cryptoWeakRandInt( n ) : 0; /* pick a random starting point */
while( n > 1 )
{

View File

@ -2313,6 +2313,8 @@ reconnectPulse( void * vtorrent )
if( io == NULL )
{
tordbg( t, "peerIo not created; marking peer %s as unreachable",
tr_peerIoAddrStr( &atom->addr, atom->port ) );
atom->myflags |= MYFLAG_UNREACHABLE;
}
else