INN commit: trunk/lib (dbz.c)

INN Commit rra at isc.org
Sat Aug 6 14:56:12 UTC 2011


    Date: Saturday, August 6, 2011 @ 07:56:12
  Author: iulius
Revision: 9305

fix compilation of tagged-hash history format when warnings are on

Variables names have changed since the last time a build
in debug mode was done.

Modified:
  trunk/lib/dbz.c

-------+
 dbz.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: dbz.c
===================================================================
--- dbz.c	2011-08-04 22:10:47 UTC (rev 9304)
+++ dbz.c	2011-08-06 14:56:12 UTC (rev 9305)
@@ -948,7 +948,7 @@
     nb2r = sizeof(buffer) - 1;
 
     while ((offset = search(&srch)) != NOTFOUND) {
-	debug("got 0x%lx", key_ptr);
+	debug("got 0x%lx", offset);
 
 	/* fetch the key */
 	offset <<= conf.dropbits;
@@ -1139,9 +1139,8 @@
 	cp->tagshift = TAGSHIFT;
 	cp->dropbits = 0;
 	cp->lenfuzzy = 0;
-	debug("getconf: defaults (%ld, %c, (0x%lx/0x%lx<<%d %d))",
-              cp->tsize, cp->casemap, cp->tagenb, 
-              cp->tagmask, cp->tagshift, cp->dropbits);
+	debug("getconf: defaults (%ld, (0x%lx/0x%lx<<%d %d))",
+              cp->tsize, cp->tagenb, cp->tagmask, cp->tagshift, cp->dropbits);
 	return true;
     }
 
@@ -1413,7 +1412,7 @@
 	    taboffset = sp->tabno * conf.tsize;
 	}
 	sp->place = ((sp->shorthash + sp->run) % conf.tsize) + taboffset;
-	debug("search @ %ld", place);
+	debug("search @ %ld", sp->place);
 
 	/* get the tagged value */
 	if ((options.pag_incore != INCORE_NO) && (sp->place < conf.tsize)) {




More information about the inn-committers mailing list