From 4c8cfe7284b13c8b445cf278c319cad716bdbbea Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 29 Dec 2013 07:50:58 +0100 Subject: kernel: remove unused debug cprint() function from port/cache.c the cache can be inspected more easily with acid kernel library. --- sys/src/9/port/cache.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/sys/src/9/port/cache.c b/sys/src/9/port/cache.c index e748c7301..d32d68ef9 100644 --- a/sys/src/9/port/cache.c +++ b/sys/src/9/port/cache.c @@ -129,33 +129,6 @@ cinit(void) fscache.notext = 1; } -void -cprint(Chan *c, Mntcache *m, char *s) -{ - ulong o; - int nb, ct; - Extent *e; - - nb = 0; - ct = 1; - o = 0; - if(m->list) - o = m->list->start; - for(e = m->list; e; e = e->next) { - nb += e->len; - if(o != e->start) - ct = 0; - o = e->start+e->len; - } - pprint("%s: %#llux.%#lux %d %d %s (%d %c)\n", - s, m->qid.path, m->qid.vers, m->type, m->dev, c->path->s, nb, ct ? 'C' : 'N'); - - for(e = m->list; e; e = e->next) { - pprint("\t%4d %5lud %4d %#p\n", - e->bid, e->start, e->len, e->cache); - } -} - Page* cpage(Extent *e) { -- cgit v1.2.3