From ce7b2521a37e31a418e5f7848c6ff19769139ff3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 3 Jan 2008 05:29:31 +0000 Subject: [PATCH] tweak debug messages. --- libtransmission/fastresume.c | 9 ++++----- libtransmission/shared.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libtransmission/fastresume.c b/libtransmission/fastresume.c index 56d135cf7..c43d53486 100644 --- a/libtransmission/fastresume.c +++ b/libtransmission/fastresume.c @@ -332,7 +332,7 @@ tr_fastResumeSave( const tr_torrent * tor ) fclose( file ); - tr_dbg( "Wrote resume file for '%s'", tor->info.name ); + /*tr_dbg( "Wrote resume file for '%s'", tor->info.name );*/ } /*** @@ -432,11 +432,10 @@ parseProgress( tr_torrent * tor, const uint8_t * walk = buf; const tr_time_t * oldMTimes = (const tr_time_t *) walk; for( i=0; iinfo.files[i]; - tr_dbg( "File '%s' mtimes match -- no recheck needed", file->name ); + if ( curMTimes[i] == oldMTimes[i] ) tr_torrentSetFileChecked( tor, i, TRUE ); - } + else + tr_dbg( "File '%s' recheck needed", tor->info.files[i].name ); } free( curMTimes ); walk += n * sizeof(tr_time_t); diff --git a/libtransmission/shared.c b/libtransmission/shared.c index 8a401d6d1..cbdc10198 100644 --- a/libtransmission/shared.c +++ b/libtransmission/shared.c @@ -70,7 +70,7 @@ getNatStateStr( int state ) case TR_NAT_TRAVERSAL_MAPPING: return "mapping"; case TR_NAT_TRAVERSAL_MAPPED: return "mapped"; case TR_NAT_TRAVERSAL_UNMAPPING: return "unmapping"; - case TR_NAT_TRAVERSAL_UNMAPPED: return "unmapped"; + case TR_NAT_TRAVERSAL_UNMAPPED: return "not mapped"; case TR_NAT_TRAVERSAL_ERROR: return "error"; }