tdebugging - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6b9887c7e5e26a4f7254104a9552e9a79c5489f7
 (DIR) parent 53f56329bec2f54f2b91384352886573ef037e6e
 (HTM) Author: rsc <devnull@localhost>
       Date:   Thu,  3 May 2007 02:21:52 +0000
       
       debugging
       
       Diffstat:
         M src/cmd/venti/srv/buildindex.c      |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
       t@@ -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;
        }