shithub: riscv

Download patch

ref: 4c8cfe7284b13c8b445cf278c319cad716bdbbea
parent: 42074003ca31dea9589012fe3e235e4ddec5be1f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 29 02:50:58 EST 2013

kernel: remove unused debug cprint() function from port/cache.c

the cache can be inspected more easily with acid kernel library.

--- a/sys/src/9/port/cache.c
+++ b/sys/src/9/port/cache.c
@@ -129,33 +129,6 @@
 	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)
 {
--