memblock: rate limit 'Pool full' message

This commit is contained in:
Lennart Poettering 2009-08-12 21:40:38 +02:00
parent 5921324fd3
commit 286ab2f193

View file

@ -258,6 +258,7 @@ static struct mempool_slot* mempool_allocate_slot(pa_mempool *p) {
slot = (struct mempool_slot*) ((uint8_t*) p->memory.ptr + (p->block_size * (size_t) idx));
if (!slot) {
if (pa_log_ratelimit())
pa_log_debug("Pool full");
pa_atomic_inc(&p->stat.n_pool_full);
return NULL;