--------------------- PatchSet 2414 Date: 2001/05/30 23:36:25 Author: hno Branch: etag Tag: (none) Log: Killing small ugly bugs creeping around in my code. Members: src/store.c:1.12.14.10->1.12.14.11 Index: squid/src/store.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/store.c,v retrieving revision 1.12.14.10 retrieving revision 1.12.14.11 diff -u -r1.12.14.10 -r1.12.14.11 --- squid/src/store.c 30 May 2001 23:17:30 -0000 1.12.14.10 +++ squid/src/store.c 30 May 2001 23:36:25 -0000 1.12.14.11 @@ -1,6 +1,6 @@ /* - * $Id: store.c,v 1.12.14.10 2001/05/30 23:17:30 hno Exp $ + * $Id: store.c,v 1.12.14.11 2001/05/30 23:36:25 hno Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -697,7 +697,7 @@ char *e; char *p = buf; int l = size; - debug(11, 3) ("storeLocateVaryRead: %p offset=%d seen_offset=%d size=%d\n", data, state->offset, state->seen_offset, size); + debug(11, 0) ("storeLocateVaryRead: %s %p offset=%d seen_offset=%d size=%d\n", state->vary_data, data, state->offset, state->seen_offset, size); if (size <= 0) { storeLocateVaryCallback(state); return; @@ -742,7 +742,7 @@ } } e += 1; - l -= p - e; + l -= e - p; p = e; } state->offset += p - buf; @@ -754,6 +754,7 @@ storeLocateVary(StoreEntry * e, int offset, const char *vary_data, STLVCB *callback, void *cbdata) { LocateVaryState *state; + debug(11, 0) ("storeLocateVary: %s\n", vary_data); CBDATA_INIT_TYPE(LocateVaryState); if (!VaryData_pool) VaryData_pool = memPoolCreate("VaryData", sizeof(VaryData));