summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2013-12-29 07:50:58 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2013-12-29 07:50:58 +0100
commit4c8cfe7284b13c8b445cf278c319cad716bdbbea (patch)
tree330f1a78b927a4eb878922e2acb4c3cfea8b4a13
parent42074003ca31dea9589012fe3e235e4ddec5be1f (diff)
kernel: remove unused debug cprint() function from port/cache.c
the cache can be inspected more easily with acid kernel library.
-rw-r--r--sys/src/9/port/cache.c27
1 files changed, 0 insertions, 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)
{