diff options
author | rsc <devnull@localhost> | 2007-05-03 02:21:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-05-03 02:21:52 +0000 |
commit | 6b9887c7e5e26a4f7254104a9552e9a79c5489f7 (patch) | |
tree | 7807024246daa743d4849986a1ba573637fc7124 | |
parent | 53f56329bec2f54f2b91384352886573ef037e6e (diff) | |
download | plan9port-6b9887c7e5e26a4f7254104a9552e9a79c5489f7.tar.gz plan9port-6b9887c7e5e26a4f7254104a9552e9a79c5489f7.tar.bz2 plan9port-6b9887c7e5e26a4f7254104a9552e9a79c5489f7.zip |
debugging
-rw-r--r-- | src/cmd/venti/srv/buildindex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c index 2f69a53b..09dcbd7d 100644 --- 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; } |