1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Clarify resource dumps and include them in the main debugging dump.

This commit is contained in:
Martin Mares
1999-03-29 20:14:33 +00:00
parent 3f2a21fd34
commit 5bc512aa3a
4 changed files with 13 additions and 8 deletions

View File

@@ -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);
}