Changeset 12477


Ignore:
Timestamp:
May 30, 2011, 3:50:50 PM (10 years ago)
Author:
jordan
Message:

(trunk libt) #4301 "strerror used instead of tr_strerror -- fix in peer-io.c too

File:
1 edited

Legend:

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

    r12386 r12477  
    330330    size_t howmuch;
    331331    const tr_direction dir = TR_UP;
     332    char errstr[1024];
    332333
    333334    assert( tr_isPeerIo( io ) );
     
    377378 error:
    378379
    379     dbgmsg( io, "event_write_cb got an error. res is %d, what is %hd, errno is %d (%s)", res, what, e, strerror( e ) );
     380    tr_net_strerror( errstr, sizeof( errstr ), e );
     381    dbgmsg( io, "event_write_cb got an error. res is %d, what is %hd, errno is %d (%s)", res, what, e, errstr );
    380382
    381383    if( io->gotError != NULL )
     
    12201222            e = EVUTIL_SOCKET_ERROR( );
    12211223
    1222             dbgmsg( io, "read %d from peer (%s)", res, (res==-1?strerror(e):"") );
     1224            dbgmsg( io, "read %d from peer (%s)", res, (res==-1?tr_strerror(e):"") );
    12231225
    12241226            if( evbuffer_get_length( io->inbuf ) )
Note: See TracChangeset for help on using the changeset viewer.