Use get_pool_name everywhere

Replace everywhere the pool->name to get_pool_name(pool)