mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
debugging
This commit is contained in:
parent
53f56329be
commit
6b9887c7e5
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue