]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #726: File src/fs/diskd/store_io_diskd.cc doesn't compile
authorhno <>
Sat, 9 Aug 2003 18:31:41 +0000 (18:31 +0000)
committerhno <>
Sat, 9 Aug 2003 18:31:41 +0000 (18:31 +0000)
use debugs() macro instead of debug() to take advantage of automatic
typesafeness (no format strings which may mess things up)

src/fs/diskd/store_io_diskd.cc

index 2ab018eaf7f13660c268143fa6560a1874afe278..61cce954252436b109a01849c49ef7824de4141d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_io_diskd.cc,v 1.36 2003/08/04 22:14:53 robertc Exp $
+ * $Id: store_io_diskd.cc,v 1.37 2003/08/09 12:31:41 hno Exp $
  *
  * DEBUG: section 79    Squid-side DISKD I/O functions.
  * AUTHOR: Duane Wessels
@@ -492,7 +492,7 @@ DiskdFile::createDone(diomsg *M)
 void
 DiskdFile::write(char const *buf, size_t size, off_t offset, FREE *free_func)
 {
-    debug(79, 3) ("DiskdFile::write: this %p , buf %p, off %ld, len %d\n", this, buf, offset, size);
+    debugs(79, 3, "DiskdFile::write: this " << (void *)this << ", buf " << (void *)buf << ", off " << offset << ", len " << size);
     off_t shm_offset;
     char *sbuf = (char *)IO->shm.get(&shm_offset);
     xmemcpy(sbuf, buf, size);