Changeset 12320


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

(trunk libT) when processing errors in peer-io.c's event_read_cb() and tr_peerIoTryRead() functions, 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

    r12319 r12320  
    244244        }
    245245
    246         tr_net_strerror( errstr, sizeof( errstr ), e );
    247         dbgmsg( io, "event_read_cb got an error. res is %d, what is %hd, errno is %d (%s)", res, what, e, errstr );
     246        dbgmsg( io, "event_read_cb got an error. res is %d, what is %hd, errno is %d (%s)",
     247                res, what, e, tr_net_strerror( errstr, sizeof( errstr ), e ) );
    248248
    249249        if( io->gotError != NULL )
     
    11671167                if( res == 0 )
    11681168                    what |= BEV_EVENT_EOF;
    1169                 tr_net_strerror( errstr, sizeof( errstr ), e );
    1170                 dbgmsg( io, "tr_peerIoTryRead got an error. res is %d, what is %hd, errno is %d (%s)", res, what, e, errstr );
     1169                dbgmsg( io, "tr_peerIoTryRead got an error. res is %d, what is %hd, errno is %d (%s)",
     1170                        res, what, e, tr_net_strerror( errstr, sizeof( errstr ), e ) );
    11711171                io->gotError( io, what, io->userData );
    11721172            }
Note: See TracChangeset for help on using the changeset viewer.