Changeset 5620


Ignore:
Timestamp:
Apr 14, 2008, 8:06:37 PM (14 years ago)
Author:
charles
Message:

silence a couple of annoying dbg messages

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r5611 r5620  
    10681068tr_bencSaveFile( const char * filename,  const tr_benc * b )
    10691069{
    1070     int ret = TR_OK;
     1070    int err = TR_OK;
    10711071    int len;
    10721072    char * content = tr_bencSave( b, &len );
     
    10781078        tr_err( _( "Couldn't open \"%1$s\": %2$s" ),
    10791079                filename, tr_strerror( errno ) );
    1080         ret = TR_EINVALID;
     1080        err = TR_EINVALID;
    10811081    }
    10821082    else if( fwrite( content, sizeof( char ), len, out ) != (size_t)len )
     
    10841084        tr_err( _( "Couldn't save file \"%1$s\": %2$s" ),
    10851085                filename, tr_strerror( errno ) );
    1086         ret = TR_EINVALID;
    1087     }
    1088 
    1089     tr_dbg( "tr_bencSaveFile returned %d when saving \"%s\"", ret, filename );
     1086        err = TR_EINVALID;
     1087    }
     1088
     1089    if( !err )
     1090        tr_dbg( "tr_bencSaveFile saved \"%s\"", filename );
    10901091    tr_free( content );
    10911092    if( out )
    10921093        fclose( out );
    1093     return ret;
     1094    return err;
    10941095}
    10951096
  • trunk/libtransmission/natpmp.c

    r5600 r5620  
    6565logVal( const char * func, int ret )
    6666{
    67     if( ret==NATPMP_TRYAGAIN )
    68         tr_ndbg( getKey(),  "%s responded \"try again\"", func );
    69     else if( ret >= 0 )
     67    if( ret == NATPMP_TRYAGAIN )
     68        return;
     69    if( ret >= 0 )
    7070        tr_ninf( getKey(), _( "%s succeeded (%d)" ), func, ret );
    7171    else
Note: See TracChangeset for help on using the changeset viewer.