From 5bc512aa3a0d3e4ca378fff3316b75c131f17637 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 29 Mar 1999 20:14:33 +0000 Subject: Clarify resource dumps and include them in the main debugging dump. --- lib/mempool.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/mempool.c') 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); } -- cgit v1.2.3