]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: debug display current IP of a set cleanly
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Sep 2009 09:32:58 +0000 (21:32 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Sep 2009 09:32:58 +0000 (21:32 +1200)
src/ipcache.cc

index 5d1a336eb74fa8419ddaaab87d266b655750a942..b0b8cc5f0ced9f31efaa49f2964394d5b96fe710 100644 (file)
@@ -1308,7 +1308,8 @@ ipcacheCycleAddr(const char *name, ipcache_addrs * ia)
         ia->cur = 0;
     }
 
-    debugs(14, 3, "ipcacheCycleAddr: " << name << " now at " << ia->in_addrs[ia->cur] << " (" << ia->cur << " of " << ia->count << ")");
+    /* NP: zero-based so we increase the human-readable number of our position */
+    debugs(14, 3, "ipcacheCycleAddr: " << name << " now at " << ia->in_addrs[ia->cur] << " (" << (ia->cur+1) << " of " << ia->count << ")");
 }
 
 /**