diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-03-31 17:28:46 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-04-06 12:47:40 +0200 |
commit | 8b0e09103b5e7e55b20380c44f093b1cef95480c (patch) | |
tree | 2b231876b34c525a20ad2b5fc15d8aabb57eba99 /src/libhydra/attributes/mem_pool.c | |
parent | 9ed6341d3f1f48c9528a21b9d2da83bfc05bb756 (diff) | |
download | strongswan-8b0e09103b5e7e55b20380c44f093b1cef95480c.tar.bz2 strongswan-8b0e09103b5e7e55b20380c44f093b1cef95480c.tar.xz |
Adding DBG_LIB to all calls of libstrongswan's version of DBG*.
Diffstat (limited to 'src/libhydra/attributes/mem_pool.c')
-rw-r--r-- | src/libhydra/attributes/mem_pool.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/libhydra/attributes/mem_pool.c b/src/libhydra/attributes/mem_pool.c index 4b258151d..569875c85 100644 --- a/src/libhydra/attributes/mem_pool.c +++ b/src/libhydra/attributes/mem_pool.c @@ -203,7 +203,7 @@ METHOD(mem_pool_t, acquire_address, host_t*, requested->get_family(requested) != this->base->get_family(this->base)) { - DBG1("IP pool address family mismatch"); + DBG1(DBG_LIB, "IP pool address family mismatch"); return NULL; } @@ -217,7 +217,7 @@ METHOD(mem_pool_t, acquire_address, host_t*, id = this->ids->get(this->ids, id); if (id) { - DBG1("reassigning offline lease to '%Y'", id); + DBG1(DBG_LIB, "reassigning offline lease to '%Y'", id); this->online->put(this->online, id, (void*)offset); break; } @@ -227,7 +227,7 @@ METHOD(mem_pool_t, acquire_address, host_t*, offset = (uintptr_t)this->online->get(this->online, id); if (offset && offset == host2offset(this, requested)) { - DBG1("reassigning online lease to '%Y'", id); + DBG1(DBG_LIB, "reassigning online lease to '%Y'", id); break; } @@ -239,7 +239,7 @@ METHOD(mem_pool_t, acquire_address, host_t*, id = id->clone(id); this->ids->put(this->ids, id, id); this->online->put(this->online, id, (void*)offset); - DBG1("assigning new lease to '%Y'", id); + DBG1(DBG_LIB, "assigning new lease to '%Y'", id); break; } @@ -252,8 +252,8 @@ METHOD(mem_pool_t, acquire_address, host_t*, { /* destroy reference to old ID */ old_id = this->ids->remove(this->ids, old_id); - DBG1("reassigning existing offline lease by '%Y' to '%Y'", - old_id, id); + DBG1(DBG_LIB, "reassigning existing offline lease by '%Y'" + " to '%Y'", old_id, id); if (old_id) { old_id->destroy(old_id); @@ -267,7 +267,8 @@ METHOD(mem_pool_t, acquire_address, host_t*, } enumerator->destroy(enumerator); - DBG1("pool '%s' is full, unable to assign address", this->name); + DBG1(DBG_LIB, "pool '%s' is full, unable to assign address", + this->name); break; } this->lock->unlock(this->lock); @@ -293,7 +294,7 @@ METHOD(mem_pool_t, release_address, bool, id = this->ids->get(this->ids, id); if (id) { - DBG1("lease %H by '%Y' went offline", address, id); + DBG1(DBG_LIB, "lease %H by '%Y' went offline", address, id); this->offline->put(this->offline, id, (void*)offset); found = TRUE; } @@ -432,7 +433,7 @@ mem_pool_t *mem_pool_create(char *name, host_t *base, int bits) if (bits > POOL_LIMIT) { bits = POOL_LIMIT; - DBG1("virtual IP pool too large, limiting to %H/%d", + DBG1(DBG_LIB, "virtual IP pool too large, limiting to %H/%d", base, addr_bits - bits); } this->size = 1 << (bits); |