diff options
author | Russ Cox <rsc@swtch.com> | 2007-09-25 09:47:31 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2007-09-25 09:47:31 -0400 |
commit | 7a400ee957a0815287af806e18ef90dd18b47f82 (patch) | |
tree | 023076fb829f630384f2f394eb9577a81fdca59e /src/cmd/venti/srv/checkindex.c | |
parent | 25a4e89fa907ed5a5f5d84eccfb66180007d9c68 (diff) | |
download | plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.tar.gz plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.tar.bz2 plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.zip |
venti: new icache
Diffstat (limited to 'src/cmd/venti/srv/checkindex.c')
-rw-r--r-- | src/cmd/venti/srv/checkindex.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cmd/venti/srv/checkindex.c b/src/cmd/venti/srv/checkindex.c index ef0e4ec9..ca955730 100644 --- a/src/cmd/venti/srv/checkindex.c +++ b/src/cmd/venti/srv/checkindex.c @@ -8,7 +8,7 @@ static void phdr(DBlock *eb) { static int did; - + if(!did){ did = 1; print("# diff actual correct\n"); @@ -168,7 +168,7 @@ checkbloom(Bloom *b1, Bloom *b2, int fix) { u32int *a1, *a2; int i, n, extra, missing; - + if(b1==nil && b2==nil) return 0; if(b1==nil || b2==nil){ @@ -188,13 +188,14 @@ checkbloom(Bloom *b1, Bloom *b2, int fix) missing = 0; for(i=BloomHeadSize/4; i<n; i++){ if(a1[i] != a2[i]){ -print("%.8ux/%.8ux.", a1[i], a2[i]); - extra += countbits(a1[i] & ~a2[i]); +// print("%.8ux/%.8ux.", a1[i], a2[i]); + extra += countbits(a1[i] & ~a2[i]); missing += countbits(a2[i] & ~a1[i]); } } if(extra || missing) - fprint(2, "bloom filter: %d spurious bits, %d missing bits\n", extra, missing); + fprint(2, "bloom filter: %d spurious bits, %d missing bits\n", + extra, missing); else fprint(2, "bloom filter: correct\n"); if(!fix && missing){ |