Ignore:
Timestamp:
May 9, 2019 8:18:18 AM (3 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_transaction.c

    r5909 r5984  
    776776     */ 
    777777    if (pj_hash_count(mod_tsx_layer.htable) != 0) { 
    778         if (pjsip_endpt_atexit(mod_tsx_layer.endpt, &tsx_layer_destroy) != 
    779             PJ_SUCCESS) 
    780         { 
    781             PJ_LOG(3,(THIS_FILE, "Failed to register transaction layer " 
    782                                  "module destroy.")); 
     778        pj_status_t status; 
     779        status = pjsip_endpt_atexit(mod_tsx_layer.endpt, &tsx_layer_destroy); 
     780        if (status != PJ_SUCCESS) { 
     781            PJ_PERROR(3,(THIS_FILE, status, 
     782                    "Failed to register transaction layer module destroy.")); 
    783783        } 
    784784        return PJ_EBUSY; 
     
    20382038    if (sent < 0) { 
    20392039        pj_time_val delay = {0, 0}; 
    2040         char errmsg[PJ_ERR_MSG_SIZE]; 
    2041  
    2042         pj_strerror((pj_status_t)-sent, errmsg, sizeof(errmsg)); 
    2043  
    2044         PJ_LOG(2,(tsx->obj_name, "Transport failed to send %s! Err=%d (%s)", 
    2045                 pjsip_tx_data_get_info(tdata), -sent, errmsg)); 
     2040 
     2041        PJ_PERROR(2,(tsx->obj_name, (pj_status_t)-sent, 
     2042                      "Transport failed to send %s!", 
     2043                      pjsip_tx_data_get_info(tdata))); 
    20462044 
    20472045        /* Post the event for later processing, to avoid deadlock. 
Note: See TracChangeset for help on using the changeset viewer.