Print the name of mem pools instead of the confusing <base>/<size>

This commit is contained in:
Tobias Brunner
2012-09-10 12:42:09 +02:00
parent 747fd544a7
commit 383c174a79
@@ -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);
}