diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-16 21:39:22 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-16 21:39:22 +0100 |
commit | ce5f9d8210ff630d24bfc5f392b96964c891673e (patch) | |
tree | 767f4bbed0fa36a45d39b60dadbe421c38dd8f08 /sys/src/9/pc/yukdump.h | |
parent | ea6fea596b67dea542e7a1994b10473228118400 (diff) |
etheryuk: fix problems with yukon2 ep+ rev0, deoptimize
Diffstat (limited to 'sys/src/9/pc/yukdump.h')
-rw-r--r-- | sys/src/9/pc/yukdump.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/sys/src/9/pc/yukdump.h b/sys/src/9/pc/yukdump.h index 9d2aa58e9..949f79b55 100644 --- a/sys/src/9/pc/yukdump.h +++ b/sys/src/9/pc/yukdump.h @@ -200,25 +200,8 @@ rs(uint r) return s; } -static int -nblocktab(int qno) -{ - uint i; - Block *b; - - ilock(&rbtab[qno]); - b = rbtab[qno].b; - for(i = 0;; i++){ - if(b == nil) - break; - b = b->next; - } - iunlock(&rbtab[qno]); - return i; -} - static char* -dumpring(Sring *r, Block **t, int qno, char *p, char *e) +dumpring(Sring *r, Block **t, char *p, char *e) { int m, n; uint i; @@ -244,8 +227,7 @@ dumpring(Sring *r, Block **t, int qno, char *p, char *e) if(i != m + 1) p = seprint(p, e, "-%ud ", i-1); } - p = seprint(p, e, "n=%d/%d", n, r->cnt); - return seprint(p, e, " list %d\n", nblocktab(qno)); + return seprint(p, e, "n=%d/%d", n, r->cnt); } /* debug; remove */ @@ -291,6 +273,6 @@ descriptorfu(Ether *e, uint qoff) else print(" %#p %#p (rp)\n", b? b->rp: 0, a? a->rp: 0); - dumpring(r, bring, c->qno, p, f); + dumpring(r, bring, p, f); print(" %s", buf); } |