Changeset 5619


Ignore:
Timestamp:
Apr 14, 2008, 7:52:51 PM (14 years ago)
Author:
charles
Message:

add more debug messages to resume's DND loader

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/port-forwarding.c

    r5600 r5619  
    5858    tr_upnp    * upnp;
    5959    tr_natpmp  * natpmp;
    60 
    6160};
    6261
  • trunk/libtransmission/resume.c

    r5614 r5619  
    120120    tr_info * inf = &tor->info;
    121121    const tr_file_index_t n = inf->fileCount;
    122     tr_benc * list;
     122    tr_benc * list = NULL;
    123123
    124124    if( tr_bencDictFindList( dict, KEY_DND, &list )
     
    137137        }
    138138
    139         if( dndCount )
     139        if( dndCount ) {
    140140            tr_torrentInitFileDLs ( tor, dnd, dndCount, FALSE );
    141         if( dlCount )
     141            tr_tordbg( tor, "Resume file found %d files listed as dnd", dndCount );
     142        }
     143        if( dlCount ) {
    142144            tr_torrentInitFileDLs ( tor, dl, dlCount, TRUE );
     145            tr_tordbg( tor, "Resume file found %d files marked for download", dlCount );
     146        }
    143147
    144148        tr_free( dnd );
    145149        tr_free( dl );
    146150        ret = TR_FR_PRIORITY;
     151    }
     152    else
     153    {
     154        tr_tordbg( tor, "Couldn't load DND flags.  dnd list (%p) has %d children; torrent has %d files",
     155                   ( list ? list->val.l.count : -1 ), (int)n );
    147156    }
    148157
Note: See TracChangeset for help on using the changeset viewer.