summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-12 21:40:38 +0200
committerColin Guthrie <cguthrie@mandriva.org>2009-09-01 23:54:47 +0100
commit05f239a74a18fbda2406e2fc306a0f6c1b764d8a (patch)
tree9aae3cc16d2ababaee0cbf71a7de7a898d0a8c99
parenta29c6f86e0853ba65013c029c3bd68b7eb65092f (diff)
memblock: rate limit 'Pool full' message
-rw-r--r--src/pulsecore/memblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/memblock.c b/src/pulsecore/memblock.c
index 6cc0ff3f..cb70f279 100644
--- a/src/pulsecore/memblock.c
+++ b/src/pulsecore/memblock.c
@@ -255,7 +255,8 @@ 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) {
- pa_log_info("Pool full");
+ if (pa_log_ratelimit())
+ pa_log_debug("Pool full");
pa_atomic_inc(&p->stat.n_pool_full);
return NULL;
}