Ignore:
Timestamp:
May 9, 2019 8:18:18 AM (5 years ago)
Author:
nanang
Message:

Re #1298: Updated PJSIP* to use PJ_ERROR consistently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c

    r5971 r5984  
    167167                       pj_status_t status) 
    168168{ 
    169     char errmsg[PJ_ERR_MSG_SIZE]; 
    170  
    171     pj_strerror(status, errmsg, sizeof(errmsg)); 
    172  
    173     PJ_LOG(3,(sender, "%s: %s [code=%d]", title, errmsg, status)); 
     169    PJ_PERROR(3,(sender, status, "%s: [code=%d]", title, status)); 
    174170} 
    175171 
     
    966962                                       readbuf, 0); 
    967963    if (status != PJ_SUCCESS && status != PJ_EPENDING) { 
    968         PJ_LOG(4, (tcp->base.obj_name,  
    969                    "pj_activesock_start_read() error, status=%d",  
    970                    status)); 
     964        PJ_PERROR(4, (tcp->base.obj_name, status, 
     965                      "pj_activesock_start_read() error")); 
    971966        return status; 
    972967    } 
     
    16871682                                    &enabled, sizeof(enabled)); 
    16881683        if (status != PJ_SUCCESS) { 
    1689             PJ_LOG(1, ("TRACE", "fail set reuseaddr")); 
    16901684            PJ_PERROR(4, (listener->factory.obj_name, status, 
    1691                 "Warning: error applying SO_REUSEADDR")); 
     1685                          "Warning: error applying SO_REUSEADDR")); 
    16921686        } 
    16931687    } 
Note: See TracChangeset for help on using the changeset viewer.