Ignore:
Timestamp:
Apr 5, 2011, 4:34:49 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) when processing an error in tr_peerIoTryWrite(), don't call tr_net_strerror() unless logging is turned on s.t. the string will be used.

File:
1 edited

Legend:

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

    r12305 r12319  
    12111211                const short what = BEV_EVENT_WRITING | BEV_EVENT_ERROR;
    12121212
    1213                 tr_net_strerror( errstr, sizeof( errstr ), e );
    1214                 dbgmsg( io, "tr_peerIoTryWrite got an error. res is %d, what is %hd, errno is %d (%s)", n, what, e, errstr );
     1213                dbgmsg( io, "tr_peerIoTryWrite got an error. res is %d, what is %hd, errno is %d (%s)",
     1214                        n, what, e, tr_net_strerror( errstr, sizeof( errstr ), e ) );
    12151215
    12161216                if( io->gotError != NULL )
Note: See TracChangeset for help on using the changeset viewer.