Changeset 11637


Ignore:
Timestamp:
Jan 6, 2011, 2:33:39 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) in deep logging, use evbuffer_write() instead of fwrite()

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r11600 r11637  
    279279        va_end( args );
    280280        evbuffer_add_printf( buf, " (%s:%d)\n", base, line );
    281         fwrite( evbuffer_pullup( buf, -1 ), 1, evbuffer_get_length( buf ), fp );
     281        evbuffer_write( buf, fileno( fp ) );
    282282
    283283        tr_free( base );
  • trunk/libtransmission/utils.c

    r11634 r11637  
    244244        /* FIXME(libevent2) ifdef this out for nonwindows platforms */
    245245        OutputDebugString( evbuffer_pullup( buf, -1 ) );
    246         if(fp) /* FIXME(libevent2) tr_getLog() should return an fd, then use evbuffer_write() here ) */
    247             (void) fwrite( evbuffer_pullup( buf, -1 ), 1, evbuffer_get_length( buf ), fp );
     246        if( fp )
     247            evbuffer_write( buf, fileno( fp ) );
    248248
    249249        tr_free( base );
Note: See TracChangeset for help on using the changeset viewer.