summaryrefslogtreecommitdiffstats
path: root/lib/mempool.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-29 22:14:33 +0200
committerMartin Mares <mj@ucw.cz>1999-03-29 22:14:33 +0200
commit5bc512aa3a0d3e4ca378fff3316b75c131f17637 (patch)
tree1f7d48bab9c94313b58845412472e06b21c7f712 /lib/mempool.c
parent3f2a21fd348e49cf3ca98750b14e14dd04b3209b (diff)
downloadbird-5bc512aa3a0d3e4ca378fff3316b75c131f17637.tar
bird-5bc512aa3a0d3e4ca378fff3316b75c131f17637.zip
Clarify resource dumps and include them in the main debugging dump.
Diffstat (limited to 'lib/mempool.c')
-rw-r--r--lib/mempool.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/mempool.c b/lib/mempool.c
index 49e6e90..9319859 100644
--- a/lib/mempool.c
+++ b/lib/mempool.c
@@ -150,13 +150,17 @@ lp_dump(resource *r)
{
linpool *m = (linpool *) r;
struct lp_chunk *c;
- int cnt;
+ int cnt, cntl;
for(cnt=0, c=m->first; c; c=c->next, cnt++)
;
- debug("(chunk=%d threshold=%d count=%d total=%d)\n",
+ for(cntl=0, c=m->first_large; c; c=c->next, cntl++)
+ ;
+ debug("(chunk=%d threshold=%d count=%d+%d total=%d+%d)\n",
m->chunk_size,
m->threshold,
cnt,
- m->total);
+ cntl,
+ m->total,
+ m->total_large);
}