From c9a7becf87cb15b2d33a0e6b2d35fab69ac00d7e Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 18 Feb 2011 00:36:21 +0000 Subject: [PATCH] Remove debugging messages. --- libtransmission/peer-io.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libtransmission/peer-io.c b/libtransmission/peer-io.c index e52679507..75c4f9481 100644 --- a/libtransmission/peer-io.c +++ b/libtransmission/peer-io.c @@ -377,8 +377,6 @@ utp_on_read(void *closure, const unsigned char *buf, size_t buflen) tr_peerIo *io = (tr_peerIo *)closure; assert( tr_isPeerIo( io ) ); - tr_ndbg( "UTP", "On read: %ld", (long)buflen ); - rc = evbuffer_add( io->inbuf, buf, buflen ); if( rc < 0 ) { tr_nerr( "UTP", "On read evbuffer_add" ); @@ -394,9 +392,7 @@ utp_on_write(void *closure, unsigned char *buf, size_t buflen) { tr_peerIo *io = (tr_peerIo *)closure; int rc; - assert( tr_isPeerIo( io ) ); - tr_ndbg( "UTP", "On write: %ld", (long)buflen ); rc = evbuffer_remove( io->outbuf, buf, buflen ); if( rc < (long)buflen ) { @@ -417,8 +413,6 @@ utp_get_rb_size(void *closure) else bytes = 0; - tr_ndbg( "UTP", "Get RB size %ld", (long)bytes); - return UTP_READ_BUFFER_SIZE - bytes; } @@ -428,8 +422,6 @@ utp_on_state_change(void *closure, int state) tr_peerIo *io = (tr_peerIo *)closure; assert( tr_isPeerIo( io ) ); - tr_ndbg( "UTP", "On state change: %d", state ); - if( state == UTP_STATE_CONNECT || state == UTP_STATE_WRITABLE ) { size_t count = evbuffer_get_length( io->outbuf ); if( count > 0 ) @@ -451,8 +443,6 @@ utp_on_error(void *closure, int errcode) tr_peerIo *io = (tr_peerIo *)closure; assert( tr_isPeerIo( io ) ); - tr_ndbg( "UTP", "Error callback: %s", tr_strerror( errcode ) ); - if( io->gotError ) { errno = errcode; io->gotError( io, BEV_EVENT_ERROR, io->userData ); @@ -465,7 +455,6 @@ utp_on_overhead(void *closure, bool send, size_t count, int type) tr_peerIo *io = (tr_peerIo *)closure; assert( tr_isPeerIo( io ) ); - tr_ndbg( "UTP", "On overhead: %d %ld %d", (int)send, (long)count, type ); tr_bandwidthUsed( &io->bandwidth, send ? TR_UP : TR_DOWN, count, FALSE, tr_time_msec() ); }