Changeset 108 for pjproject/trunk


Ignore:
Timestamp:
Jan 7, 2006 6:41:22 PM (19 years ago)
Author:
bennylp
Message:

Changed loggin to level 6 (from 5)

Location:
pjproject/trunk/pjlib/src/pj
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/config.c

    r75 r108  
    2222 
    2323static const char *id = "config.c"; 
    24 const char *PJ_VERSION = "0.3.0-pre4"; 
     24const char *PJ_VERSION = "0.5"; 
    2525 
    2626PJ_DEF(void) pj_dump_config(void) 
  • pjproject/trunk/pjlib/src/pj/hash.c

    r66 r108  
    9292    h->count = 0; 
    9393 
    94     PJ_LOG( 5, ("hashtbl", "hash table %p created from pool %s", h, pj_pool_getobjname(pool))); 
     94    PJ_LOG( 6, ("hashtbl", "hash table %p created from pool %s", h, pj_pool_getobjname(pool))); 
    9595 
    9696    /* size must be 2^n - 1. 
     
    148148    /* create a new entry */ 
    149149    entry = pj_pool_alloc(pool, sizeof(pj_hash_entry)); 
    150     PJ_LOG(5, ("hashtbl", "%p: New p_entry %p created, pool used=%u, cap=%u", ht, entry,  
     150    PJ_LOG(6, ("hashtbl", "%p: New p_entry %p created, pool used=%u, cap=%u", ht, entry,  
    151151                          pj_pool_get_used_size(pool), pj_pool_get_capacity(pool))); 
    152152    entry->next = NULL; 
     
    180180        if (value == NULL) { 
    181181            /* delete entry */ 
    182             PJ_LOG(5, ("hashtbl", "%p: p_entry %p deleted", ht, *p_entry)); 
     182            PJ_LOG(6, ("hashtbl", "%p: p_entry %p deleted", ht, *p_entry)); 
    183183            *p_entry = (*p_entry)->next; 
    184184            --ht->count; 
     
    187187            /* overwrite */ 
    188188            (*p_entry)->value = value; 
    189             PJ_LOG(5, ("hashtbl", "%p: p_entry %p value set to %p", ht, *p_entry, value)); 
     189            PJ_LOG(6, ("hashtbl", "%p: p_entry %p value set to %p", ht, *p_entry, value)); 
    190190        } 
    191191    } 
  • pjproject/trunk/pjlib/src/pj/os_error_win32.c

    r66 r108  
    154154            } 
    155155        } 
     156 
     157    } else { 
     158        /* Remove trailing newlines. */ 
     159        while (len && (buf[len-1] == '\n' || buf[len-1] == '\r')) { 
     160            buf[len-1] = '\0'; 
     161            --len; 
     162        } 
    156163    } 
    157164 
  • pjproject/trunk/pjlib/src/pj/pool.c

    r69 r108  
    2929#endif 
    3030 
    31 #define LOG(expr)   PJ_LOG(5,expr) 
     31#define LOG(expr)   PJ_LOG(6,expr) 
    3232 
    3333int PJ_NO_MEMORY_EXCEPTION; 
  • pjproject/trunk/pjlib/src/pj/pool_caching.c

    r78 r108  
    138138        cp->capacity -= pj_pool_get_capacity(pool); 
    139139 
    140         PJ_LOG(5, (pool->obj_name, "pool reused, size=%u", pool->capacity)); 
     140        PJ_LOG(6, (pool->obj_name, "pool reused, size=%u", pool->capacity)); 
    141141    } 
    142142 
     
    174174 
    175175    /* Reset pool. */ 
    176     PJ_LOG(4, (pool->obj_name, "recycle(): cap=%d, used=%d(%d%%)",  
     176    PJ_LOG(6, (pool->obj_name, "recycle(): cap=%d, used=%d(%d%%)",  
    177177               pool->capacity, pj_pool_get_used_size(pool),  
    178178               pj_pool_get_used_size(pool)*100/pool->capacity)); 
Note: See TracChangeset for help on using the changeset viewer.