Ignore:
Timestamp:
May 9, 2019 7:47:39 AM (3 years ago)
Author:
nanang
Message:

Re #1298: Updated PJNATH to use PJ_ERROR consistently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r5861 r5983  
    959959                      const char *title, pj_status_t status) 
    960960{ 
    961     char errmsg[PJ_ERR_MSG_SIZE]; 
    962  
    963     pj_strerror(status, errmsg, sizeof(errmsg)); 
    964     PJ_LOG(4,(ice_st->obj_name, "%s: %s", title, errmsg)); 
     961    PJ_PERROR(4,(ice_st->obj_name, status, title)); 
     962 
    965963    pj_log_push_indent(); 
    966964 
     
    15881586    if (cb.on_ice_complete) { 
    15891587        if (status != PJ_SUCCESS) { 
    1590             char errmsg[PJ_ERR_MSG_SIZE]; 
    1591             pj_strerror(status, errmsg, sizeof(errmsg)); 
    1592             PJ_LOG(4,(ice_st->obj_name, 
    1593                       "ICE negotiation failed after %ds:%03d: %s", 
    1594                       msec/1000, msec%1000, errmsg)); 
     1588            PJ_PERROR(4,(ice_st->obj_name, status, 
     1589                         "ICE negotiation failed after %ds:%03d", 
     1590                         msec/1000, msec%1000)); 
    15951591        } else { 
    15961592            unsigned i; 
Note: See TracChangeset for help on using the changeset viewer.