From 586deb9d1242dde8721e0cfa69ae467b78f76956 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 30 Oct 2009 16:46:33 +0000 Subject: [PATCH] (trunk libT) Adding term debug messages to help track down #2533 w/m1b and *acrocivious --- libtransmission/torrent.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index d1b85433e..4ad83512d 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1061,7 +1061,8 @@ fprintf( stderr, "file fits in a single block\n" ); } else { - uint32_t i; + //uint32_t i; + tr_block_index_t i; /* the first block */ if( tr_cpBlockIsCompleteFast( &tor->completion, firstBlock ) ) @@ -1086,9 +1087,15 @@ fprintf( stderr, "f->firstPiece == f->lastPiece\n" ); /* the rest of the first piece */ fprintf( stderr, "looping on the rest of the first piece\n" ); - for( i=firstBlock+1; icompletion, i ) ) +fprintf( stderr, "firstBlock is %"PRIu64"\n", (uint64_t)firstBlock ); +fprintf( stderr, "lastBlock is %"PRIu64"\n", (uint64_t)lastBlock ); +fprintf( stderr, "lastBlockOfFirstPiece is %"PRIu64"\n", (uint64_t)lastBlockOfFirstPiece ); + for( i=firstBlock+1; icompletion, i ) ) { ++b; + } + } /* the middle pieces */ fprintf( stderr, "looking at the middle pieces\n" );