diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 1c5bf0487..2e779cc1e 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1869,10 +1869,11 @@ tr_torrentReqIsValid( const tr_torrent * tor, else if( tr_pieceOffset( tor, index, offset, length ) > tor->info.totalSize ) err = 5; - if( err ) fprintf( stderr, "index %lu offset %lu length %lu err %d\n", - (unsigned long)index, (unsigned long)offset, - (unsigned long)length, - err ); + if( err ) tr_tordbg( tor, "index %lu offset %lu length %lu err %d\n", + (unsigned long)index, + (unsigned long)offset, + (unsigned long)length, + err ); return !err; }