Ignore:
Timestamp:
May 9, 2019 7:47:39 AM (5 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/errno.c

    r5535 r5983  
    194194                           pj_status_t status) 
    195195{ 
    196     char errmsg[PJ_ERR_MSG_SIZE]; 
    197  
    198     pj_strerror(status, errmsg, sizeof(errmsg)); 
    199  
    200196#if PJNATH_ERROR_LEVEL==1 
    201     PJ_LOG(1,(sender, "%s: %s", title, errmsg)); 
     197    PJ_PERROR(1,(sender, status, title)); 
    202198#elif PJNATH_ERROR_LEVEL==2 
    203     PJ_LOG(2,(sender, "%s: %s", title, errmsg)); 
     199    PJ_PERROR(2,(sender, status, title)); 
    204200#elif PJNATH_ERROR_LEVEL==3 
    205     PJ_LOG(3,(sender, "%s: %s", title, errmsg)); 
     201    PJ_PERROR(3,(sender, status, title)); 
    206202#elif PJNATH_ERROR_LEVEL==4 
    207     PJ_LOG(4,(sender, "%s: %s", title, errmsg)); 
     203    PJ_PERROR(4,(sender, status, title)); 
    208204#elif PJNATH_ERROR_LEVEL==5 
    209     PJ_LOG(5,(sender, "%s: %s", title, errmsg)); 
     205    PJ_PERROR(5,(sender, status, title)); 
    210206#else 
    211207# error Invalid PJNATH_ERROR_LEVEL value 
Note: See TracChangeset for help on using the changeset viewer.