summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-12 21:40:38 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-12 21:40:38 +0200
commit286ab2f19370c7a0041897435614b2c6aadc8e70 (patch)
treeeefe6149c1906fac4b0251ef17447c571988fa57 /src/pulsecore
parent5921324fd3c16e2b3d38d07b200febd90835f169 (diff)
memblock: rate limit 'Pool full' message
Diffstat (limited to 'src/pulsecore')
-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 3bc10de5..441b397b 100644
--- a/src/pulsecore/memblock.c
+++ b/src/pulsecore/memblock.c
@@ -258,7 +258,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_debug("Pool full");
+ if (pa_log_ratelimit())
+ pa_log_debug("Pool full");
pa_atomic_inc(&p->stat.n_pool_full);
return NULL;
}