diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-01-07 18:41:22 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-01-07 18:41:22 +0000 |
commit | 9b1fe4bbb2a30ea94d3ff33989341c656936d930 (patch) | |
tree | 65e7868ada23e3a3abca16c428b8633f491ff486 /pjlib/src/pj/hash.c | |
parent | 67d6a30732fd1e1fae2f98f646d97356b2eaa8c9 (diff) |
Changed loggin to level 6 (from 5)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@108 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/hash.c')
-rw-r--r-- | pjlib/src/pj/hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pjlib/src/pj/hash.c b/pjlib/src/pj/hash.c index 28d6d0ff..739f2757 100644 --- a/pjlib/src/pj/hash.c +++ b/pjlib/src/pj/hash.c @@ -91,7 +91,7 @@ PJ_DEF(pj_hash_table_t*) pj_hash_create(pj_pool_t *pool, unsigned size) h = pj_pool_alloc(pool, sizeof(pj_hash_table_t)); h->count = 0; - PJ_LOG( 5, ("hashtbl", "hash table %p created from pool %s", h, pj_pool_getobjname(pool))); + PJ_LOG( 6, ("hashtbl", "hash table %p created from pool %s", h, pj_pool_getobjname(pool))); /* size must be 2^n - 1. round-up the size to this rule, except when size is 2^n, then size @@ -147,7 +147,7 @@ static pj_hash_entry **find_entry( pj_pool_t *pool, pj_hash_table_t *ht, /* create a new entry */ entry = pj_pool_alloc(pool, sizeof(pj_hash_entry)); - PJ_LOG(5, ("hashtbl", "%p: New p_entry %p created, pool used=%u, cap=%u", ht, entry, + PJ_LOG(6, ("hashtbl", "%p: New p_entry %p created, pool used=%u, cap=%u", ht, entry, pj_pool_get_used_size(pool), pj_pool_get_capacity(pool))); entry->next = NULL; entry->hash = hash; @@ -179,14 +179,14 @@ PJ_DEF(void) pj_hash_set( pj_pool_t *pool, pj_hash_table_t *ht, if (*p_entry) { if (value == NULL) { /* delete entry */ - PJ_LOG(5, ("hashtbl", "%p: p_entry %p deleted", ht, *p_entry)); + PJ_LOG(6, ("hashtbl", "%p: p_entry %p deleted", ht, *p_entry)); *p_entry = (*p_entry)->next; --ht->count; } else { /* overwrite */ (*p_entry)->value = value; - PJ_LOG(5, ("hashtbl", "%p: p_entry %p value set to %p", ht, *p_entry, value)); + PJ_LOG(6, ("hashtbl", "%p: p_entry %p value set to %p", ht, *p_entry, value)); } } } |