From: Amos Jeffries Date: Tue, 22 Sep 2009 09:32:58 +0000 (+1200) Subject: Cleanup: debug display current IP of a set cleanly X-Git-Tag: SQUID_3_2_0_1~698 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=149b31dfce703641e6cc4a92cbe2af43d3f90d58;p=thirdparty%2Fsquid.git Cleanup: debug display current IP of a set cleanly --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 5d1a336eb7..b0b8cc5f0c 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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 << ")"); } /**