]> granicus.if.org Git - transmission/commitdiff
Remove debugging messages.
authorJuliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Fri, 18 Feb 2011 00:36:21 +0000 (00:36 +0000)
committerJuliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Fri, 18 Feb 2011 00:36:21 +0000 (00:36 +0000)
libtransmission/peer-io.c

index e52679507d36e8e32008f2548c625d9e3dd7f100..75c4f9481ae5bf68fa05bb4575a466a912eeab14 100644 (file)
@@ -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() );
 }