]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More size_t -> long typecasts for debug output
authorhno <>
Sun, 9 Feb 2003 00:43:18 +0000 (00:43 +0000)
committerhno <>
Sun, 9 Feb 2003 00:43:18 +0000 (00:43 +0000)
src/MemObject.cc
src/stmem.cc

index e3b92fa405c604d72af6a3297aacb555ce69d150..96d83175e2cfed7cb2beb7da8baa91c0d6321cd9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: MemObject.cc,v 1.2 2003/02/05 10:36:48 robertc Exp $
+ * $Id: MemObject.cc,v 1.3 2003/02/08 17:43:18 hno Exp $
  *
  * DEBUG: section 19    Store Memory Primitives
  * AUTHOR: Robert Collins
@@ -138,7 +138,7 @@ MemObject::unlinkRequest()
 void
 MemObject::write ( StoreIOBuffer writeBuffer, STMCB *callback, void *callbackData)
 {
-    debug(19, 6) ("memWrite: offset %lu len %d\n", writeBuffer.offset, writeBuffer.length);
+    debug(19, 6) ("memWrite: offset %lu len %ld\n", (unsigned long)writeBuffer.offset, (long)writeBuffer.length);
 
     /* the offset is into the content, not the headers */
     writeBuffer.offset += (_reply ? _reply->hdr_sz : 0);
index e8d85a2fa6c40499b97e42cd7dd47aee9acfec3c..4b1b7f584cf1aa18711d6677e42eb8de370b1e70 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stmem.cc,v 1.74 2003/01/23 00:37:26 robertc Exp $
+ * $Id: stmem.cc,v 1.75 2003/02/08 17:43:18 hno Exp $
  *
  * DEBUG: section 19    Store Memory Primitives
  * AUTHOR: Harvest Derived
@@ -324,7 +324,7 @@ bool
 mem_hdr::write (StoreIOBuffer const &writeBuffer)
 {
 //    mem_node *tempNode;
-    debug(19, 6) ("mem_hdr::write: offset %lu len %d, object end %lu\n", writeBuffer.offset, writeBuffer.length, endOffset());
+    debug(19, 6) ("mem_hdr::write: offset %lu len %ld, object end %lu\n", (unsigned long)writeBuffer.offset, (long)writeBuffer.length, (unsigned long)endOffset());
 
     if (unionNotEmpty(writeBuffer)) {
        fatal("Attempt to overwrite already in-memory data\n");