From: Charles Kerr Date: Sat, 17 Jul 2010 22:37:13 +0000 (+0000) Subject: (trunk libT) disable some more unnecessary debug messages X-Git-Tag: 2.10~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ea1cff367681581769433f27a30fa0f31961654;p=transmission (trunk libT) disable some more unnecessary debug messages --- diff --git a/libtransmission/cache.c b/libtransmission/cache.c index bbd8ab45b..bf329132f 100644 --- a/libtransmission/cache.c +++ b/libtransmission/cache.c @@ -176,8 +176,8 @@ flushContiguous( tr_cache * cache, int pos, int n, int rank ) } tr_ptrArrayErase( &cache->blocks, pos, pos+n ); - tr_tordbg( tor, "Writing to disk piece %d, offset %d, len %d", (int)piece, (int)offset, (int)(walk-buf) ); #if 0 + tr_tordbg( tor, "Writing to disk piece %d, offset %d, len %d", (int)piece, (int)offset, (int)(walk-buf) ); tr_ndbg( MY_NAME, "Removing %d blocks from cache, rank: %d - %d left", n, rank, tr_ptrArraySize(&cache->blocks) ); fprintf( stderr, "%s - Writing to disk piece %d, offset %d, len %d\n", tr_torrentName(tor), (int)piece, (int)offset, (int)(walk-buf) ); fprintf( stderr, "%s - Removing %d blocks from cache; %d left\n", MY_NAME, n, tr_ptrArraySize(&cache->blocks) ); diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 55493f762..b71a62033 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -1528,7 +1528,6 @@ tr_valloc( size_t bufLen ) if( !buf ) buf = malloc( allocLen ); - tr_dbg( "tr_valloc(%zu) allocating %zu bytes", bufLen, allocLen ); return buf; }