Changeset 3782 for pjproject


Ignore:
Timestamp:
Oct 3, 2011 11:01:09 AM (13 years ago)
Author:
nanang
Message:

Re #1358 (minor updates in event.c):

  • Avoid compile warning when trace is disabled.
  • Added pointer of subscriber in [un]subscription log trace.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/event.c

    r3778 r3782  
    7979    PJ_ASSERT_RETURN(esub->subscribe_to == NULL, PJ_EINVALIDOP); 
    8080 
    81     TRACE_((THIS_FILE, "Subscription to publisher %s", 
     81    TRACE_((THIS_FILE, "Subscription [0x%p] to publisher %s", 
     82                       esub, 
    8283                       pjmedia_fourcc_name(epub->sig, epub_name))); 
     84    /* Suppress compiler warning if trace is disabled */ 
     85    PJ_UNUSED_ARG(epub_name); 
    8386 
    8487    pj_list_push_back(&epub->subscription_list, esub); 
     
    9396    if (esub->subscribe_to) { 
    9497        char epub_name[5]; 
    95         TRACE_((THIS_FILE, "Unsubscription to publisher %s", 
     98        TRACE_((THIS_FILE, "Unsubscription [0x%p] to publisher %s", 
     99                           esub, 
    96100                           pjmedia_fourcc_name(esub->subscribe_to->sig, 
    97101                                               epub_name))); 
     102        /* Suppress compiler warning if trace is disabled */ 
     103        PJ_UNUSED_ARG(epub_name); 
    98104 
    99105        PJ_ASSERT_RETURN( 
Note: See TracChangeset for help on using the changeset viewer.