diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-10 12:37:31 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-10 12:42:09 +0200 |
commit | 383c174a79682e461534d4846f6ab4cf6ff356f8 (patch) | |
tree | 2065c7508fb82aa4f528a5cd83236fe22e551b4c /src/libcharon/plugins/stroke/stroke_attribute.c | |
parent | 747fd544a7b1d65c7db66927b6a6260ea944a4d2 (diff) | |
download | strongswan-383c174a79682e461534d4846f6ab4cf6ff356f8.tar.bz2 strongswan-383c174a79682e461534d4846f6ab4cf6ff356f8.tar.xz |
Print the name of mem pools instead of the confusing <base>/<size>
Diffstat (limited to 'src/libcharon/plugins/stroke/stroke_attribute.c')
-rw-r--r-- | src/libcharon/plugins/stroke/stroke_attribute.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_attribute.c b/src/libcharon/plugins/stroke/stroke_attribute.c index 3e012230a..fa58a24e3 100644 --- a/src/libcharon/plugins/stroke/stroke_attribute.c +++ b/src/libcharon/plugins/stroke/stroke_attribute.c @@ -199,9 +199,10 @@ METHOD(stroke_attribute_t, add_pool, void, base->ip_equals(base, current->get_base(current)) && size == current->get_size(current)) { + DBG1(DBG_CFG, "reusing virtual IP address pool %s", + current->get_name(current)); pool->destroy(pool); pool = NULL; - DBG1(DBG_CFG, "reusing virtual IP address pool %H/%d", base, size); break; } } @@ -211,7 +212,8 @@ METHOD(stroke_attribute_t, add_pool, void, { if (base) { - DBG1(DBG_CFG, "adding virtual IP address pool %H/%d", base, size); + DBG1(DBG_CFG, "adding virtual IP address pool %s", + pool->get_name(pool)); } this->pools->insert_last(this->pools, pool); } |