diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-10 02:55:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-12 20:36:48 +0100 |
commit | 94b94e92c5cea9c9c77d2164edf90134184e45b9 (patch) | |
tree | a7f2ebe1957fc389ea198ef3471a232483971ab1 /src/pulsecore | |
parent | a14b8dc43a40678f91f1977eff97e6012cc31005 (diff) |
show maximum usable slot size
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/memblock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pulsecore/memblock.c b/src/pulsecore/memblock.c index d9e1bf1c..1d7f4559 100644 --- a/src/pulsecore/memblock.c +++ b/src/pulsecore/memblock.c @@ -711,11 +711,12 @@ pa_mempool* pa_mempool_new(pa_bool_t shared, size_t size) { return NULL; } - pa_log_debug("Using %s memory pool with %u slots of size %s each, total size is %s", + pa_log_debug("Using %s memory pool with %u slots of size %s each, total size is %s, maximum usable slot size is %lu", p->memory.shared ? "shared" : "private", p->n_blocks, pa_bytes_snprint(t1, sizeof(t1), (unsigned) p->block_size), - pa_bytes_snprint(t2, sizeof(t2), (unsigned) (p->n_blocks * p->block_size))); + pa_bytes_snprint(t2, sizeof(t2), (unsigned) (p->n_blocks * p->block_size)), + (unsigned long) pa_mempool_block_size_max(p)); memset(&p->stat, 0, sizeof(p->stat)); pa_atomic_store(&p->n_init, 0); |