mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
Remove debugging messages.
This commit is contained in:
parent
88f4eac81f
commit
c9a7becf87
1 changed files with 0 additions and 11 deletions
|
@ -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() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue