commit 6b9887c7e5e26a4f7254104a9552e9a79c5489f7
parent 53f56329bec2f54f2b91384352886573ef037e6e
Author: rsc <devnull@localhost>
Date: Thu, 3 May 2007 02:21:52 +0000
debugging
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
@@ -269,6 +269,10 @@ score2bucket(ISect *is, uchar *score)
u32int b;
b = hashbits(score, 32)/ix->div;
+ if(b < is->start || b >= is->stop){
+ fprint(2, "score2bucket: score=%V div=%d b=%ud start=%ud stop=%ud\n",
+ score, ix->div, b, is->start, is->stop);
+ }
assert(is->start <= b && b < is->stop);
return b - is->start;
}