Changeset 5649


Ignore:
Timestamp:
Apr 19, 2008, 3:59:31 PM (14 years ago)
Author:
charles
Message:

add some debug messages for John_Clay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r5645 r5649  
    125125
    126126    assert( inf->files[first].offset <= offset );
    127     assert( offset < inf->files[first].offset + inf->files[first].length );
     127    if( offset >= inf->files[first].offset + inf->files[first].length ) {
     128        fprintf( stderr, "offset is %"PRIu64"\n", offset );
     129        fprintf( stderr, "inf->fileCount is %d\n", (int)inf->fileCount );
     130        fprintf( stderr, "inf->files[first].offset is %"PRIu64"\n", inf->files[first].offset );
     131        fprintf( stderr, "inf->files[first].length is %"PRIu64"\n", inf->files[first].length );
     132        assert( offset < inf->files[first].offset + inf->files[first].length );
     133    }
    128134    assert( *fileIndex < inf->fileCount );
    129135    assert( *fileOffset < inf->files[first].length );
Note: See TracChangeset for help on using the changeset viewer.